-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.tsx
77 lines (68 loc) · 2.25 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
import { v4 } from 'uuid'
import Markdown from 'markdown-to-jsx'
import { getJsonData } from '@/lib/resume-data'
import type { ResumeItemType } from '@/lib/types'
import Header from '@/components/header'
import ResumeSection from '@/components/resume-section'
import ResumeItem from '@/components/resume-item'
import ContactItem from '@/components/contact-item'
export default async function Home() {
const bio = getJsonData('bio')
const work = await getJsonData('work')
const education = await getJsonData('education')
const contact = await getJsonData('contact')
const projects = await getJsonData('projects')
return (
<div className="mx-auto max-w-3xl py-20 px-4 lg:px-0">
<Header />
{/* SUMMARY */}
<ResumeSection title="Summary">
<div className="text-lg">
<div>
<Markdown className="space-y-4">{bio.bio}</Markdown>
</div>
{/* <div
dangerouslySetInnerHTML={{ __html: bio.bio }}
className="space-y-4"
></div> */}
</div>
</ResumeSection>
{/* WORK */}
<ResumeSection title="Experience">
<div className="grid gap-16">
{work.map((item: ResumeItemType) => {
const key = v4()
return <ResumeItem key={key} item={item} itemType="work" />
})}
</div>
</ResumeSection>
{/* EDUCATION */}
<ResumeSection title="Education">
<div className="grid gap-16">
{education.map((item: ResumeItemType) => {
const key = v4()
return <ResumeItem key={key} item={item} itemType="education" />
})}
</div>
</ResumeSection>
{/* PROJECTS */}
{/* <ResumeSection title="Projects">
<div className="grid gap-16">
{projects.map((item: ResumeItemType) => {
const key = v4()
return <div key={key}> {item.name} </div>
})}
</div>
</ResumeSection> */}
{/* CONTACT */}
<ResumeSection title="Contact">
<div className="grid grid-cols-2 gap-8">
{contact.map((item: ResumeItemType) => {
const key = v4()
return <ContactItem key={key} contact={item} />
})}
</div>
</ResumeSection>
</div>
)
}