From 5c51e7acb76632dfda6adc2a1d5989460cfef6db Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Sat, 14 Sep 2024 18:06:29 -0700 Subject: [PATCH] feat: Links in bio page --- package-lock.json | 10 +++++++ package.json | 1 + src/app.css | 1 + src/app.html | 2 +- src/content/home.md | 6 ++-- src/content/metadata.json | 9 +++++- src/content/post/placeholder1.md | 7 +++++ src/routes/+layout.svelte | 14 ++++++--- src/routes/+page.svelte | 51 ++++++++++++++++++++++++-------- src/routes/Footer.svelte | 2 +- svelte.config.js | 4 ++- tailwind.config.ts | 51 ++++++++++++++++++-------------- 12 files changed, 114 insertions(+), 44 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1794b94..a22eb81 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "chrysoblog", "version": "0.0.1", "dependencies": { + "@fortawesome/fontawesome-free": "^6.6.0", "bits-ui": "^0.21.13", "clsx": "^2.1.1", "tailwind-merge": "^2.5.2", @@ -567,6 +568,15 @@ "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.7.tgz", "integrity": "sha512-X8R8Oj771YRl/w+c1HqAC1szL8zWQRwFvgDwT129k9ACdBoud/+/rX9V0qiMl6LWUdP9voC2nDVZYPMQQsb6eA==" }, + "node_modules/@fortawesome/fontawesome-free": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.6.0.tgz", + "integrity": "sha512-60G28ke/sXdtS9KZCpZSHHkCbdsOGEhIUGlwq6yhY74UpTiToIh8np7A8yphhM4BWsvNFtIvLpi4co+h9Mr9Ow==", + "license": "(CC-BY-4.0 AND OFL-1.1 AND MIT)", + "engines": { + "node": ">=6" + } + }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", diff --git a/package.json b/package.json index 4ff4432..9d52d05 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ }, "type": "module", "dependencies": { + "@fortawesome/fontawesome-free": "^6.6.0", "bits-ui": "^0.21.13", "clsx": "^2.1.1", "tailwind-merge": "^2.5.2", diff --git a/src/app.css b/src/app.css index 14e2a9a..80cfdf4 100644 --- a/src/app.css +++ b/src/app.css @@ -1,4 +1,5 @@ @import url(./style/content.css); +@import '@fortawesome/fontawesome-free/css/all.min.css'; @tailwind base; @tailwind components; @tailwind utilities; diff --git a/src/app.html b/src/app.html index 1391f88..108d3e6 100644 --- a/src/app.html +++ b/src/app.html @@ -6,7 +6,7 @@ %sveltekit.head% - +
%sveltekit.body%
diff --git a/src/content/home.md b/src/content/home.md index 83a22f3..c3d21ff 100644 --- a/src/content/home.md +++ b/src/content/home.md @@ -10,8 +10,10 @@ Strongest of Gensokyo ## Publications -* Perfect Math Class -* おてんば恋娘 +1. Perfect Math Class +2. おてんば恋娘 + +[Arch Wiki](https://archlinux.org) # Projects diff --git a/src/content/metadata.json b/src/content/metadata.json index d04e1d4..6110d98 100644 --- a/src/content/metadata.json +++ b/src/content/metadata.json @@ -3,5 +3,12 @@ "blogName": "Cirno's Blog", "frontDescription": "This is a very long description.", "frontCover": "/favicon.svg", - "avatar": "/favicon.svg" + "avatar": "/favicon.svg", + "links": { + "github": "https://github.com", + "email": "cirno@gensokyo.jp", + "orcid": "cirno", + "instagram": "@", + "open-source": "unknown" + } } diff --git a/src/content/post/placeholder1.md b/src/content/post/placeholder1.md index 8a1d070..32dd1fd 100644 --- a/src/content/post/placeholder1.md +++ b/src/content/post/placeholder1.md @@ -10,3 +10,10 @@ Here is some placeholder text ### 3rd level heading #### 4th level heading + +> This is a quote + +```python +for i in range(9): + print("this is python") +``` diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 9f9a1fb..da4a2ad 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -24,16 +24,23 @@