|
16 | 16 | "use client" |
17 | 17 |
|
18 | 18 | import { CableIcon } from "lucide-react" |
| 19 | +import Image from "next/image" |
19 | 20 | import Link from "next/link" |
20 | 21 | import { useEffect } from "react" |
21 | 22 | import { toast } from "sonner" |
@@ -61,19 +62,45 @@ export function AppConfigurator() { |
61 | 62 |
|
62 | 63 | return ( |
63 | 64 | <> |
64 | | - <div className="flex h-screen flex-col items-center justify-center gap-4 p-8"> |
65 | | - <h1 className="text-5xl leading-none font-extrabold tracking-tight"> |
66 | | - hmkconf |
67 | | - </h1> |
68 | | - <div className="flex items-center gap-4"> |
69 | | - <Button onClick={handleConnect}> |
70 | | - <CableIcon /> Authorize Keyboard |
71 | | - </Button> |
72 | | - <Button asChild variant="outline"> |
73 | | - <Link href="/demo" replace> |
74 | | - Demo |
75 | | - </Link> |
76 | | - </Button> |
| 65 | + <div className="flex min-h-screen flex-col py-32"> |
| 66 | + <div className="mx-auto flex max-w-7xl flex-col items-center px-6"> |
| 67 | + <div className="mx-auto flex max-w-2xl flex-col items-center text-center"> |
| 68 | + <h1 className="text-5xl leading-none font-extrabold tracking-tight"> |
| 69 | + hmkconf |
| 70 | + </h1> |
| 71 | + <p className="mt-4 text-lg font-medium text-pretty text-muted-foreground"> |
| 72 | + A web-based configurator for libhmk keyboards. Customize keyboard |
| 73 | + bindings, adjust actuation points, enable Rapid Trigger, and more. |
| 74 | + </p> |
| 75 | + <div className="mt-8 flex items-center gap-4"> |
| 76 | + <Button onClick={handleConnect} size="lg"> |
| 77 | + <CableIcon /> Connect Keyboard |
| 78 | + </Button> |
| 79 | + <Button asChild variant="outline" size="lg"> |
| 80 | + <Link href="/demo" replace> |
| 81 | + Try Demo |
| 82 | + </Link> |
| 83 | + </Button> |
| 84 | + </div> |
| 85 | + </div> |
| 86 | + <div className="mt-16"> |
| 87 | + <div className="overflow-hidden rounded-xl border bg-card shadow"> |
| 88 | + <Image |
| 89 | + alt="Screenshot of the configuration interface" |
| 90 | + className="not-dark:hidden" |
| 91 | + src="/screenshot-dark.png" |
| 92 | + width="1024" |
| 93 | + height="768" |
| 94 | + /> |
| 95 | + <Image |
| 96 | + alt="Screenshot of the configuration interface" |
| 97 | + className="dark:hidden" |
| 98 | + src="/screenshot.png" |
| 99 | + width="1024" |
| 100 | + height="768" |
| 101 | + /> |
| 102 | + </div> |
| 103 | + </div> |
77 | 104 | </div> |
78 | 105 | </div> |
79 | 106 | <Footer /> |
|
0 commit comments