-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
90 lines (74 loc) · 1.63 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
<script setup lang="ts">
const { username, slogan, links, avatar } = useAppConfig()
useHead({
title: username,
link: [{ rel: 'icon', href: '/logo.svg' }],
meta: [
{ charset: 'utf-8' },
{ name: 'keywords', content: 'programmer and investor' },
{ name: 'description', content: `markthree's website` },
],
htmlAttrs: {
lang: 'zh-CN'
}
})
const { data } = await useLazyFetch(`/api/user/repos`)
</script>
<template>
<div class="px-5 pt-5 pb-10" lg="flex">
<section class="mr-15 w-300px">
<img :src="avatar" alt="markthree-avatar" width="300px" height="300px" class="rounded-full shadow" />
</section>
<section class="flex-1">
<Tip :title="username" :slogan="slogan" />
<Links title="Links" :links="links" />
<h2 class="mt-25 text-4xl text-#555555" dark="text-light-50">
Projects
</h2>
<List :projects="data" />
</section>
<div class="top-5 right-4 fixed">
<Theme />
</div>
<BackTop />
</div>
</template>
<style>
body {
transition: all 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.dark>body {
color: #adbac7;
background-color: #22272e;
}
/*
* 全局滚动条
*/
::-webkit-scrollbar {
width: 7px;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
}
::-webkit-scrollbar-track {
border-radius: 10px;
}
@media screen and (min-width: 720px) {
::-webkit-scrollbar {
background-color: rgb(246, 247, 248);
}
::-webkit-scrollbar-thumb {
background-color: rgb(229, 231, 235);
}
}
/*
* 全局滚动条(暗黑模式)
*/
html.dark ::-webkit-scrollbar,
html.dark ::-webkit-scrollbar-track {
background-color: #212529;
}
html.dark ::-webkit-scrollbar-thumb {
background-color: #343a40;
}
</style>