-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new landing page template * ci fixes * more ci fixes
- Loading branch information
1 parent
dfa0264
commit ce1db47
Showing
7 changed files
with
128 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import AcmeLogo from '@/app/ui/acme-logo'; | ||
import { ArrowRightIcon } from '@heroicons/react/24/outline'; | ||
import Link from 'next/link'; | ||
import { lusitana } from '@/app/ui/fonts'; | ||
import Image from 'next/image'; | ||
import Hero from './sections/Hero'; | ||
import Schedule from './sections/Schedule'; | ||
import { Suspense } from 'react'; | ||
|
||
export default function Page() { | ||
return ( | ||
<main className="flex min-h-screen flex-col p-6"> | ||
<div> | ||
<Hero /> | ||
<Suspense fallback={<>Loading Schedule!</>}> | ||
<Schedule /> | ||
</Suspense> | ||
</div> | ||
</main> | ||
); | ||
} |
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,15 @@ | ||
export default function Hero() { | ||
return ( | ||
<div | ||
className="bg-gray-100 w-full h-[100vh] max-h-[1300px] | ||
flex flex-col justify-center items-center" | ||
> | ||
<h1 className="font-extrabold text-5xl"> | ||
HackRU! | ||
</h1> | ||
<span> | ||
Hack all knight looonnnggg | ||
</span> | ||
</div> | ||
); | ||
} |
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,43 @@ | ||
import { getSchedule } from "@/app/lib/data"; | ||
|
||
function ScheduleOfTheDay(props: { dayInfo: DayInfo }) { | ||
const { dayInfo } = props; | ||
const { day, times } = dayInfo; | ||
return ( | ||
<div className="flex flex-col w-full my-5"> | ||
<div className="text-5xl md:text-7xl w-full text-center mb-4 font-semibold glow-subtitles text-textSubtitle">{dayInfo.day}</div> | ||
<div className="w-full"> | ||
{times.map((timeInfo, index) => ( | ||
<div className="flex flex-row w-full text-xl my-2 md:my-5 md:px-3 pr-4" | ||
key={`${day}-${index}`} | ||
> | ||
<div className="w-2/5 h-fit text-right pr-2 font-black">{timeInfo.time}</div> | ||
<div className="w-3/5"> | ||
{timeInfo.event} | ||
</div> | ||
|
||
</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
|
||
} | ||
|
||
export default async function Schedule() { | ||
const schedule = await getSchedule(); | ||
|
||
return ( | ||
<div className="w-full flex justify-center px-4 mb-20 relative" | ||
id="Schedule"> | ||
<div className="w-full max-w-7xl h-fit flex flex-col items-center"> | ||
<div className="transparent-black-background w-full text-text rounded-3xl | ||
flex flex-col items-center md:flex-row md:items-start relative"> | ||
<ScheduleOfTheDay dayInfo={schedule["Saturday"]} /> | ||
<div className="w-20 h-2 bg-text md:invisible md:absolute rounded-sm" /> | ||
<ScheduleOfTheDay dayInfo={schedule["Sunday"]} /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
interface DayInfo { | ||
day: string, | ||
times: { time: string, event: string }[] | ||
} | ||
|
||
type day = string | ||
type Schedule = Record<day, DayInfo>; |