@@ -114,8 +114,6 @@ const JoinUsBlock = async () => {
114114 const usos = await createUsosService ( ) ;
115115 await usos . getProfile ( ) ;
116116
117- throw new Error ( "User is logged in" ) ;
118-
119117 return (
120118 < div className = "flex items-center justify-center gap-3" >
121119 < Button
@@ -160,30 +158,30 @@ const JoinUsBlock = async () => {
160158export default function Home ( ) {
161159 return (
162160 < main className = "mx-auto flex-1 overflow-hidden" >
163- { /* <Button>Click me</Button>
164- <ModeToggle /> */ }
165161 < section
166162 id = "hero"
167163 className = "relative mx-auto mt-28 max-w-[80rem] px-2 text-center md:mt-56 md:px-8"
168164 >
169165 < div className = "z-10 flex animate-fade-in-2 items-center justify-center opacity-0 [--animation-delay:1000ms]" >
170- < AnimatedGradientText >
171- < Image
172- src = { "/assets/logo/topwr_logo.svg" }
173- alt = { "ToPWR Logo" }
174- className = "inline"
175- width = { 60 }
176- height = { 10 }
177- /> { " " }
178- < hr className = "mx-2 h-4 w-px shrink-0 bg-gray-300" /> { " " }
179- < span
180- className = { cn (
181- `inline animate-gradient text-balance bg-gradient-to-r from-[#ffd5a2] via-[#cea1ff] to-[#ffd5a2] bg-[length:var(--bg-size)_100%] bg-clip-text text-transparent dark:from-[#ffaa40] dark:via-[#9c40ff] dark:to-[#ffaa40]` ,
182- ) }
183- >
184- Obowiązkowa apka dla każdego studenta!
185- </ span >
186- </ AnimatedGradientText >
166+ < Link href = "#topwr" >
167+ < AnimatedGradientText >
168+ < Image
169+ src = { "/assets/logo/topwr_logo.svg" }
170+ alt = { "ToPWR Logo" }
171+ className = "inline"
172+ width = { 60 }
173+ height = { 10 }
174+ /> { " " }
175+ < hr className = "mx-2 h-4 w-px shrink-0 bg-gray-300" /> { " " }
176+ < span
177+ className = { cn (
178+ `inline animate-gradient text-balance bg-gradient-to-r from-[#ffd5a2] via-[#cea1ff] to-[#ffd5a2] bg-[length:var(--bg-size)_100%] bg-clip-text text-transparent dark:from-[#ffaa40] dark:via-[#9c40ff] dark:to-[#ffaa40]` ,
179+ ) }
180+ >
181+ Obowiązkowa apka dla każdego studenta!
182+ </ span >
183+ </ AnimatedGradientText >
184+ </ Link >
187185 </ div >
188186 < AnimationLogo />
189187 < p className = "mb-2 translate-y-[-1rem] animate-fade-in-2 text-balance text-lg tracking-tight text-muted-foreground opacity-0 [--animation-delay:400ms] md:text-xl" >
@@ -379,6 +377,55 @@ export default function Home() {
379377 </ Suspense >
380378 </ div >
381379 </ section >
380+
381+ < section className = "bg-background" id = "topwr" >
382+ < div className = "rounded-xl bg-orange-500/20 py-16 dark:bg-orange-500/10" >
383+ < div className = "container relative mx-auto max-w-7xl px-4 py-16" >
384+ < div className = "mx-auto space-y-4 pb-6 text-center" >
385+ < h2 className = "font-mono text-sm font-medium uppercase tracking-wider text-orange-600" >
386+ jesteś studentem politechniki wrocławskiej?
387+ </ h2 >
388+ < h3 className = "mx-auto mt-4 max-w-xs text-3xl font-bold sm:max-w-none sm:text-4xl md:text-5xl" >
389+ Koniecznie zainstaluj aplikację{ " " }
390+ < Image
391+ src = { "/assets/logo/topwr_logo.svg" }
392+ alt = { "ToPWR Logo" }
393+ className = "inline brightness-0 dark:invert"
394+ width = { 140 }
395+ height = { 50 }
396+ />
397+ </ h3 >
398+ < p className = "mx-auto mt-6 max-w-2xl text-balance text-lg leading-6 text-slate-600 dark:text-slate-300" >
399+ Znajdziesz w niej wszystkie potrzebne informacje o parkingach,
400+ menu w SKS, mapie kampusu i wiele więcej.
401+ </ p >
402+ </ div >
403+
404+ < div className = "flex w-full flex-col items-center justify-center space-y-4 pt-4 sm:flex-row sm:space-x-4 sm:space-y-0" >
405+ < div className = "mt-4 flex items-center gap-2" >
406+ < Link href = "https://play.google.com/store/apps/details?id=com.solvro.topwr" >
407+ < Image
408+ src = { "/assets/google_play.png" }
409+ alt = { "Download on google play" }
410+ width = { 300 }
411+ height = { 50 }
412+ className = "w-[160px]"
413+ />
414+ </ Link >
415+ < Link href = "https://apps.apple.com/us/app/topwr/id1644647395" >
416+ < Image
417+ src = { "/assets/apple_store.png" }
418+ alt = { "Download on google play" }
419+ width = { 300 }
420+ height = { 50 }
421+ className = "w-[144px]"
422+ />
423+ </ Link >
424+ </ div >
425+ </ div >
426+ </ div >
427+ </ div >
428+ </ section >
382429 </ main >
383430 ) ;
384431}
0 commit comments