|
1 | | -import { headers } from 'next/headers'; |
2 | | -import { App } from '@/components/app'; |
3 | | -import { getAppConfig, getOrigin } from '@/lib/utils'; |
| 1 | +import { ApertureIcon, PhoneIcon, EnvelopeIcon } from '@phosphor-icons/react/dist/ssr'; |
| 2 | + |
| 3 | +function Logo() { |
| 4 | + return ( |
| 5 | + <div className="flex items-center gap-3"> |
| 6 | + <ApertureIcon className="block size-6" /> |
| 7 | + <span className="text-foreground font-mono text-sm font-bold tracking-wider uppercase -mb-0.25"> |
| 8 | + ACME Co |
| 9 | + </span> |
| 10 | + </div> |
| 11 | + ); |
| 12 | +} |
4 | 13 |
|
5 | 14 | export default async function Page() { |
6 | | - const hdrs = await headers(); |
7 | | - const origin = getOrigin(hdrs); |
8 | | - const appConfig = await getAppConfig(origin); |
| 15 | + return ( |
| 16 | + <div> |
| 17 | + {/* Dummy app header */} |
| 18 | + <header className="fixed top-0 left-0 z-50 h-18 w-full flex flex-row justify-center p-6 bg-bg3"> |
| 19 | + <div className="w-full px-2 max-w-4xl flex justify-between"> |
| 20 | + <Logo /> |
| 21 | + <div className="hidden md:flex items-center gap-8"> |
| 22 | + {["Home", "Product", "Contact"].map(label => ( |
| 23 | + <span |
| 24 | + key={label} |
| 25 | + className="text-foreground font-mono text-sm font-bold tracking-wider uppercase hover:text-fgAccent hover:underline select-none" |
| 26 | + > |
| 27 | + {label} |
| 28 | + </span> |
| 29 | + ))} |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + </header> |
| 33 | + |
| 34 | + {/* Dummy app contents */} |
| 35 | + <div className="mx-auto my-auto mt-18 pt-4 px-2 max-w-4xl flex flex-col gap-4"> |
| 36 | + <div className="h-[320px] border border-dashed border-fg4" /> |
| 37 | + <div className="flex gap-4"> |
| 38 | + <div className="h-[320px] border border-dashed border-fg4 grow shrink" /> |
| 39 | + <div className="h-[320px] border border-dashed border-fg4 grow shrink" /> |
| 40 | + <div className="h-[320px] border border-dashed border-fg4 grow shrink" /> |
| 41 | + </div> |
| 42 | + <div className="h-[320px] border border-dashed border-fg4" /> |
| 43 | + |
| 44 | + <div className="flex justify-between gap-8 border-t border-t-seperator1 py-8"> |
| 45 | + <div> |
| 46 | + <Logo /> |
| 47 | + </div> |
| 48 | + |
| 49 | + <div className="flex gap-8"> |
| 50 | + <div className="flex flex-col gap-4 min-w-[120px]"> |
| 51 | + <span className="font-mono text-xs font-semibold uppercase tracking-widest text-fg3">Product</span> |
| 52 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline">Camera</span> |
| 53 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline">Aperture</span> |
| 54 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline">Light Box</span> |
| 55 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline">Backdrop</span> |
| 56 | + </div> |
| 57 | + <div className="flex flex-col gap-4 min-w-[120px]"> |
| 58 | + <span className="font-mono text-xs font-semibold uppercase tracking-widest text-fg3">Resources</span> |
| 59 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline">Camera</span> |
| 60 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline">Aperture</span> |
| 61 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline">Light Box</span> |
| 62 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline">Backdrop</span> |
| 63 | + </div> |
| 64 | + |
| 65 | + <div className="flex flex-col gap-4"> |
| 66 | + <span className="font-mono text-xs font-semibold uppercase tracking-widest text-fg3">Support</span> |
| 67 | + |
| 68 | + {/* Inline livekit embed */} |
| 69 | + <div className="h-[64px]"> |
| 70 | + <iframe |
| 71 | + className="w-[330px]" |
| 72 | + src="/embed" |
| 73 | + /> |
| 74 | + </div> |
9 | 75 |
|
10 | | - return <App appConfig={appConfig} />; |
| 76 | + <div className="flex gap-4 justify-between"> |
| 77 | + <div className="flex items-center gap-2"> |
| 78 | + <PhoneIcon size={20} /> |
| 79 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline"> |
| 80 | + 555-123-4567 |
| 81 | + </span> |
| 82 | + </div> |
| 83 | + <div className="flex items-center gap-2"> |
| 84 | + <EnvelopeIcon size={20} /> |
| 85 | + <span className="flex gap-2 items-baseline text-sm cursor-pointer hover:underline"> |
| 86 | + |
| 87 | + </span> |
| 88 | + </div> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + </div> |
| 92 | + </div> |
| 93 | + </div> |
| 94 | + </div> |
| 95 | + ); |
11 | 96 | } |
0 commit comments