-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
95 lines (84 loc) · 2.2 KB
/
app.vue
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
<script setup>
import { initRainy } from '@/scripts/rainy'
import '@unocss/reset/tailwind.css'
initRainy()
useSeoMeta({
title: 'Jannchie\'s Journey as Full Stack Engineer',
description: 'For heaven and earth, for the people\'s livelihood, for the wisdom of the ancients, for everlasting peace.',
ogTitle: 'Jannchie\'s Journey as Full Stack Engineer',
ogDescription: 'For heaven and earth, for the people\'s livelihood, for the wisdom of the ancients, for everlasting peace.',
ogImage: 'https://jannchie.com/imgs/jannchie.jpg',
ogUrl: 'https://jannchie.com',
twitterTitle: 'Jannchie\'s Journey as Full Stack Engineer',
twitterDescription: 'For heaven and earth, for the people\'s livelihood, for the wisdom of the ancients, for everlasting peace.',
twitterImage: 'https://jannchie.com/imgs/jannchie.jpg',
twitterCard: 'summary',
})
useHead({
htmlAttrs: {
lang: 'en',
},
meta: {
name: 'theme-color',
content: '#000000',
},
link: [
{
rel: 'icon',
type: 'image/png',
href: '/favicon.ico',
},
],
}, { mode: 'server' })
</script>
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
<style>
:root {
color-scheme: light dark;
background: var(--j-bg-3);
--j-bg-1: #fff;
--j-bg-2: #f9f9f9;
--j-bg-3: #f9f9f9;
--j-fg-1: #100F0F;
--j-fg-2: #222;
--j-fg-3: #2f2f2f;
--j-bd: #ccc;
color: var(--j-fg-2);
}
[lang="ja"] *:not(.font-mono) {
font-family: 'HarmonyOS Sans JP', 'Yu Gothic UI', 'Segoe UI', 'Inter', system-ui, sans-serif;
}
[lang="zh-CN"] *:not(.font-mono) {
font-family: 'HarmonyOS Sans SC', 'Microsoft YaHei UI', 'Segoe UI', 'Inter', system-ui, sans-serif;
}
*:not(.font-mono) {
font-family: 'Oxygen', 'Segoe UI', 'Inter', system-ui, sans-serif;
}
[color-scheme="dark"] {
--j-bg-1: #333;
--j-bg-2: #222;
--j-bg-3: #100F0F;
--j-fg-1: #fff;
--j-fg-2: #ddd;
--j-fg-3: #aaa;
--j-bd: #333;
}
[data-cursor="block"] {
@apply border border-transparent hover:border-bd px-2 md:px-4 py-2 transition-all duration-300;
}
::selection {
@apply bg-bg-1 text-fg-1;
}
.page-enter-active,
.page-leave-active {
@apply transition-all duration-300;
}
.page-enter-from,
.page-leave-to {
@apply blur-2xl opacity-0;
}
</style>