/
page.tsx
43 lines (42 loc) · 1.1 KB
/
page.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"use client";
import dynamic from "next/dynamic";
const Globe = dynamic(() => import("./globe"), { ssr: false });
import { RoomProvider } from "./liveblocks.config";
import { LiveList } from "@liveblocks/client";
import FRIENDS from "./friends";
import { UserButton } from "@clerk/nextjs";
import Profile from "./profile";
export default async function ThreeD() {
return (
<RoomProvider
id="week-5"
initialPresence={{}}
initialStorage={{
arcs: new LiveList([]),
friends: new LiveList(FRIENDS),
}}
>
<Globe />
<div className="fixed left-12 top-12 text-white">
<h1 className="mb-4 text-3xl font-bold text-white">Friends</h1>
<div className="flex gap-4">
<UserButton />
<Profile />
</div>
</div>
<style>{`
:root {
--accent: #21d7ff;
}
@supports (color:color(display-p3 1 1 1)) {
:root {
--accent: color(display-p3 1 0.356 0.2183);
}
}
html {
color-scheme: dark;
}
`}</style>
</RoomProvider>
);
}