Skip to content

Commit 2c68626

Browse files
bunch of new routes
1 parent e590ed1 commit 2c68626

22 files changed

+4325
-158
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import { DancingSticks } from "@hypr/ui/components/ui/dancing-sticks";
2+
import { cn } from "@hypr/utils";
3+
4+
export function MockWindow({
5+
showAudioIndicator,
6+
variant = "desktop",
7+
children,
8+
}: {
9+
showAudioIndicator?: boolean;
10+
variant?: "desktop" | "mobile";
11+
children: React.ReactNode;
12+
}) {
13+
const isMobile = variant === "mobile";
14+
15+
return (
16+
<div
17+
className={cn(
18+
"bg-white shadow-lg border border-neutral-200 border-b-0 overflow-hidden",
19+
isMobile ? "rounded-t-lg" : "w-full max-w-lg rounded-t-xl",
20+
)}
21+
>
22+
<div className="flex items-center gap-2 px-4 py-3 border-b border-neutral-200 bg-neutral-50">
23+
<div className="flex gap-2">
24+
<div className="size-3 rounded-full bg-red-400"></div>
25+
<div className="size-3 rounded-full bg-yellow-400"></div>
26+
<div className="size-3 rounded-full bg-green-400"></div>
27+
</div>
28+
{showAudioIndicator && (
29+
<div className="ml-auto">
30+
<DancingSticks
31+
amplitude={1}
32+
size="default"
33+
height={isMobile ? 10 : 12}
34+
color="#a3a3a3"
35+
/>
36+
</div>
37+
)}
38+
</div>
39+
{children}
40+
</div>
41+
);
42+
}

apps/web/src/hooks/use-platform.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ export function getHeroCTA(platform: Platform): {
4444
showInput: boolean;
4545
inputPlaceholder: string;
4646
subtext: string;
47+
subtextLink?: string;
4748
} {
4849
if (platform === "mac") {
4950
return {
5051
buttonLabel: "Download",
5152
showInput: false,
5253
inputPlaceholder: "",
5354
subtext: "Free and open-source",
55+
subtextLink: "/github",
5456
};
5557
} else if (platform === "mobile") {
5658
return {

0 commit comments

Comments
 (0)