Compare commits

...

10 Commits

Author SHA1 Message Date
ed21d16eeb
chore: update deps
All checks were successful
CI / Deploy (push) Successful in 2m15s
2024-07-08 23:42:23 +08:00
55559aed48
feat: add blog 2024-07-08 23:39:55 +08:00
9190316680
pref: update HostRegexp 2024-05-25 13:17:10 +08:00
a3a9a07387
pref: update ci runner 2024-05-25 12:20:45 +08:00
535da54284
pref: update host regexp 2024-05-25 12:16:19 +08:00
e92354387b
build: upgrade deps 2023-10-13 23:38:13 +08:00
602981cd05
feat: add text-shadow 2023-10-05 22:04:27 +08:00
b12bdb416e
feat: add bilibili link 2023-10-04 20:13:05 +08:00
76cdfe1c55
pref(button): update styles 2023-10-03 22:04:39 +08:00
4919cd13d3
pref(button): update styles 2023-10-03 21:56:18 +08:00
7 changed files with 1847 additions and 1448 deletions

View File

@ -4,7 +4,7 @@ on: [push]
jobs: jobs:
Deploy: Deploy:
runs-on: self-hosted runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:

View File

@ -12,7 +12,7 @@ services:
restart: always restart: always
labels: labels:
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.thehrz-nginx.rule=Host(`thehrz.net`, `www.thehrz.net`) - traefik.http.routers.thehrz-nginx.rule=HostRegexp(`^(www\.)?thehrz\.net$`)
- traefik.http.routers.thehrz-nginx.entrypoints=web,websecure - traefik.http.routers.thehrz-nginx.entrypoints=web,websecure
- traefik.http.routers.thehrz-nginx.tls.certresolver=letsencrypt - traefik.http.routers.thehrz-nginx.tls.certresolver=letsencrypt
- traefik.http.routers.thehrz-nginx.middlewares=CORS@file - traefik.http.routers.thehrz-nginx.middlewares=CORS@file

View File

@ -9,25 +9,26 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@types/node": "^20.8.0", "@types/node": "^20.14.10",
"@unocss/reset": "^0.56.4", "@unocss/reset": "^0.56.5",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"sass": "^1.68.0", "sass": "^1.77.6",
"vue": "^3.3.4", "vue": "^3.4.31",
"vue-router": "^4.2.5" "vue-router": "^4.4.0"
}, },
"devDependencies": { "devDependencies": {
"@iconify-json/mdi": "^1.1.54", "@iconify-json/mdi": "^1.1.67",
"@types/nprogress": "^0.2.1", "@iconify-json/simple-icons": "^1.1.108",
"@unocss/preset-icons": "^0.56.4", "@types/nprogress": "^0.2.3",
"@unocss/transformer-directives": "^0.56.4", "@unocss/preset-icons": "^0.56.5",
"@vitejs/plugin-vue": "^4.3.4", "@unocss/transformer-directives": "^0.56.5",
"typescript": "^5.2.2", "@vitejs/plugin-vue": "^4.6.2",
"unocss": "^0.56.4", "typescript": "^5.5.3",
"unocss": "^0.56.5",
"unplugin-vue-components": "^0.25.2", "unplugin-vue-components": "^0.25.2",
"vite": "^4.4.9", "vite": "^4.5.3",
"vite-plugin-pages": "^0.31.0", "vite-plugin-pages": "^0.31.0",
"vite-plugin-vue-layouts": "^0.8.0", "vite-plugin-vue-layouts": "^0.8.0",
"vue-tsc": "^1.8.15" "vue-tsc": "^2.0.26"
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +1,12 @@
@import url("https://cdn.staticfile.org/hack-font/3.3.0/web/hack.min.css"); @import url("https://cdn.staticfile.org/hack-font/3.3.0/web/hack.min.css");
* { * {
padding: 0; --at-apply: p-0 m-0 box-border;
margin: 0;
} }
body { body {
font-family: "Hack", Inter, ui-monospace, SFMono-Regular, font-family: "Hack", Inter, ui-monospace, SFMono-Regular, Menlo, Monaco,
Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; Consolas, "Liberation Mono", "Courier New", monospace;
--uno: flex items-center justify-center min-h-screen min-w-screen text-4 --at-apply: flex items-center justify-center min-h-screen min-w-screen text-4
leading-24px font-synthesis-none select-none; leading-24px font-synthesis-none select-none;
} }

View File

@ -1,9 +1,5 @@
<template> <template>
<a <a target="_blank" :href="to">
class="bg-white border-solid border-2 border-#dcdfe6 c-black decoration-none flex items-center rounded text-4 h-11 px-3 shadow"
target="_blank"
:href="to"
>
<div v-if="icon" :class="icon" class="h-24px w-24px" /> <div v-if="icon" :class="icon" class="h-24px w-24px" />
<div class="ml-2" /> <div class="ml-2" />
<slot /> <slot />
@ -17,4 +13,8 @@ defineProps<{
}>() }>()
</script> </script>
<style scoped></style> <style scoped>
a {
--at-apply: bg-white hover:bg-stone-100 active:bg-neutral-200 border-solid border-2 border-light-950 c-coolgray-700 decoration-none flex items-center rounded text-4 h-11 px-3 shadow;
}
</style>

View File

@ -1,20 +1,34 @@
<script setup lang="ts"> <script setup lang="ts">
const links = [ const links = [
{
name: "Blog",
icon: "i-mdi:text-box",
link: "https://blog.thehrz.net",
},
{ {
icon: "i-mdi-github", name: "Github",
link: "https://github.com/thehrz" icon: "i-simple-icons-github",
} link: "https://github.com/thehrz",
},
{
name: "bilibili",
icon: "i-simple-icons-bilibili",
link: "https://space.bilibili.com/277921109",
},
] ]
</script> </script>
<template> <template>
<section class="flex flex-col items-center"> <section class="flex flex-col items-center">
<img class="w-8em shadow-lg" alt="thehrz" src="/thehrz.jpg" > <img class="w-8em shadow-lg" alt="thehrz" src="/thehrz.jpg" />
<h1 class="my-8 text-2.5em leading-[1.1] md:text-3.5em c-coolgray-700 font-300">Hi! I'm thehrz.</h1> <h1 class="my-8 text-2.5em leading-[1.1] md:text-3.5em c-coolgray-700 font-300 text-shadow-sm">
Hi! I'm thehrz.
</h1>
<Button v-for="link in links" :to="link.link" :icon="link.icon">Github</Button> <div class="flex flex-row flex-gap-2">
<Button v-for="link in links" :to="link.link" :icon="link.icon">{{ link.name }}</Button>
</div>
<p class="mt-8 c-dark-100">🚧 under construction...</p> <p class="mt-8 c-dark-100">🚧 under construction...</p>
</section> </section>