From 896f3dc671c7ccf1387ff4378ced982dbe19cbe8 Mon Sep 17 00:00:00 2001 From: Jun Shindo <46585162+jay-es@users.noreply.github.com> Date: Thu, 6 Feb 2025 20:42:14 +0900 Subject: [PATCH] theme: workaround adblock for sponsors --- .vitepress/config.ts | 2 +- .vitepress/theme/components/Home.vue | 30 ++++---- .vitepress/theme/components/SponsorsGroup.vue | 70 +++++++++---------- .vitepress/theme/components/sponsors.ts | 2 +- 4 files changed, 52 insertions(+), 52 deletions(-) diff --git a/.vitepress/config.ts b/.vitepress/config.ts index c017edc4f..8ffc1eaf4 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -643,7 +643,7 @@ export default defineConfigWithTheme({ 'link', { rel: 'preconnect', - href: 'https://sponsors.vuejs.org' + href: 'https://automation.vuejs.org' } ], [ diff --git a/.vitepress/theme/components/Home.vue b/.vitepress/theme/components/Home.vue index 98d890df1..e72fc8a7a 100644 --- a/.vitepress/theme/components/Home.vue +++ b/.vitepress/theme/components/Home.vue @@ -52,7 +52,7 @@ onMounted(load)

-
+
スペシャルスポンサー
-
+
Special Sponsor slot is now vacant - Inquire now @@ -106,7 +106,7 @@ onMounted(load)
-
+

プラチナスポンサー

ゴールドスポンサー

@@ -226,7 +226,7 @@ html:not(.dark) .accent, background-color: var(--vt-c-gray-dark-3); } -#special-sponsor { +#special-spsr { border-top: 1px solid var(--vt-c-divider-light); border-bottom: 1px solid var(--vt-c-divider-light); padding: 12px 24px; @@ -234,7 +234,7 @@ html:not(.dark) .accent, align-items: center; } -#special-sponsor span { +#special-spsr span { color: var(--vt-c-text-2); font-weight: 500; font-size: 13px; @@ -242,22 +242,22 @@ html:not(.dark) .accent, flex: 1; } -#special-sponsor span:first-child { +#special-spsr span:first-child { text-align: right; } -#special-sponsor a { +#special-spsr a { display: flex; justify-content: center; padding: 0 24px; } -#special-sponsor img { +#special-spsr img { height: 42px; margin: -6px 0; } -.dark #special-sponsor img { +.dark #special-spsr img { filter: grayscale(1) invert(1); } @@ -285,18 +285,18 @@ html:not(.dark) .accent, background-color: transparent; } -#sponsors { +#spsrs { max-width: 900px; margin: 0px auto; } -#sponsors h2 { +#spsrs h2 { font-size: 20px; font-weight: 600; margin-bottom: 1em; } -#sponsors .sponsor-container { +#spsrs .spsr-container { margin-bottom: 3em; } @@ -329,14 +329,14 @@ html:not(.dark) .accent, font-size: 16px; margin: 18px 0 30px; } - #special-sponsor { + #special-spsr { flex-direction: column; } - #special-sponsor img { + #special-spsr img { height: 36px; margin: 8px 0; } - #special-sponsor span { + #special-spsr span { text-align: center !important; } #highlights h3 { diff --git a/.vitepress/theme/components/SponsorsGroup.vue b/.vitepress/theme/components/SponsorsGroup.vue index 9acc789d4..430b2dd96 100644 --- a/.vitepress/theme/components/SponsorsGroup.vue +++ b/.vitepress/theme/components/SponsorsGroup.vue @@ -66,13 +66,13 @@ function resolveList(data: SponsorData) {