|
1 | 1 | <script setup lang="ts"> |
2 | 2 | import { adopters } from '../adopters'; |
| 3 | +import { data as stars } from '../githubStars.data'; |
3 | 4 |
|
4 | 5 | const loop = [...adopters, ...adopters]; |
5 | 6 | </script> |
6 | 7 |
|
7 | 8 | <template> |
8 | 9 | <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">→</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">→</span> |
| 29 | + </a> |
| 30 | + </div> |
| 31 | + </div> |
23 | 32 |
|
24 | 33 | <div class="viewport"> |
25 | 34 | <div class="track"> |
@@ -51,50 +60,60 @@ const loop = [...adopters, ...adopters]; |
51 | 60 |
|
52 | 61 | <style scoped> |
53 | 62 | .adopters-carousel { |
54 | | - max-width: 1248px; |
55 | | - margin: 5rem auto 2rem; |
| 63 | + max-width: 1152px; |
| 64 | + margin: 3rem auto 0; |
56 | 65 | padding: 0 24px; |
57 | 66 | } |
58 | 67 |
|
| 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 | +
|
59 | 82 | .label { |
60 | 83 | font-family: var(--vp-font-family-mono); |
61 | 84 | font-size: 0.8rem; |
62 | 85 | font-weight: 500; |
63 | 86 | letter-spacing: 0.04em; |
64 | 87 | color: var(--vp-c-text-2); |
65 | 88 | text-transform: uppercase; |
66 | | - text-align: center; |
67 | | - margin: 0 0 0.75rem; |
| 89 | + margin: 0; |
68 | 90 | } |
69 | 91 |
|
70 | 92 | .slashes { |
71 | 93 | color: var(--vp-c-brand-1); |
72 | 94 | margin-right: 0.4em; |
73 | 95 | } |
74 | 96 |
|
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, |
89 | 98 | .see-all { |
90 | | - display: inline-block; |
91 | | - margin-left: 0.4em; |
| 99 | + display: inline-flex; |
| 100 | + align-items: center; |
| 101 | + gap: 0.35rem; |
92 | 102 | color: var(--vp-c-brand-1); |
| 103 | + font-size: 0.85rem; |
93 | 104 | font-weight: 500; |
94 | 105 | white-space: nowrap; |
95 | 106 | text-decoration: none !important; |
96 | 107 | } |
97 | 108 |
|
| 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 | +
|
98 | 117 | .see-all:hover { |
99 | 118 | text-decoration: underline !important; |
100 | 119 | } |
@@ -209,7 +228,14 @@ const loop = [...adopters, ...adopters]; |
209 | 228 |
|
210 | 229 | @media (max-width: 640px) { |
211 | 230 | .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; |
213 | 239 | } |
214 | 240 | } |
215 | 241 |
|
|
0 commit comments