Skip to content

Commit a1da5e5

Browse files
committed
chore: update contents and deps
1 parent 19aeddc commit a1da5e5

File tree

11 files changed

+736
-126
lines changed

11 files changed

+736
-126
lines changed

astro.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { defineConfig } from "astro/config";
2-
import tailwindcss from "@tailwindcss/vite";
3-
import sitemap from "@astrojs/sitemap";
1+
import sitemap from '@astrojs/sitemap'
2+
import tailwindcss from '@tailwindcss/vite'
3+
import { defineConfig } from 'astro/config'
44

55
export default defineConfig({
6-
site: "https://jspark.dev",
6+
site: 'https://jspark.dev',
77
vite: {
88
plugins: [tailwindcss()],
99
build: {
10-
target: "esnext",
10+
target: 'esnext',
1111
},
1212
},
1313
integrations: [sitemap()],
14-
});
14+
})

bun.lock

Lines changed: 628 additions & 31 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,21 @@
44
"scripts": {
55
"dev": "astro dev",
66
"build": "astro build",
7-
"preview": "astro preview"
7+
"preview": "astro preview",
8+
"lint": "eslint",
9+
"lint:fix": "eslint --fix"
810
},
911
"dependencies": {
10-
"@astrojs/sitemap": "^3.3.0",
11-
"@tailwindcss/vite": "^4.1.4",
12-
"astro": "^5.7.4",
13-
"tailwindcss": "^4.1.4"
12+
"@astrojs/sitemap": "^3.3.1",
13+
"@tailwindcss/vite": "^4.1.5",
14+
"astro": "^5.7.10",
15+
"tailwindcss": "^4.1.5"
16+
},
17+
"devDependencies": {
18+
"@antfu/eslint-config": "^4.12.0",
19+
"astro-eslint-parser": "^1.2.2",
20+
"eslint": "^9.24.0",
21+
"eslint-plugin-astro": "^1.3.1",
22+
"lefthook": "^1.11.12"
1423
}
1524
}

src/components/About.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
import { DESCRIPTION } from '~/const'
3+
---
4+
15
<p class="text-sm py-8">
2-
I'm a Frontend Developer, Open Source Contributor, Product Engineer
6+
{DESCRIPTION}
37
</p>

src/components/Head.astro

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
---
2-
const title = "Junseong Park";
3-
const description =
4-
"Frontend Developer, Open Source Contributor, Product Engineer";
5-
const socialImageURL = "https://jspark.dev/huston.jpg";
2+
import { DESCRIPTION, SOCIAL_IMAGE_URL, TITLE } from '~/const'
63
---
74

85
<meta charset="UTF-8" />
@@ -11,23 +8,23 @@ const socialImageURL = "https://jspark.dev/huston.jpg";
118
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
129
<link rel="sitemap" href="/sitemap-index.xml" />
1310
<link
14-
rel="preload"
15-
href="/jetbrains-mono.woff2"
16-
as="font"
17-
type="font/woff2"
18-
crossorigin
11+
rel="preload"
12+
href="/jetbrains-mono.woff2"
13+
as="font"
14+
type="font/woff2"
15+
crossorigin
1916
/>
2017

21-
<title>{title}</title>
22-
<meta name="description" content={description} />
18+
<title>{TITLE}</title>
19+
<meta name="description" content={DESCRIPTION} />
2320

24-
<meta property="og:title" content={title} />
25-
<meta property="og:description" content={description} />
21+
<meta property="og:title" content={TITLE} />
22+
<meta property="og:description" content={DESCRIPTION} />
2623
<meta property="og:url" content="https://jspark.dev" />
27-
<meta property="og:image" content={socialImageURL} />
24+
<meta property="og:image" content={SOCIAL_IMAGE_URL} />
2825

2926
<meta name="twitter:card" content="summary_large_image" />
30-
<meta name="twitter:title" content={title} />
31-
<meta name="twitter:description" content={description} />
27+
<meta name="twitter:title" content={TITLE} />
28+
<meta name="twitter:description" content={DESCRIPTION} />
3229
<meta name="twitter:creator" content="@jsparkdev" />
33-
<meta name="twitter:image" content={socialImageURL} />
30+
<meta name="twitter:image" content={SOCIAL_IMAGE_URL} />

src/components/SocialLinks.astro

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,23 @@
11
---
2-
const links = [
3-
{
4-
title: "Github",
5-
url: "https://github.com/jsparkdev",
6-
},
7-
{
8-
title: "X",
9-
url: "https://x.com/jsparkdev",
10-
},
11-
{
12-
title: "BlueSky",
13-
url: "https://bsky.app/profile/jspark.dev",
14-
},
15-
{
16-
title: "LinkedIn",
17-
url: "https://linkedin.com/in/jsparkdev",
18-
},
19-
];
2+
import { SOCIAL_LINKS } from '~/const'
203
---
214

