|
| 1 | +import { i18n } from "@/components/pages/home/i18n"; |
| 2 | +import H1 from "@/components/ui/typography/H1"; |
| 3 | +import { redirect } from "next/navigation"; |
| 4 | +import PageDialog from "./page-dialog"; |
| 5 | + |
| 6 | +export default async function Page({ |
| 7 | + params, |
| 8 | +}: { |
| 9 | + params: { lng: "de" | "en" | "pt" }; |
| 10 | +}) { |
| 11 | + if (!params.lng || !["de", "en", "pt"].includes(params.lng)) redirect("/de"); |
| 12 | + |
| 13 | + return ( |
| 14 | + <div className="flex flex-col items-center w-full gap-12"> |
| 15 | + <div className="max-w-6xl mx-auto w-full"> |
| 16 | + <div className="grid md:auto-rows-[18rem] grid-cols-2 md:grid-cols-3 gap-4 max-w-7xl mx-auto auto-rows-[10rem]"> |
| 17 | + <div className="h-full w-full col-span-2 bg-dot-fuchsia-400/50 relative flex items-center justify-center"> |
| 18 | + <div className="absolute pointer-events-none inset-0 flex items-center justify-center bg-background [mask-image:radial-gradient(ellipse_at_center,transparent_45%,black)]" /> |
| 19 | + <H1 className="bg-clip-text text-transparent bg-gradient-to-b from-muted-foreground to-foreground"> |
| 20 | + Atrai Bikes |
| 21 | + </H1> |
| 22 | + </div> |
| 23 | + <PageDialog |
| 24 | + lng={params.lng} |
| 25 | + content="about" |
| 26 | + animatedBackground="beams" |
| 27 | + > |
| 28 | + <div className="absolute bottom-0 left-0 p-4"> |
| 29 | + <h2 className="text-2xl font-bold">{i18n[params.lng].about}</h2> |
| 30 | + </div> |
| 31 | + </PageDialog> |
| 32 | + <PageDialog |
| 33 | + lng={params.lng} |
| 34 | + content="hardware" |
| 35 | + animatedBackground="glowing-stars" |
| 36 | + size="large" |
| 37 | + > |
| 38 | + <div className="absolute top-0 right-0 p-4"> |
| 39 | + <h2 className="text-2xl font-bold"> |
| 40 | + {i18n[params.lng].hardware} |
| 41 | + </h2> |
| 42 | + </div> |
| 43 | + </PageDialog> |
| 44 | + |
| 45 | + <PageDialog |
| 46 | + lng={params.lng} |
| 47 | + content="partner" |
| 48 | + animatedBackground="grid" |
| 49 | + > |
| 50 | + <div className="absolute top-0 right-0 p-4"> |
| 51 | + <h2 className="text-2xl font-bold">{i18n[params.lng].partner}</h2> |
| 52 | + </div> |
| 53 | + </PageDialog> |
| 54 | + |
| 55 | + <PageDialog lng={params.lng} content="faq" animatedBackground="beams"> |
| 56 | + <div className="absolute top-0 right-0 p-4"> |
| 57 | + <h2 className="text-2xl font-bold">{i18n[params.lng].faq}</h2> |
| 58 | + </div> |
| 59 | + </PageDialog> |
| 60 | + |
| 61 | + <PageDialog |
| 62 | + lng={params.lng} |
| 63 | + content="blog" |
| 64 | + animatedBackground="beams" |
| 65 | + > |
| 66 | + <div className="absolute top-0 right-0 p-4"> |
| 67 | + <h2 className="text-2xl font-bold">{i18n[params.lng].blog}</h2> |
| 68 | + </div> |
| 69 | + </PageDialog> |
| 70 | + |
| 71 | + <PageDialog |
| 72 | + lng={params.lng} |
| 73 | + content="results" |
| 74 | + animatedBackground="beams" |
| 75 | + > |
| 76 | + <div className="absolute top-0 right-0 p-4"> |
| 77 | + <h2 className="text-2xl font-bold">{i18n[params.lng].results}</h2> |
| 78 | + </div> |
| 79 | + </PageDialog> |
| 80 | + |
| 81 | + <PageDialog |
| 82 | + lng={params.lng} |
| 83 | + content="analytics" |
| 84 | + animatedBackground="beams" |
| 85 | + size="large" |
| 86 | + > |
| 87 | + <div className="absolute top-0 right-0 p-4"> |
| 88 | + <h2 className="text-2xl font-bold"> |
| 89 | + {i18n[params.lng].analytics} |
| 90 | + </h2> |
| 91 | + </div> |
| 92 | + </PageDialog> |
| 93 | + |
| 94 | + {/* <BentoCard href={"/about"} animatedBackground="beams"> |
| 95 | + <div className="absolute bottom-0 left-0 p-4"> |
| 96 | + <h2 className="text-2xl font-bold">{i18n[lng].about}</h2> |
| 97 | + </div> |
| 98 | + </BentoCard> |
| 99 | + <BentoCard |
| 100 | + href={"/analytics"} |
| 101 | + image={DataAnalyticsImage} |
| 102 | + size="large" |
| 103 | + > |
| 104 | + <h2 className="text-2xl font-bold">{i18n[lng].analytics}</h2> |
| 105 | + </BentoCard> |
| 106 | + <BentoCard href={"/results"} animatedBackground="glowing-stars"> |
| 107 | + <h2 className="text-2xl font-bold">{i18n[lng].results}</h2> |
| 108 | + </BentoCard> |
| 109 | + <BentoCard href={"/blog"} animatedBackground="grid"> |
| 110 | + <div className="absolute top-0 left-0 w-full h-full flex items-center justify-center p-4"> |
| 111 | + <h2 className="text-2xl font-bold">{i18n[lng].blog}</h2> |
| 112 | + </div> |
| 113 | + </BentoCard> |
| 114 | + <BentoCard size="large" image={HardwareImage} href={"/hardware"}> |
| 115 | + <div className="absolute top-0 right-0 p-4"> |
| 116 | + <h2 className="text-2xl font-bold">{i18n[lng].hardware}</h2> |
| 117 | + </div> |
| 118 | + </BentoCard> |
| 119 | +
|
| 120 | + <BentoCard href={"/partner"} size="large" animatedBackground="beams"> |
| 121 | + <div className="w-full h-full flex flex-col"> |
| 122 | + <h2 className="text-2xl font-bold">{i18n[lng].partner}</h2> |
| 123 | + <div className="w-full h-full flex items-center justify-around group-hover:scale-105 transition-all"> |
| 124 | + <div className="relative h-full aspect-square "> |
| 125 | + <Image |
| 126 | + src={ICImage} |
| 127 | + alt="Instituto Cordial" |
| 128 | + fill |
| 129 | + className="object-contain" |
| 130 | + /> |
| 131 | + </div> |
| 132 | + <div className="relative h-full aspect-square"> |
| 133 | + <Image |
| 134 | + src={ReeduImage} |
| 135 | + alt="Reedu" |
| 136 | + fill |
| 137 | + className="object-contain" |
| 138 | + /> |
| 139 | + </div> |
| 140 | +
|
| 141 | + <div className="relative h-full aspect-square"> |
| 142 | + <Image |
| 143 | + src={Image52N} |
| 144 | + alt="52n" |
| 145 | + fill |
| 146 | + className="object-contain" |
| 147 | + /> |
| 148 | + </div> |
| 149 | + </div> |
| 150 | + </div> |
| 151 | + </BentoCard> |
| 152 | + <BentoCard href={"/faq"} animatedBackground="glowing-stars"> |
| 153 | + <h2 className="text-2xl font-bold">{i18n[lng].faq}</h2> |
| 154 | + </BentoCard> */} |
| 155 | + </div> |
| 156 | + </div> |
| 157 | + </div> |
| 158 | + ); |
| 159 | + // return <Home />; |
| 160 | +} |
0 commit comments