Skip to content

Commit 9dcbe2b

Browse files
committed
docs: my team
1 parent f7dfae0 commit 9dcbe2b

File tree

6 files changed

+32
-9
lines changed

6 files changed

+32
-9
lines changed

packages/hooks/docs/.vitepress/theme/home/DemoEditor.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
<template>
2+
<div>
3+
<h2 class="name">
4+
Grace
5+
</h2>
6+
</div>
27
<div id="demo-editor" ref="domRef">
38
<div class="terminal">
49
<slot />
@@ -70,6 +75,13 @@
7075
</script>
7176

7277
<style lang="less">
78+
h2 {
79+
text-align: center;
80+
font-weight: 600;
81+
color: var(--vp-font-color);
82+
padding-bottom: 1rem;
83+
}
84+
7385
#demo-editor {
7486
display: flex;
7587
justify-content: center;

packages/hooks/docs/.vitepress/theme/home/Home-EN.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import DemoEditor from './DemoEditor.vue'
3-
// import HomeTeam from './HomeTeam.vue'
3+
import HomeTeam from './HomeTeam.vue'
44
import Icon from './Icon.vue'
55
// import Waves from '../Waves/index.vue'
66
import Waves from '../Wave.vue'
@@ -106,7 +106,7 @@
106106
<pre ref="block" class="text-left whitespace-normal font-mono bg-transparent"></pre>
107107
</div> -->
108108
</DemoEditor>
109-
<!-- <HomeTeam /> -->
109+
<HomeTeam />
110110
</div>
111111
</template>
112112

packages/hooks/docs/.vitepress/theme/home/Home.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import DemoEditor from './DemoEditor.vue'
3-
// import HomeTeam from './HomeTeam.vue'
3+
import HomeTeam from './HomeTeam.vue'
44
import Icon from './Icon.vue'
55
66
// import Waves from '../Waves/index.vue'
@@ -102,7 +102,7 @@
102102
Demo.vue
103103
</div>
104104
</DemoEditor>
105-
<!-- <HomeTeam /> -->
105+
<HomeTeam />
106106
</div>
107107
</template>
108108

packages/hooks/docs/.vitepress/theme/home/HomeTeam.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@
2424
h2 {
2525
text-align: center;
2626
font-weight: 600;
27-
transform: scale(0.6);
27+
/* transform: scale(0.8); */
2828
color: var(--vp-font-color);
29+
padding-bottom: 1rem;
2930
}
3031
3132
.main {
3233
/* padding: 96px 32px; */
3334
text-align: center;
35+
background-color: var(--vp-c-bg);
3436
}
3537
3638
.grid {
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
.home {
22
height: 100%;
33
padding-top: 24px;
4-
background: url('/light.jpg');
4+
// background: url('/light.jpg');
5+
background-size: contain;
56
}
67
.dark {
78
.home {
89
padding-top: 24px;
910
background: url('/dark.jpg') no-repeat;
11+
background-size: contain;
1012
}
1113
}

packages/hooks/docs/contributors.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface CoreTeam {
1818

1919
const contributorsAvatars: Record<string, string> = {}
2020

21-
const getAvatarUrl = (name: string) => `https://github.com/${name}.png`
21+
const getAvatarUrl = (name: string) => `https://github.com/${encodeURIComponent(name)}.png`
2222

2323
const contributorList = (contributors as string[]).reduce((acc, name) => {
2424
contributorsAvatars[name] = getAvatarUrl(name)
@@ -40,16 +40,23 @@ const coreTeamMembers: CoreTeam[] = [
4040
avatar: contributorsAvatars.hongaah,
4141
name: 'Hongaah',
4242
github: 'hongaah',
43-
description: '',
43+
description: "Swiftcode's Author",
4444
functions: ['useSetState', 'useWebSocket'],
4545
},
46+
{
47+
avatar: "https://avatars.githubusercontent.com/u/51957438?v=4",
48+
name: 'XiaoDaiGua-Ray',
49+
github: 'XiaoDaiGua-Ray',
50+
description: 'Tring be better~',
51+
functions: ['useElementBounding', 'useMutationObserver'],
52+
},
4653
{
4754
avatar: contributorsAvatars.Noobbbbbbb,
4855
name: 'Noobbbbbbb',
4956
github: 'Noobbbbbbb',
5057
description: '',
5158
functions: ['useFullscreen'],
52-
},
59+
}
5360
]
5461
// .sort(
5562
// (pre, cur) =>

0 commit comments

Comments
 (0)