]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: update sponsors
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 24 Jan 2023 15:01:58 +0000 (16:01 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 24 Jan 2023 15:01:58 +0000 (16:01 +0100)
packages/docs/.vitepress/components/sponsors.json
packages/docs/.vitepress/theme/Layout.ts

index c0843da0c2ea0a43ca2e8f217d4e1283e4bed8e1..e9c704b398fa24bcc6f380ae842c8711edaa24e5 100644 (file)
@@ -1,13 +1,6 @@
 {
   "platinum": [],
-  "gold": [
-    {
-      "href": "https://vuejobs.com/?utm_source=vuerouter&utm_campaign=sponsor",
-      "alt": "VueJobs",
-      "imgSrcLight": "https://posva-sponsors.pages.dev/logos/vuejobs.svg",
-      "imgSrcDark": "https://posva-sponsors.pages.dev/logos/vuejobs.svg"
-    }
-  ],
+  "gold": [],
   "silver": [
     {
       "href": "https://www.vuemastery.com/",
@@ -31,7 +24,7 @@
     },
     {
       "alt": "Antony Konstantinidis",
-      "href": "www.vuejs.de",
+      "href": "https://www.vuejs.de",
       "imgSrcDark": "https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4",
       "imgSrcLight": "https://avatars.githubusercontent.com/u/4183726?u=6b50a8ea16de29d2982f43c5640b1db9299ebcd1&v=4"
     },
@@ -45,7 +38,7 @@
       "href": "https://nuxtjs.org",
       "imgSrcLight": "https://posva-sponsors.pages.dev/logos/nuxt-light.svg",
       "imgSrcDark": "https://posva-sponsors.pages.dev/logos/nuxt-dark.svg",
-      "alt": "NuxtJS"
+      "alt": "Nuxt Labs"
     }
   ]
 }
index 7119ce840838457ef393e4da3fd2042538515857..7aad456a5341378a145736b249017361dbd6117e 100644 (file)
@@ -73,26 +73,29 @@ export const Layout = defineComponent({
                     ),
                   ]),
             ]),
-          'sidebar-bottom': () =>
-            h('div', { class: 'sponsors' }, [
-              h('span', 'Sponsors'),
-              ...sponsors.gold.map(({ href, imgSrcDark, imgSrcLight, alt }) =>
-                h(
-                  'a',
-                  {
-                    href,
-                    target: '_blank',
-                    rel: 'noopener',
-                  },
-                  [
-                    h('img', {
-                      src: isDark.value ? imgSrcDark : imgSrcLight,
-                      alt,
-                    }),
-                  ]
-                )
-              ),
-            ]),
+          'sidebar-bottom': sponsors.gold.length
+            ? () =>
+                h('div', { class: 'sponsors' }, [
+                  h('span', 'Sponsors'),
+                  ...sponsors.gold.map(
+                    ({ href, imgSrcDark, imgSrcLight, alt }) =>
+                      h(
+                        'a',
+                        {
+                          href,
+                          target: '_blank',
+                          rel: 'noopener',
+                        },
+                        [
+                          h('img', {
+                            src: isDark.value ? imgSrcDark : imgSrcLight,
+                            alt,
+                          }),
+                        ]
+                      )
+                  ),
+                ])
+            : undefined,
         }
       )
   },