|
| 1 | +import { SentryLogoIcon } from "~/modules/components/ui/icons"; |
| 2 | +import { |
| 3 | + AllYouNeedToKnowSection, |
| 4 | + EventDetailsPage, |
| 5 | + HeroSection, |
| 6 | + ImagesSection, |
| 7 | +} from "~/modules/event-details/components"; |
| 8 | +import { Section } from "~/modules/components/ui/section"; |
| 9 | +import { meta } from "~/modules/event-details/meta"; |
| 10 | +import { eventDetailsLoader } from "~/modules/event-details/loader.sever"; |
| 11 | +import { useLoaderData } from "react-router"; |
| 12 | +import { Route } from "./+types/2024-10-05-hackathon-at-sentry"; |
| 13 | + |
| 14 | +export { headers } from "~/modules/header.server"; |
| 15 | + |
| 16 | +export { meta }; |
| 17 | + |
| 18 | +export function loader({ context }: Route.LoaderArgs) { |
| 19 | + return eventDetailsLoader("2025-04-26-hackathon-at-sentry", { |
| 20 | + serverTimingsProfiler: context.serverTimingsProfiler, |
| 21 | + lumaClient: context.services.lumaClient, |
| 22 | + queryClient: context.services.queryClient, |
| 23 | + }); |
| 24 | +} |
| 25 | + |
| 26 | +export default function Component() { |
| 27 | + const { event, isAtCapacity, attendeeCount, attendeeLimit, isInPast } = |
| 28 | + useLoaderData<typeof loader>(); |
| 29 | + const showEventImageSection = !!event.images.length; |
| 30 | + return ( |
| 31 | + <EventDetailsPage |
| 32 | + event={event} |
| 33 | + isAtCapacity={isAtCapacity} |
| 34 | + isInPast={isInPast} |
| 35 | + > |
| 36 | + <HeroSection |
| 37 | + event={event} |
| 38 | + isAtCapacity={isAtCapacity} |
| 39 | + isInPast={isInPast} |
| 40 | + /> |
| 41 | + <AllYouNeedToKnowSection |
| 42 | + event={event} |
| 43 | + attendeeCount={attendeeCount} |
| 44 | + attendeeLimit={attendeeLimit} |
| 45 | + isInPast={isInPast} |
| 46 | + /> |
| 47 | + {showEventImageSection && ( |
| 48 | + <ImagesSection background="default" images={event.images} /> |
| 49 | + )} |
| 50 | + <Section variant="big" background={showEventImageSection ? "muted" : "default"}> |
| 51 | + <Schedule /> |
| 52 | + </Section> |
| 53 | + <Section variant="big"> |
| 54 | + <MoreInformation /> |
| 55 | + </Section> |
| 56 | + <Section variant="big" background="muted"> |
| 57 | + <Sponsor /> |
| 58 | + </Section> |
| 59 | + </EventDetailsPage> |
| 60 | + ); |
| 61 | +} |
| 62 | + |
| 63 | +function Schedule() { |
| 64 | + return ( |
| 65 | + <div className="px-4 md:px-6 mx-auto max-w-4xl"> |
| 66 | + <div className="mb-8"> |
| 67 | + <h2 className="text-3xl font-bold tracking-tight sm:text-4xl"> |
| 68 | + Schedule |
| 69 | + </h2> |
| 70 | + </div> |
| 71 | + <div className="space-y-6"> |
| 72 | + <ScheduleItem |
| 73 | + time="10:30 am" |
| 74 | + title="Doors open" |
| 75 | + description="Get to know your fellow hackers and form teams." |
| 76 | + /> |
| 77 | + <ScheduleItem |
| 78 | + time="11:00 am" |
| 79 | + title="Kick-off presentation" |
| 80 | + description="Get ready for a day of coding, networking, and fun!" |
| 81 | + /> |
| 82 | + <ScheduleItem |
| 83 | + time="1 - 7:30 pm" |
| 84 | + title="Hacking time" |
| 85 | + description="Focus on your project, ask for help, and enjoy the snacks." |
| 86 | + /> |
| 87 | + <ScheduleItem |
| 88 | + time="7:30 pm" |
| 89 | + title="Presentations & awards ceremony" |
| 90 | + description="Show off your project and vote for the best ones!" |
| 91 | + /> |
| 92 | + <ScheduleItem |
| 93 | + time="8:30 pm" |
| 94 | + title="Closing doors" |
| 95 | + description="Thank you for joining us! We hope you had a great time." |
| 96 | + /> |
| 97 | + </div> |
| 98 | + </div> |
| 99 | + ); |
| 100 | +} |
| 101 | + |
| 102 | +function ScheduleItem({ |
| 103 | + time, |
| 104 | + title, |
| 105 | + description, |
| 106 | +}: { |
| 107 | + time: string; |
| 108 | + title: string; |
| 109 | + description: string; |
| 110 | +}) { |
| 111 | + return ( |
| 112 | + <div className="grid grid-cols-[100px_1fr] items-start gap-4"> |
| 113 | + <div className="text-sm font-medium text-muted-foreground">{time}</div> |
| 114 | + <div> |
| 115 | + <h3 className="text-lg font-medium">{title}</h3> |
| 116 | + <p className="text-muted-foreground">{description}</p> |
| 117 | + </div> |
| 118 | + </div> |
| 119 | + ); |
| 120 | +} |
| 121 | + |
| 122 | +function MoreInformation() { |
| 123 | + return ( |
| 124 | + <div className="container"> |
| 125 | + <div className="grid gap-6 lg:grid-cols-2 lg:gap-12"> |
| 126 | + <div className="space-y-2"> |
| 127 | + <h2 className="text-3xl font-bold tracking-tighter md:text-4xl/tight"> |
| 128 | + When and Where |
| 129 | + </h2> |
| 130 | + <p className="max-w-[600px] text-muted-foreground md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed"> |
| 131 | + The event will take place on Saturday, April 26, 2025 at the Sentry |
| 132 | + office in San Francisco. Doors will open at 10:30 am. Join us for a |
| 133 | + day of coding, networking, and fun! |
| 134 | + </p> |
| 135 | + </div> |
| 136 | + <div className="space-y-2"> |
| 137 | + <h2 className="text-3xl font-bold tracking-tighter md:text-4xl/tight"> |
| 138 | + Awards and Prizes |
| 139 | + </h2> |
| 140 | + <p className="max-w-[600px] text-muted-foreground md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed"> |
| 141 | + At the end of the event, we’ll vote for the most creative and most |
| 142 | + impactful projects. The winning teams will score some awesome |
| 143 | + prizes! Stay tuned for more details! |
| 144 | + </p> |
| 145 | + </div> |
| 146 | + <div className="space-y-2"> |
| 147 | + <h2 className="text-3xl font-bold tracking-tighter md:text-4xl/tight"> |
| 148 | + Theme |
| 149 | + </h2> |
| 150 | + <p className="max-w-[600px] text-muted-foreground md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed"> |
| 151 | + The theme of the hackathon is "Future of Web". We’d love for you to |
| 152 | + imagine the future of web UI, interactions, and AI. But feel free to |
| 153 | + work on whatever sparks your interest. And don’t forget—two prizes |
| 154 | + are up for grabs: most creative and most impactful! |
| 155 | + </p> |
| 156 | + </div> |
| 157 | + <div className="space-y-2"> |
| 158 | + <h2 className="text-3xl font-bold tracking-tighter md:text-4xl/tight"> |
| 159 | + Team Building |
| 160 | + </h2> |
| 161 | + <p className="max-w-[600px] text-muted-foreground md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed"> |
| 162 | + No need to stress about finding a team before the event! We’ll kick |
| 163 | + things off with some fun ice breakers and team building. You can |
| 164 | + bring friends, team up on the spot, or fly solo if that’s more your |
| 165 | + style. Teaming up isn’t mandatory, but it’s an awesome way to make |
| 166 | + new friends! |
| 167 | + </p> |
| 168 | + </div> |
| 169 | + </div> |
| 170 | + </div> |
| 171 | + ); |
| 172 | +} |
| 173 | + |
| 174 | +function Sponsor() { |
| 175 | + return ( |
| 176 | + <div className="container max-w-4xl"> |
| 177 | + <h2 className="text-3xl font-bold md:text-center mb-8">Our Sponsor</h2> |
| 178 | + <div className="bg-background rounded-lg shadow-lg p-8 max-w-3xl mx-auto"> |
| 179 | + <div className="flex flex-col md:flex-row items-center md:items-start space-y-6 md:space-y-0 md:space-x-8"> |
| 180 | + <SentryLogoIcon className="md:mt-4 max-w-24" aria-hidden="true" /> |
| 181 | + <div className="text-left"> |
| 182 | + <h3 className="text-2xl font-semibold mb-4">Sentry</h3> |
| 183 | + <p className="text-muted-foreground mb-4"> |
| 184 | + This hackathon is made possible by Sentry! We are huge fans of |
| 185 | + Sentry and are very excited to have Sentry host and sponsor this |
| 186 | + event. Actually, we are using Sentry to monitor this very website! |
| 187 | + </p> |
| 188 | + <p className="text-muted-foreground"> |
| 189 | + Sentry is the debuggability platform built for how modern |
| 190 | + developers work. Over 4 million developers worldwide trust |
| 191 | + Sentry’s opinionated approach to debugging—favoring action over |
| 192 | + dashboards—which gives them the context and code level visibility |
| 193 | + they need to solve issues fast. Sentry users spend more time |
| 194 | + building and less time firefighting. |
| 195 | + </p> |
| 196 | + </div> |
| 197 | + </div> |
| 198 | + </div> |
| 199 | + </div> |
| 200 | + ); |
| 201 | +} |
0 commit comments