Skip to content

Commit 7a7a3ae

Browse files
committed
💄 add screenshots to landing page
1 parent 310738f commit 7a7a3ae

4 files changed

Lines changed: 41 additions & 14 deletions

File tree

components/app-configurator.tsx

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"use client"
1717

1818
import { CableIcon } from "lucide-react"
19+
import Image from "next/image"
1920
import Link from "next/link"
2021
import { useEffect } from "react"
2122
import { toast } from "sonner"
@@ -61,19 +62,45 @@ export function AppConfigurator() {
6162

6263
return (
6364
<>
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>
77104
</div>
78105
</div>
79106
<Footer />

next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NextConfig } from "next"
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
images: { unoptimized: true },
55
}
66

77
export default nextConfig

public/screenshot-dark.png

80 KB
Loading

public/screenshot.png

81 KB
Loading

0 commit comments

Comments
 (0)