Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add donate links #2806

Merged
merged 9 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ const config: UserConfig<DefaultTheme.Config> = {
{ icon: 'mastodon', link: 'https://fosstodon.org/@faker_js' },
{ icon: 'x', link: 'https://twitter.com/faker_js' },
{ icon: 'github', link: 'https://github.com/faker-js/faker' },
{
icon: {
svg: '<svg role="img" width="14px" height="14px" viewBox="0 0 14 14"><title>Open Collective</title><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>',
matthewmayer marked this conversation as resolved.
Show resolved Hide resolved
},
link: 'https://opencollective.com/fakerjs',
ariaLabel: 'Open Collective',
},
],

algolia:
Expand Down
30 changes: 30 additions & 0 deletions docs/.vitepress/theme/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,33 @@ table td ul li {
.dark .VPHero .action:not(:last-child) a.VPButton.alt {
color: var(--vp-button-brand-text) !important;
}

.opencollective {
margin-top: 48px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}

.opencollective a {
margin-top: 24px;
border-radius: 20px;
padding: 0 20px;
line-height: 38px;
font-size: 14px;
display: inline-block;
border: 1px solid transparent;
text-align: center;
font-weight: 600;
white-space: nowrap;
text-decoration: none;

color: var(--vp-button-alt-text);
border-color: var(--vp-button-brand-bg) !important;
transition:
color 0.25s,
border-color 0.25s,
background-color 0.25s;
}
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ features:
title: Localization
details: Pick a locale to generate realistic looking Names, Addresses, and Phone Numbers.
---

<div class="opencollective">
Faker is freely available to use for commercial and non-commercial purposes under the MIT license. The development of Faker is guided by an international team of volunteer maintainers. If you use Faker in your project, please consider making a one-off or recurring donation via Open Collective.
<a target="_blank" href="https://opencollective.com/fakerjs">Support Faker on OpenCollective</a>
</div>
Loading