Skip to content

Commit 3624714

Browse files
committed
docs(site): move social proof below homepage features
1 parent 70684c3 commit 3624714

4 files changed

Lines changed: 67 additions & 76 deletions

File tree

website/.vitepress/components/AdoptersCarousel.vue

Lines changed: 61 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
<script setup lang="ts">
22
import { adopters } from '../adopters';
3+
import { data as stars } from '../githubStars.data';
34
45
const loop = [...adopters, ...adopters];
56
</script>
67

78
<template>
89
<section class="adopters-carousel" aria-labelledby="adopters-heading">
9-
<h2 id="adopters-heading" class="label">
10-
<span class="slashes">//</span>
11-
Trusted by open source projects
12-
</h2>
13-
<p class="subline">
14-
Adopted by <strong>Docker</strong>, <strong>Vercel</strong>,
15-
<strong>HashiCorp</strong>, <strong>Microsoft</strong>,
16-
<strong>Google Cloud</strong>, <strong>AWS</strong>,
17-
<strong>Anthropic</strong> and more.
18-
<a class="see-all" href="/adopters">
19-
See all adopters
20-
<span class="see-all-arrow" aria-hidden="true">&rarr;</span>
21-
</a>
22-
</p>
10+
<div class="heading">
11+
<h2 id="adopters-heading" class="label">
12+
<span class="slashes" aria-hidden="true">//</span>
13+
Trusted across open source
14+
</h2>
15+
<div class="heading-links">
16+
<a
17+
class="github-stars"
18+
href="https://github.com/go-task/task"
19+
target="_blank"
20+
rel="noreferrer"
21+
data-umami-event="home-adopters-github"
22+
>
23+
<span class="vpi-social-github" aria-hidden="true"></span>
24+
{{ stars.label }} stars
25+
</a>
26+
<a class="see-all" href="/adopters">
27+
See all adopters
28+
<span class="see-all-arrow" aria-hidden="true">&rarr;</span>
29+
</a>
30+
</div>
31+
</div>
2332

2433
<div class="viewport">
2534
<div class="track">
@@ -51,50 +60,60 @@ const loop = [...adopters, ...adopters];
5160

5261
<style scoped>
5362
.adopters-carousel {
54-
max-width: 1248px;
55-
margin: 5rem auto 2rem;
63+
max-width: 1152px;
64+
margin: 3rem auto 0;
5665
padding: 0 24px;
5766
}
5867
68+
.heading {
69+
display: flex;
70+
align-items: baseline;
71+
justify-content: space-between;
72+
gap: 1rem;
73+
margin: 0 0 1rem;
74+
}
75+
76+
.heading-links {
77+
display: flex;
78+
align-items: center;
79+
gap: 1rem;
80+
}
81+
5982
.label {
6083
font-family: var(--vp-font-family-mono);
6184
font-size: 0.8rem;
6285
font-weight: 500;
6386
letter-spacing: 0.04em;
6487
color: var(--vp-c-text-2);
6588
text-transform: uppercase;
66-
text-align: center;
67-
margin: 0 0 0.75rem;
89+
margin: 0;
6890
}
6991
7092
.slashes {
7193
color: var(--vp-c-brand-1);
7294
margin-right: 0.4em;
7395
}
7496
75-
.subline {
76-
text-align: center;
77-
font-size: 0.95rem;
78-
color: var(--vp-c-text-2);
79-
max-width: 640px;
80-
margin: 0 auto 2rem;
81-
line-height: 1.5;
82-
}
83-
84-
.subline strong {
85-
color: var(--vp-c-text-1);
86-
font-weight: 600;
87-
}
88-
97+
.github-stars,
8998
.see-all {
90-
display: inline-block;
91-
margin-left: 0.4em;
99+
display: inline-flex;
100+
align-items: center;
101+
gap: 0.35rem;
92102
color: var(--vp-c-brand-1);
103+
font-size: 0.85rem;
93104
font-weight: 500;
94105
white-space: nowrap;
95106
text-decoration: none !important;
96107
}
97108
109+
.github-stars {
110+
color: var(--vp-c-text-2);
111+
}
112+
113+
.github-stars:hover {
114+
color: var(--vp-c-brand-1);
115+
}
116+
98117
.see-all:hover {
99118
text-decoration: underline !important;
100119
}
@@ -209,7 +228,14 @@ const loop = [...adopters, ...adopters];
209228
210229
@media (max-width: 640px) {
211230
.adopters-carousel {
212-
margin-top: 3.5rem;
231+
margin-top: 2.5rem;
232+
padding: 0 16px;
233+
}
234+
235+
.heading {
236+
align-items: flex-start;
237+
flex-direction: column;
238+
gap: 0.65rem;
213239
}
214240
}
215241

website/.vitepress/components/HeroStars.vue

Lines changed: 0 additions & 37 deletions
This file was deleted.

website/.vitepress/components/HomePage.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ onUnmounted(() => window.clearTimeout(copyResetTimer));
9292

9393
<template>
9494
<main class="home-content">
95+
<AdoptersCarousel />
96+
9597
<section class="quick-start" aria-labelledby="quick-start-title">
9698
<div class="section-heading">
9799
<p class="eyebrow">
@@ -246,8 +248,6 @@ onUnmounted(() => window.clearTimeout(copyResetTimer));
246248
</div>
247249
</section>
248250

249-
<AdoptersCarousel />
250-
251251
<div class="sponsors">
252252
<VPHomeSponsors
253253
v-if="sponsors"
@@ -271,6 +271,10 @@ onUnmounted(() => window.clearTimeout(copyResetTimer));
271271
padding: 6rem 24px 0;
272272
}
273273
274+
.quick-start {
275+
padding-top: 4.5rem;
276+
}
277+
274278
.section-heading {
275279
max-width: 720px;
276280
margin-bottom: 2rem;

website/.vitepress/theme/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import DefaultTheme from 'vitepress/theme';
22
import type { Theme } from 'vitepress';
33
import './custom.css';
44
import HomePage from '../components/HomePage.vue';
5-
import HeroStars from '../components/HeroStars.vue';
65
import AuthorCard from '../components/AuthorCard.vue';
76
import BlogPost from '../components/BlogPost.vue';
87
import Version from '../components/Version.vue';
@@ -16,7 +15,6 @@ export default {
1615
extends: DefaultTheme,
1716
Layout() {
1817
return h(DefaultTheme.Layout, null, {
19-
'home-hero-actions-after': () => h(HeroStars),
2018
'home-features-after': () => h(HomePage)
2119
});
2220
},

0 commit comments

Comments
 (0)