/
page.tsx
174 lines (169 loc) · 6.23 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
import { ChevronRight, Github, Mail } from "lucide-react";
import { type Metadata } from "next";
import Markdown from "react-markdown";
import remarkGfm from "remark-gfm";
import { LinkButton } from "~/components/ui/button";
import { Card } from "~/components/ui/card";
import { Link } from "~/components/ui/link";
import { List, ListContent, ListHeader, ListItem } from "~/components/ui/lists";
import { cn } from "~/lib/cn";
import { getGithubReadme } from "./get-github-readme";
import { GitHubStats } from "./github-stats";
import { MusicData } from "./music-data";
import styles from "./page.module.css";
async function ReadmeContent() {
const markdown = await getGithubReadme();
return (
<Markdown
remarkPlugins={[remarkGfm]}
components={{ a: ({ href, ref: _, ...rest }) => <Link href={href ?? "/"} {...rest} /> }}
>
{markdown}
</Markdown>
);
}
export default function Page() {
return (
<main className="container max-w-screen-md">
<Card className="flex flex-col p-0">
<section className="flex flex-col items-start gap-6 bg-bg-darker p-6 sm:flex-row sm:items-end sm:justify-between">
<div>
<h1 className="text-3xl font-medium">Vu Van Dung</h1>
<div className="text-text-secondary">@joulev</div>
</div>
<div className="flex flex-row gap-3">
<LinkButton href="https://github.com/joulev" target="_blank" rel="noreferrer noopener">
<Github /> GitHub
</LinkButton>
<LinkButton href="mailto:me@joulev.dev" target="_blank" rel="noreferrer noopener">
<Mail /> Email
</LinkButton>
</div>
</section>
<hr />
<section className="flex flex-col bg-bg-darker sm:flex-row">
<div className="flex flex-col items-start gap-6 p-6 sm:w-2/3">
<h2 className="text-lg font-bold">Current project</h2>
<p>
I am building a glassmorphic component system based on{" "}
<Link href="https://www.figma.com/community/file/1253443272911187215/apple-design-resources-visionos">
visionOS UI design
</Link>
. You are seeing that design system at work in this very page, and if you are curious,
you can check out the completed components (so far) here:
</p>
<LinkButton href="/glui" variants={{ variant: "primary" }}>
Completed components
<ChevronRight />
</LinkButton>
</div>
<div
className="relative min-h-[120px] flex-grow bg-[1.5rem_0px] sm:bg-[0px_1.5rem]"
style={{
backgroundImage:
"url(\"data:image/svg+xml,%3Csvg width='54' height='54' viewBox='0 0 54 54' fill='none' xmlns='http://www.w3.org/2000/svg' %3E%3Crect x='5' y='5' width='36' height='36' rx='4' stroke='%238080804d' strokeWidth='2' /%3E%3C/svg%3E\")",
}}
>
<div
className={cn(
"absolute left-1/2 top-1/2 h-18 w-24 -translate-x-[68px] -translate-y-12 rounded-[1rem] bg-bg-idle backdrop-blur",
styles.cardSm,
)}
/>
<div
className={cn(
"absolute left-1/2 top-1/2 h-18 w-24 -translate-x-7 -translate-y-6 rounded-[1rem] bg-bg-idle backdrop-blur",
styles.cardSm,
)}
/>
</div>
</section>
<section className="flex flex-col gap-6 p-6">
<ReadmeContent />
<div className="grid grid-cols-1 grid-rows-2 gap-6 sm:grid-cols-2 sm:grid-rows-1">
<GitHubStats />
<MusicData />
</div>
</section>
<hr />
<section className="mx-auto flex w-full max-w-lg flex-col gap-6 p-6">
<List>
<ListHeader asChild>
<h2>Packages</h2>
</ListHeader>
<ListContent>
<ListItem asChild>
<Link unstyled href="https://github.com/joulev/tailwind-dark-aware">
tailwind-dark-aware
</Link>
</ListItem>
<ListItem asChild>
<Link unstyled href="https://github.com/joulev/nextjs-route-types">
nextjs-route-types
</Link>
</ListItem>
</ListContent>
</List>
<List>
<ListHeader asChild>
<h2>Apps</h2>
</ListHeader>
<ListContent variants={{ withSeparator: false }}>
<ListItem asChild>
<Link unstyled href="https://nextjs-faq.com">
nextjs-faq
</Link>
</ListItem>
<ListItem asChild>
<Link unstyled href="https://ezkomment.joulev.dev">
ezkomment
</Link>
</ListItem>
</ListContent>
</List>
<List>
<ListHeader asChild>
<h2>Apps at joulev.dev</h2>
</ListHeader>
<ListContent variants={{ withSeparator: false }}>
<ListItem asChild>
<Link unstyled href="/glui">
The glui design component collection
</Link>
</ListItem>
<ListItem asChild>
<Link unstyled href="/apps/tategaki">
tategaki
</Link>
</ListItem>
<ListItem asChild>
<Link unstyled href="/apps/anime">
anime
</Link>
</ListItem>
<ListItem asChild>
<Link unstyled href="/apps/link">
link
</Link>
</ListItem>
<ListItem asChild>
<Link unstyled href="/apps/irasuto">
irasuto
</Link>
</ListItem>
</ListContent>
</List>
</section>
</Card>
</main>
);
}
export const metadata: Metadata = {
title: "Vu Van Dung",
description: "Software developer. I build things for the web.",
openGraph: {
title: "Vu Van Dung",
description: "Software developer. I build things for the web.",
url: "/",
},
};