Skip to content

Commit 6370a1a

Browse files
committed
big donate button on homepage, small OC icon in socials
1 parent 2a3b7e2 commit 6370a1a

File tree

3 files changed

+38
-6
lines changed

3 files changed

+38
-6
lines changed

docs/.vitepress/config.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,13 @@ const config: UserConfig<DefaultTheme.Config> = {
125125
{ icon: 'mastodon', link: 'https://fosstodon.org/@faker_js' },
126126
{ icon: 'twitter', link: 'https://twitter.com/faker_js' },
127127
{ icon: 'github', link: 'https://github.com/faker-js/faker' },
128+
{
129+
icon: {
130+
svg: '<svg role="img" width="14px" height="14px" viewBox="0 0 14 14"><path d="M 7,1 C 3.6862915,1 1,3.686292 1,7 c 0,3.313708 2.6862915,6 6,6 1.2698255,0 2.4472377,-0.394558 3.416941,-1.06764 L 8.8632814,10.378084 C 8.3110136,10.683293 7.6756458,10.857319 7,10.857319 4.8697587,10.857319 3.1426809,9.130241 3.1426809,7 3.1426809,4.869759 4.8697587,3.142681 7,3.142681 c 0.6756458,0 1.3110136,0.174026 1.8632814,0.479235 L 10.416941,2.06764 C 9.4472377,1.394558 8.2698255,1 7,1 Z m 4.93236,2.583059 -1.554276,1.55366 c 0.267058,0.483234 0.433793,1.029899 0.471217,1.611636 0.0053,0.08311 0.008,0.167189 0.008,0.251645 0,0.675646 -0.174026,1.311014 -0.479235,1.863281 l 1.554276,1.55366 C 12.605442,9.447238 13,8.269825 13,7 13,5.730175 12.605442,4.552762 11.93236,3.583059 Z"/></svg>',
131+
},
132+
link: 'https://opencollective.com/fakerjs',
133+
ariaLabel: 'Open Collective',
134+
},
128135
],
129136

130137
algolia:
@@ -137,8 +144,7 @@ const config: UserConfig<DefaultTheme.Config> = {
137144
},
138145

139146
footer: {
140-
message:
141-
'Released under the MIT License. <br/><a target="_blank" href="https://opencollective.com/fakerjs">❤️ Support Faker on OpenCollective.</a>',
147+
message: 'Released under the MIT License.',
142148
copyright: 'Copyright © 2022-present Faker.',
143149
},
144150

@@ -175,10 +181,6 @@ const config: UserConfig<DefaultTheme.Config> = {
175181
},
176182
],
177183
},
178-
{
179-
text: 'Donate',
180-
link: 'https://opencollective.com/fakerjs',
181-
},
182184
{
183185
text: currentVersion,
184186
items: [

docs/.vitepress/theme/index.css

+26
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,29 @@ table td ul li {
7474
.dark .VPHero .action:not(:last-child) a.VPButton.alt {
7575
color: var(--vp-button-brand-text) !important;
7676
}
77+
78+
.opencollective {
79+
margin-top: 48px;
80+
display: flex;
81+
justify-content: center;
82+
}
83+
84+
.opencollective a {
85+
border-radius: 20px;
86+
padding: 0 20px;
87+
line-height: 38px;
88+
font-size: 14px;
89+
display: inline-block;
90+
border: 1px solid transparent;
91+
text-align: center;
92+
font-weight: 600;
93+
white-space: nowrap;
94+
text-decoration: none;
95+
96+
color: var(--vp-button-alt-text);
97+
border-color: var(--vp-button-brand-bg) !important;
98+
transition:
99+
color 0.25s,
100+
border-color 0.25s,
101+
background-color 0.25s;
102+
}

docs/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ features:
3939
title: Localization
4040
details: Pick a locale to generate realistic looking Names, Addresses, and Phone Numbers.
4141
---
42+
43+
<div class="opencollective">
44+
<a target="_blank" href="https://opencollective.com/fakerjs">Support Faker on OpenCollective</a>
45+
</div>

0 commit comments

Comments
 (0)