From 2a3b7e20c2ec3cdeebcdd7ebd40e5be6212fb937 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Thu, 11 Apr 2024 20:14:27 +0700 Subject: [PATCH 1/6] docs: add donate links --- docs/.vitepress/config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 88d3791ca9d..2f0b13b80dc 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -137,7 +137,8 @@ const config: UserConfig = { }, footer: { - message: 'Released under the MIT License.', + message: + 'Released under the MIT License.
❤️ Support Faker on OpenCollective.', copyright: 'Copyright © 2022-present Faker.', }, @@ -174,6 +175,10 @@ const config: UserConfig = { }, ], }, + { + text: 'Donate', + link: 'https://opencollective.com/fakerjs', + }, { text: currentVersion, items: [ From 6370a1a6467d13def7e4b8712faa15866a8e1cb2 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Mon, 15 Apr 2024 16:36:27 +0700 Subject: [PATCH 2/6] big donate button on homepage, small OC icon in socials --- docs/.vitepress/config.ts | 14 ++++++++------ docs/.vitepress/theme/index.css | 26 ++++++++++++++++++++++++++ docs/index.md | 4 ++++ 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 2f0b13b80dc..509d4282b08 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -125,6 +125,13 @@ const config: UserConfig = { { icon: 'mastodon', link: 'https://fosstodon.org/@faker_js' }, { icon: 'twitter', link: 'https://twitter.com/faker_js' }, { icon: 'github', link: 'https://github.com/faker-js/faker' }, + { + icon: { + svg: '', + }, + link: 'https://opencollective.com/fakerjs', + ariaLabel: 'Open Collective', + }, ], algolia: @@ -137,8 +144,7 @@ const config: UserConfig = { }, footer: { - message: - 'Released under the MIT License.
❤️ Support Faker on OpenCollective.', + message: 'Released under the MIT License.', copyright: 'Copyright © 2022-present Faker.', }, @@ -175,10 +181,6 @@ const config: UserConfig = { }, ], }, - { - text: 'Donate', - link: 'https://opencollective.com/fakerjs', - }, { text: currentVersion, items: [ diff --git a/docs/.vitepress/theme/index.css b/docs/.vitepress/theme/index.css index fd51def488f..29ed4df9316 100644 --- a/docs/.vitepress/theme/index.css +++ b/docs/.vitepress/theme/index.css @@ -74,3 +74,29 @@ 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; + justify-content: center; +} + +.opencollective a { + 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; +} diff --git a/docs/index.md b/docs/index.md index f3318e7324e..a0a22efeb76 100644 --- a/docs/index.md +++ b/docs/index.md @@ -39,3 +39,7 @@ features: title: Localization details: Pick a locale to generate realistic looking Names, Addresses, and Phone Numbers. --- + + From 75dc0ddaf94f493c200468e6b0fa8d26b728afa7 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Mon, 15 Apr 2024 16:50:47 +0700 Subject: [PATCH 3/6] Add tooltiop --- docs/.vitepress/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 509d4282b08..1bd58a3affd 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -127,7 +127,7 @@ const config: UserConfig = { { icon: 'github', link: 'https://github.com/faker-js/faker' }, { icon: { - svg: '', + svg: 'Open Collective', }, link: 'https://opencollective.com/fakerjs', ariaLabel: 'Open Collective', From 21e9acbff245f2e2b851fd138cde600b426d9b98 Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Mon, 15 Apr 2024 16:55:47 +0700 Subject: [PATCH 4/6] add text description --- docs/.vitepress/theme/index.css | 4 ++++ docs/index.md | 1 + 2 files changed, 5 insertions(+) diff --git a/docs/.vitepress/theme/index.css b/docs/.vitepress/theme/index.css index 29ed4df9316..d0fd27b0990 100644 --- a/docs/.vitepress/theme/index.css +++ b/docs/.vitepress/theme/index.css @@ -78,10 +78,14 @@ table td ul li { .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; diff --git a/docs/index.md b/docs/index.md index a0a22efeb76..36b71577252 100644 --- a/docs/index.md +++ b/docs/index.md @@ -41,5 +41,6 @@ features: ---
+ 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. Support Faker on OpenCollective
From c498cff3518fe046871fa525b638a2b1a106a10c Mon Sep 17 00:00:00 2001 From: Matt Mayer <152770+matthewmayer@users.noreply.github.com> Date: Fri, 19 Apr 2024 10:23:33 +0700 Subject: [PATCH 5/6] replace with the simpleicons icon --- docs/.vitepress/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 390e20bb7dd..f892b2a12c1 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -127,7 +127,7 @@ const config: UserConfig = { { icon: 'github', link: 'https://github.com/faker-js/faker' }, { icon: { - svg: 'Open Collective', + svg: 'Open Collective' }, link: 'https://opencollective.com/fakerjs', ariaLabel: 'Open Collective', From 7aae8786ef5eab0cdf649228ee49efc0783d922c Mon Sep 17 00:00:00 2001 From: Matt Mayer Date: Fri, 19 Apr 2024 10:28:31 +0700 Subject: [PATCH 6/6] format --- docs/.vitepress/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index f892b2a12c1..e92efc8e073 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -127,7 +127,7 @@ const config: UserConfig = { { icon: 'github', link: 'https://github.com/faker-js/faker' }, { icon: { - svg: 'Open Collective' + svg: 'Open Collective', }, link: 'https://opencollective.com/fakerjs', ariaLabel: 'Open Collective',