225
<nav aria-label="social-media-links">
23-
<ul class="flex gap-4 text-sm font-semibold">
24-
{
25-
links.map((link) => (
26-
<li>
27-
<a
28-
href={link.url}
29-
target="_blank"
30-
rel="noopener noreferrer"
31-
aria-label={`${link.title} Profile`}
32-
class="hover:underline underline-offset-4"
33-
>
34-
{link.title}
35-
</a>
36-
</li>
37-
))
38-
}
39-
</ul>
6+
<ul class="flex gap-4 text-sm font-semibold">
7+
{
8+
SOCIAL_LINKS.map(link => (
9+
<li>
10+
<a
11+
href={link.url}
12+
target="_blank"
13+
rel="noopener noreferrer"
14+
aria-label={`${link.title} Profile`}
15+
class="hover:underline underline-offset-4"
16+
>
17+
{link.title}
18+
</a>
19+
</li>
20+
))
21+
}
22+
</ul>
4023
</nav>

src/const.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
export const TITLE = 'Junseong Park'
2+
export const DESCRIPTION = 'I\'m a Web Developer, Open Source Contributor, Product Engineer'
3+
export const SOCIAL_IMAGE_URL = 'https://jspark.dev/huston.jpg'
4+
5+
export const SOCIAL_LINKS = [
6+
{
7+
title: 'Github',
8+
url: 'https://github.com/jsparkdev',
9+
},
10+
{
11+
title: 'X',
12+
url: 'https://x.com/jsparkdev',
13+
},
14+
{
15+
title: 'BlueSky',
16+
url: 'https://bsky.app/profile/jspark.dev',
17+
},
18+
{
19+
title: 'LinkedIn',
20+
url: 'https://linkedin.com/in/jsparkdev',
21+
},
22+
]

src/layouts/Layout.astro

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
import Head from "~/components/Head.astro";
3-
import "~/styles/global.css";
2+
import Head from '~/components/Head.astro'
3+
import '~/styles/global.css'
44
---
55

66
<!doctype html>
77
<html lang="en">
8-
<head>
9-
<Head />
10-
</head>
11-
<body
12-
class="bg-[#030712] text-white antialiased font-mono min-h-[100dvh] flex items-center"
13-
>
14-
<main class="w-[320px] mx-auto px-6 sm:px-0 pb-20">
15-
<slot />
16-
</main>
17-
</body>
8+
<head>
9+
<Head />
10+
</head>
11+
<body
12+
class="bg-[#030712] text-white antialiased font-mono min-h-[100dvh] flex items-center"
13+
>
14+
<main class="w-[320px] mx-auto px-6 sm:px-0 pb-20">
15+
<slot />
16+
</main>
17+
</body>
1818
</html>

src/pages/index.astro

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
2-
import About from "~/components/About.astro";
3-
import SocialLinks from "~/components/SocialLinks.astro";
4-
import Layout from "~/layouts/Layout.astro";
2+
import About from '~/components/About.astro'
3+
import SocialLinks from '~/components/SocialLinks.astro'
4+
import { TITLE } from '~/const'
5+
import Layout from '~/layouts/Layout.astro'
56
---
67

78
<Layout>
8-
<h1 class="text-2xl font-bold">Junseong Park</h1>
9-
<About />
10-
<SocialLinks />
9+
<h1 class="text-2xl font-bold">{TITLE}</h1>
10+
<About />
11+
<SocialLinks />
1112
</Layout>

src/styles/global.css

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
@import "tailwindcss";
22

33
@font-face {
4-
font-family: JetBrains Mono Variable;
5-
font-style: normal;
6-
font-display: swap;
7-
font-weight: 100 800;
8-
src: url("/jetbrains-mono.woff2") format("woff2-variations");
9-
unicode-range:
10-
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
11-
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
12-
U+2212, U+2215, U+FEFF, U+FFFD;
4+
font-family: JetBrains Mono Variable;
5+
font-style: normal;
6+
font-display: swap;
7+
font-weight: 100 800;
8+
src: url("/jetbrains-mono.woff2") format("woff2-variations");
9+
unicode-range: U+0020-007E, U+FFFD;
1310
}
1411

1512
@theme {
16-
--font-mono: "JetBrains Mono Variable", monospace;
13+
--font-mono: "JetBrains Mono Variable", monospace;
1714
}

0 commit comments

Comments
 (0)