-
Notifications
You must be signed in to change notification settings - Fork 893
/
page.tsx
202 lines (195 loc) · 7.58 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import { Card, CardHeader, CardContent } from "@/components/ui/card";
import { Badge } from "@/components/ui/badge";
import { CommandMenu } from "@/components/command-menu";
import { Metadata } from "next";
import { Section } from "@/components/ui/section";
import { GlobeIcon, MailIcon, PhoneIcon } from "lucide-react";
import { Button } from "@/components/ui/button";
import { RESUME_DATA } from "@/data/resume-data";
import { ProjectCard } from "@/components/project-card";
export const metadata: Metadata = {
title: `${RESUME_DATA.name} | ${RESUME_DATA.about}`,
description: RESUME_DATA.summary,
};
export default function Page() {
return (
<main className="container relative mx-auto scroll-my-12 overflow-auto p-4 print:p-12 md:p-16">
<section className="mx-auto w-full max-w-2xl space-y-8 bg-white print:space-y-6">
<div className="flex items-center justify-between">
<div className="flex-1 space-y-1.5">
<h1 className="text-2xl font-bold">{RESUME_DATA.name}</h1>
<p className="max-w-md text-pretty font-mono text-sm text-muted-foreground">
{RESUME_DATA.about}
</p>
<p className="max-w-md items-center text-pretty font-mono text-xs text-muted-foreground">
<a
className="inline-flex gap-x-1.5 align-baseline leading-none hover:underline"
href={RESUME_DATA.locationLink}
target="_blank"
>
<GlobeIcon className="size-3" />
{RESUME_DATA.location}
</a>
</p>
<div className="flex gap-x-1 pt-1 font-mono text-sm text-muted-foreground print:hidden">
{RESUME_DATA.contact.email ? (
<Button
className="size-8"
variant="outline"
size="icon"
asChild
>
<a href={`mailto:${RESUME_DATA.contact.email}`}>
<MailIcon className="size-4" />
</a>
</Button>
) : null}
{RESUME_DATA.contact.tel ? (
<Button
className="size-8"
variant="outline"
size="icon"
asChild
>
<a href={`tel:${RESUME_DATA.contact.tel}`}>
<PhoneIcon className="size-4" />
</a>
</Button>
) : null}
{RESUME_DATA.contact.social.map((social) => (
<Button
key={social.name}
className="size-8"
variant="outline"
size="icon"
asChild
>
<a href={social.url}>
<social.icon className="size-4" />
</a>
</Button>
))}
</div>
<div className="hidden flex-col gap-x-1 font-mono text-sm text-muted-foreground print:flex">
{RESUME_DATA.contact.email ? (
<a href={`mailto:${RESUME_DATA.contact.email}`}>
<span className="underline">{RESUME_DATA.contact.email}</span>
</a>
) : null}
{RESUME_DATA.contact.tel ? (
<a href={`tel:${RESUME_DATA.contact.tel}`}>
<span className="underline">{RESUME_DATA.contact.tel}</span>
</a>
) : null}
</div>
</div>
<Avatar className="size-28">
<AvatarImage alt={RESUME_DATA.name} src={RESUME_DATA.avatarUrl} />
<AvatarFallback>{RESUME_DATA.initials}</AvatarFallback>
</Avatar>
</div>
<Section>
<h2 className="text-xl font-bold">About</h2>
<p className="text-pretty font-mono text-sm text-muted-foreground">
{RESUME_DATA.summary}
</p>
</Section>
<Section>
<h2 className="text-xl font-bold">Work Experience</h2>
{RESUME_DATA.work.map((work) => {
return (
<Card key={work.company}>
<CardHeader>
<div className="flex items-center justify-between gap-x-2 text-base">
<h3 className="inline-flex items-center justify-center gap-x-1 font-semibold leading-none">
<a className="hover:underline" href={work.link}>
{work.company}
</a>
<span className="inline-flex gap-x-1">
{work.badges.map((badge) => (
<Badge
variant="secondary"
className="align-middle text-xs"
key={badge}
>
{badge}
</Badge>
))}
</span>
</h3>
<div className="text-sm tabular-nums text-gray-500">
{work.start} - {work.end}
</div>
</div>
<h4 className="font-mono text-sm leading-none">
{work.title}
</h4>
</CardHeader>
<CardContent className="mt-2 text-xs">
{work.description}
</CardContent>
</Card>
);
})}
</Section>
<Section>
<h2 className="text-xl font-bold">Education</h2>
{RESUME_DATA.education.map((education) => {
return (
<Card key={education.school}>
<CardHeader>
<div className="flex items-center justify-between gap-x-2 text-base">
<h3 className="font-semibold leading-none">
{education.school}
</h3>
<div className="text-sm tabular-nums text-gray-500">
{education.start} - {education.end}
</div>
</div>
</CardHeader>
<CardContent className="mt-2">{education.degree}</CardContent>
</Card>
);
})}
</Section>
<Section>
<h2 className="text-xl font-bold">Skills</h2>
<div className="flex flex-wrap gap-1">
{RESUME_DATA.skills.map((skill) => {
return <Badge key={skill}>{skill}</Badge>;
})}
</div>
</Section>
<Section className="print-force-new-page scroll-mb-16">
<h2 className="text-xl font-bold">Projects</h2>
<div className="-mx-3 grid grid-cols-1 gap-3 print:grid-cols-3 print:gap-2 md:grid-cols-2 lg:grid-cols-3">
{RESUME_DATA.projects.map((project) => {
return (
<ProjectCard
key={project.title}
title={project.title}
description={project.description}
tags={project.techStack}
link={"link" in project ? project.link.href : undefined}
/>
);
})}
</div>
</Section>
</section>
<CommandMenu
links={[
{
url: RESUME_DATA.personalWebsiteUrl,
title: "Personal Website",
},
...RESUME_DATA.contact.social.map((socialMediaLink) => ({
url: socialMediaLink.url,
title: socialMediaLink.name,
})),
]}
/>
</main>
);
}