Skip to content

Commit 7faf05e

Browse files
committedMar 5, 2025·
Homepage edits
1 parent 8405908 commit 7faf05e

File tree

3 files changed

+34
-22
lines changed

3 files changed

+34
-22
lines changed
 

‎packages/docs/src/content/docs/index.mdx

+13-15
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,17 @@ import Contributors from '../../components/Contributors.astro';
3333

3434
:::section{.badges}
3535

36-
[![NPM Version][2]][1] [![NPM Downloads][3]][1] [![GitHub Repo stars][5]][4]
36+
[![NPM Version][2]][1] [![NPM Downloads][3]][1] [![GitHub Repo stars][5]][4]
3737

3838
:::
3939

40-
:::section{.projects}
41-
42-
<Projects />
40+
:a[Sponsored by:]{href="/sponsors" class="sponsors-intro"}
4341

44-
:::
42+
<Sponsors direction="row" showAll={false} />
4543

4644
:::div{.sponsor}
4745

48-
Using Knip? [You can support it!][6]
46+
[Become a Sponsor][6]
4947

5048
:::
5149

@@ -92,30 +90,30 @@ Using Knip? [You can support it!][6]
9290
</Card>
9391
</CardGrid>
9492

95-
## 🧡 Sponsors
93+
## Trusted by the world's best software teams
9694

97-
Eternal gratitude to the companies and people that are already supporting Knip:
95+
:::section{.projects}
9896

99-
<Sponsors direction="row" showAll={false} />
97+
<Projects />
10098

101-
Please see [Sponsors][6] for the full list. Consider supporting the project too!
99+
:::
102100

103-
## 🧡 Introduction video
101+
## Introduction video
104102

105103
[James Shopland][10] has a great introduction and overview of Knip (thanks
106104
James!):
107105

108106
<YouTube id="uhEkgWt-pUM" />
109107

110-
## 🧡 Contributors
108+
## Created by awesome contributors
111109

112110
Special thanks to the wonderful people who have contributed to this project:
113111

114112
<Contributors />
115113

116-
## 🧡 Articles
114+
## Articles about Knip
117115

118-
Most recent article first:
116+
A curated selection of articles about Knip, most recent first:
119117

120118
- Tom MacWright: [Knip: good software for cleaning up TypeScript tech debt][11]
121119
(2024-10-25)
@@ -133,7 +131,7 @@ Most recent article first:
133131
- Effective TypeScript: [Recommendation Update: ✂️ Use knip to detect dead code
134132
and types][18] (2023-07-29)
135133

136-
## 🧡 Testimonials
134+
## Don't just take our word for it
137135

138136
<Posts />
139137

‎packages/docs/src/styles/content.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ section.plugins li {
9898
.sl-markdown-content .sponsor {
9999
font-size: 2rem;
100100
text-align: center;
101-
margin: 5rem 0;
101+
margin: 4rem 0;
102102
}
103103

104104
.sl-badge.caution,
@@ -171,7 +171,7 @@ section.plugins li {
171171
}
172172

173173
.badges {
174-
margin: 6rem auto;
174+
margin: 4rem auto;
175175
p {
176176
display: flex;
177177
justify-content: center;

‎packages/docs/src/styles/sponsors.css

+19-5
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,30 @@
2323
}
2424
}
2525

26+
.sl-markdown-content .sponsors-intro {
27+
font-style: italic;
28+
border: unset;
29+
&:hover {
30+
border-bottom: inherit;
31+
}
32+
}
33+
34+
.sl-markdown-content p:has(> .sponsors-intro) {
35+
text-align: center;
36+
}
37+
2638
.sponsors {
2739
display: flex;
28-
flex-direction: row;
29-
flex-wrap: wrap;
3040
justify-content: center;
3141
align-items: center;
3242
gap: 5rem;
3343
}
3444

35-
.sl-markdown-content .sponsors:not(.column) {
45+
.sponsors.column {
46+
flex-wrap: wrap;
47+
}
48+
49+
.sl-markdown-content .sponsors.row {
3650
margin: 3rem 0;
3751
gap: 3rem;
3852
}
@@ -50,8 +64,8 @@
5064
width: 500px;
5165
}
5266

53-
.sponsors .smaller {
54-
margin: 0 2em;
67+
.sponsors .smaller svg {
68+
transform: scale(0.85);
5569
}
5670

5771
.sponsors .w400 {

0 commit comments

Comments
 (0)
Please sign in to comment.