-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create structure and [...slug] * add all links and create the slug page * change file location
- Loading branch information
1 parent
2ee1d2e
commit e96f4eb
Showing
10 changed files
with
2,030 additions
and
25 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Container } from '@/components/Container' | ||
|
||
export function PageNotFound({ id }) { | ||
return ( | ||
<section id={id} aria-label="Page not found" className="py-20 sm:py-32"> | ||
<Container> | ||
<h2 className="mx-auto max-w-2xl text-center font-dunbar text-5xl font-extrabold tracking-tighter text-sotm-blue"> | ||
Page not found | ||
</h2> | ||
<div className="mt-6 space-y-6 text-center font-poppins text-2xl tracking-tight text-sotm-blue"> | ||
<p> | ||
The page you are looking for does not exist. Please check the URL | ||
and try again. | ||
</p> | ||
</div> | ||
</Container> | ||
</section> | ||
) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Container } from './Container' | ||
|
||
export function ProgramDetail({ id, name, title, details, date, time, place }) { | ||
const formattedDate = new Date(date).toLocaleString('en-GB', { | ||
weekday: 'long', | ||
year: 'numeric', | ||
month: 'long', | ||
day: 'numeric', | ||
}) | ||
|
||
return ( | ||
<Container> | ||
<section | ||
id={id} | ||
aria-label={id} | ||
className="flex flex-row-reverse flex-wrap gap-6" | ||
> | ||
<div className="flex-grow basis-3/4"> | ||
<h2 className="my-6 font-dunbar text-2xl font-extrabold text-sotm-blue"> | ||
{title} | ||
</h2> | ||
<h3 className="mt-6 font-dunbar text-xl font-bold tracking-tight"> | ||
{name} | ||
</h3> | ||
<div className="mt-6 space-y-6 text-xl"> | ||
{details.map(({ description, authors }, index) => ( | ||
<div key={index}> | ||
<p className="font-poppins text-sotm-blue">{description}</p> | ||
<p>{authors}</p> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
<div className="w-52 flex-grow"> | ||
<h3 className="my-6 bg-sotm-blue p-6 text-center font-dunbar text-xl font-bold tracking-tight text-sotm-yellow"> | ||
{place} | ||
</h3> | ||
<div className="text-center font-dunbar font-bold"> | ||
<time dateTime={date}>{formattedDate}</time> | ||
</div> | ||
<div className="my-3 bg-sotm-yellow-200 p-3 text-center font-poppins font-bold text-sotm-blue"> | ||
<time time={time}>{time}</time> | ||
</div> | ||
</div> | ||
</section> | ||
</Container> | ||
) | ||
} |
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
Oops, something went wrong.