Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/hackathon/assets/swag-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/hackathon/assets/swag-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const ObjectiveCard: React.FC<ObjectiveCardProps> = ({
index,
title,
}) => {
const [isCollapsed, setIsCollapsed] = useState(index !== 0)
const [isCollapsed, setIsCollapsed] = useState(index !== 1)

const contentRef = useRef<HTMLDivElement>(null)
const [contentHeight, setContentHeight] = useState(0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import Section from './section'
const competitionPrizes = [
{
title: 'Winner',
prize: '80,000',
prize: '100,000',
},
{
title: '1st Runner-up',
prize: '60,000',
prize: '50,000',
},
{
title: '2nd Runner-up',
prize: '40,000',
prize: '30,000',
},
{
title: 'Challenges Awards',
Expand Down
50 changes: 50 additions & 0 deletions src/app/(events)/hackathon/_components/landing/swag-section.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import Image from 'next/image'

import Section from './section'

const SwagSection: React.FC = () => {
return (
<Section
title={
<>
<span className='text-hackathon-primary'>S</span>WAG
</>
}
>
<div className='relative aspect-video w-full'>
<Image
fill
alt='swag'
className='object-contain'
src='/hackathon/assets/swag-1.png'
/>
{/* <Image
fill
alt='swag'
className='object-contain'
src='/hackathon/assets/swag-2.png'
/> */}
</div>
<div className='flex flex-col items-center gap-8 pt-10 sm:gap-10 md:gap-14'>
<div className='relative text-center'>
<p className='select-none font-ndot47 text-5xl sm:text-6xl md:text-8xl'>
25<span className='text-hackathon-primary'>0</span>,000
</p>
<div className='tiems-center -gap-1 mt-4 flex flex-col'>
<p className='text-lg font-semibold sm:text-xl md:text-2xl'>
Prize Pool
</p>
<p className='text-xs text-white/50'>(baht)</p>
<p className='text-xs text-white/50'>
<br />
10 Out of 40 Teams Will Take Home a Prize!
</p>
</div>
<div className='absolute -left-10 top-1/2 -z-10 -mt-5 aspect-[5/4] w-[200px] -translate-y-1/2 rounded-full bg-hackathon-radial-gradient opacity-60 sm:-left-7 sm:-mt-5 md:left-3 md:-mt-6 md:w-[250px]' />
</div>
</div>
</Section>
)
}

export default SwagSection
2 changes: 2 additions & 0 deletions src/app/(events)/hackathon/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import OffsetRevealer from './_components/landing/offset-revealer'
import PrizeSection from './_components/landing/prize-section'
import PrizesSection from './_components/landing/prizes-section'
import SponsorsSection from './_components/landing/sponsors-section'
// import SwagSection from './_components/landing/swag-section'
import TicketSection from './_components/landing/ticket-section'
import TimelineSection from './_components/landing/timeline-section'
import GridTunnelContextProvider from './_contexts/grid-tunnel-context'
Expand Down Expand Up @@ -51,6 +52,7 @@ const Page: React.FC = () => {
<TimelineSection />
<TicketSection />
<PrizesSection />
{/* <SwagSection /> */}
<ObjectivesSection />
{/* TODO: judges, swags */}

Expand Down