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">
1524import { 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 >
0 commit comments