-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
96 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,39 @@ | ||
import SERIES_CONFIG, { Series } from '@/series/config' | ||
import { ReactNode } from 'react' | ||
|
||
type Props = { | ||
date: string | ||
dateUnits?: string | ||
name: string | ||
series: Series | ||
children: ReactNode | ||
eventName?: string | ||
} | ||
|
||
const Activity = ({ series, children }: Props) => ( | ||
<li className="border-b last:border-b-0 flex"> | ||
<div className={`w-3 ${SERIES_CONFIG[series].colours}`} /> | ||
<div className="py-2 px-4 flex flex-1 items-center space-x-2"> | ||
{children} | ||
</div> | ||
</li> | ||
) | ||
const Activity = ({ date, dateUnits, series, eventName, name }: Props) => { | ||
const { name: seriesName, colours } = SERIES_CONFIG[series]; | ||
|
||
return ( | ||
<li className="py-2 px-3 flex gap-3 items-center"> | ||
<div className="flex flex-col items-center font-bold w-12"> | ||
<p className="text-lg">{date}</p> | ||
{dateUnits && <p className="text-sm -mt-1.5">{dateUnits}</p>} | ||
</div> | ||
<div> | ||
<h2>{name}</h2> | ||
<div className="flex items-center gap-2 mt-1"> | ||
<div className="flex items-center gap-2"> | ||
<div className={`${colours} h-2 w-2 rounded-full `} /> | ||
<p className="font-bold text-sm">{seriesName}</p> | ||
</div> | ||
{eventName && ( | ||
<> | ||
<span className="text-gray-600">·</span> | ||
<p className="text-gray-600 text-sm">{eventName}</p> | ||
</> | ||
)} | ||
</div> | ||
</div> | ||
</li> | ||
) | ||
} | ||
|
||
export default Activity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15995a2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
raceweek – ./
raceweek-git-main-appsbytom.vercel.app
raceweek-appsbytom.vercel.app
raceweek.vercel.app