Skip to content

Commit c3e311e

Browse files
committed
fix Vue components
1 parent 1310d92 commit c3e311e

File tree

2 files changed

+77
-31
lines changed

2 files changed

+77
-31
lines changed

docs/.vuepress/components/Contributors.vue

Lines changed: 57 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
<template>
2-
<div v-if="hasContributors">
3-
<h2>Contributors</h2>
4-
5-
<div class="contributors-list">
6-
<div class="contributor" v-for="contributor in contributors" :key="contributor.login">
7-
<img class="contributor__avatar" :src="contributor.avatar_url" :alt="'The avatar used by ' + contributor.login" width="80" height="80">
8-
<a class="contributor__name" :href="contributor.html_url">{{ contributor.login }} <OutboundLink/></a>
9-
</div>
10-
</div>
2+
<div v-if="hasContributors">
3+
<h2 class="title">Contributors</h2>
4+
<p class="description">Your contributions matter. Here's to everyone who's helped bring this to life.</p>
5+
<div class="contributors-list">
6+
<div class="contributor" v-for="contributor in contributors" :key="contributor.login">
7+
<img
8+
class="contributor__avatar"
9+
:src="contributor.avatar_url"
10+
:alt="'The avatar used by ' + contributor.login"
11+
width="80"
12+
height="80"
13+
/>
14+
<a class="contributor__name" :href="contributor.html_url">{{ contributor.login }} <OutboundLink/></a>
15+
</div>
1116
</div>
17+
</div>
1218
</template>
1319

20+
21+
22+
1423
<script lang="ts">
1524
import { computed, defineComponent, ref } from 'vue'
1625
@@ -61,28 +70,46 @@ export default defineComponent({
6170
</script>
6271

6372
<style scoped>
64-
.contributors-list {
65-
display: flex;
66-
flex-direction: row;
67-
justify-content: space-around;
68-
flex-wrap: wrap;
69-
}
73+
.contributors-list {
74+
display: flex;
75+
flex-direction: row;
76+
justify-content: space-around;
77+
flex-wrap: wrap;
78+
}
7079
71-
.contributor {
72-
display: flex;
73-
flex-direction: column;
74-
align-content: center;
75-
justify-content: space-between;
76-
margin: 20px;
77-
}
80+
.contributor {
81+
display: flex;
82+
flex-direction: column;
83+
align-content: center;
84+
justify-content: space-between;
85+
margin: 20px;
86+
}
7887
79-
.contributor__avatar {
80-
border-radius: 50%;
81-
display: inline-block;
82-
margin: 5px auto;
83-
}
88+
.contributor__avatar {
89+
border-radius: 50%;
90+
display: inline-block;
91+
margin: 5px auto;
92+
}
8493
85-
.contributor__name {
86-
margin: 5px auto;
87-
}
94+
.contributor__name {
95+
margin: 5px auto;
96+
}
97+
98+
.title {
99+
font-size: 28px;
100+
font-weight: 900;
101+
margin-bottom: 20px;
102+
text-align: center;
103+
transition: color var(--vp-t-color);
104+
color: var(--vp-c-text-1);
105+
}
106+
107+
.description {
108+
font-size: 18px;
109+
font-weight: 400;
110+
margin-bottom: 20px;
111+
text-align: center;
112+
transition: color var(--vp-t-color);
113+
color: var(--vp-c-text-1);
114+
}
88115
</style>

docs/.vuepress/components/Projects.vue

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
2-
<h2>Projects</h2>
2+
<h2 class="section_title">Projects</h2>
3+
<p class="section_description">Built in public. Shared for everyone. Explore the repositories powering my experiments and tools.</p>
34
<br/>
45
<div>
56
<div v-if="loading" class="loading">Loading projects...</div>
@@ -175,4 +176,22 @@ onMounted(fetchProjects)
175176
.link-text-icon {
176177
margin-left: 6px;
177178
}
179+
180+
.section_title {
181+
font-size: 28px;
182+
font-weight: 900;
183+
margin-bottom: 20px;
184+
text-align: center;
185+
transition: color var(--vp-t-color);
186+
color: var(--vp-c-text-1);
187+
}
188+
189+
.section_description {
190+
font-size: 18px;
191+
font-weight: 400;
192+
margin-bottom: 20px;
193+
text-align: center;
194+
transition: color var(--vp-t-color);
195+
color: var(--vp-c-text-1);
196+
}
178197
</style>

0 commit comments

Comments
 (0)