Skip to content

Commit

Permalink
Merge pull request #103 from Code-the-Change-YYC/web-41/reverse-timel…
Browse files Browse the repository at this point in the history
…ine3

Reverse timeline on the new main (no yarn.lock)
  • Loading branch information
topanb11 authored Jan 15, 2024
2 parents 6df7901 + 05e8c19 commit 22665a6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions components/Timeline.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable @next/next/no-img-element */
import Image from "next/image";
import { TIMELINE_DATA } from "../data/timeline";
import { UnderlineTypes } from "../utils/underlineType";
import Heading from "./Heading";
import Image from 'next/image';
import { TIMELINE_DATA } from '../data/timeline';
import { UnderlineTypes } from '../utils/underlineType';
import Heading from './Heading';

const TIMELINE_CONTAINER = "bg-white flex flex-col lg:h-0 lg:h-screen";
const PURPLE_SIDE_LINES_DIR = "/svgs/timeline/left_side_lines.svg";
const TIMELINE_CONTAINER = 'bg-white flex flex-col lg:h-0 lg:h-screen';
const PURPLE_SIDE_LINES_DIR = '/svgs/timeline/left_side_lines.svg';

const Timeline = () => {
const isEven = (index) => {
Expand Down Expand Up @@ -59,7 +59,7 @@ const Timeline = () => {
</div>
);

const renderTimeline = TIMELINE_DATA.map((props, index) => {
const renderTimeline = TIMELINE_DATA.reverse().map((props, index) => {
return isEven(index) ? EvenTimelineBlock(props) : OddTimelineBlock(props);
});

Expand Down

1 comment on commit 22665a6

@vercel
Copy link

@vercel vercel bot commented on 22665a6 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.