From 3d41f8a34e4c3d97e3de281f4ec061ef656793d0 Mon Sep 17 00:00:00 2001 From: uiuxxx Date: Mon, 1 Jul 2024 19:35:34 +0200 Subject: [PATCH 1/3] Update logo --- docs/.vuepress/config.ts | 4 ++-- .../public/images/logo-balancer-v3-docs-dark.svg | 9 +++++++++ .../public/images/logo-balancer-v3-docs.svg | 9 +++++++++ theme/src/client/components/NavbarBrand.vue | 12 ++---------- 4 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 docs/.vuepress/public/images/logo-balancer-v3-docs-dark.svg create mode 100644 docs/.vuepress/public/images/logo-balancer-v3-docs.svg diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 43502077..eaaf446a 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -37,8 +37,8 @@ export default defineUserConfig({ // configure default theme theme: balancerTheme({ - logo: '/images/logo-light.svg', - logoDark: '/images/logo-dark.svg', + logo: '/images/logo-balancer-v3-docs.svg', + logoDark: '/images/logo-balancer-v3-docs-dark.svg', repo: 'balancer/docs-v3', docsBranch: 'v3-outline', docsDir: 'docs', diff --git a/docs/.vuepress/public/images/logo-balancer-v3-docs-dark.svg b/docs/.vuepress/public/images/logo-balancer-v3-docs-dark.svg new file mode 100644 index 00000000..db91aed3 --- /dev/null +++ b/docs/.vuepress/public/images/logo-balancer-v3-docs-dark.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/docs/.vuepress/public/images/logo-balancer-v3-docs.svg b/docs/.vuepress/public/images/logo-balancer-v3-docs.svg new file mode 100644 index 00000000..b17264f7 --- /dev/null +++ b/docs/.vuepress/public/images/logo-balancer-v3-docs.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/theme/src/client/components/NavbarBrand.vue b/theme/src/client/components/NavbarBrand.vue index 7b63b028..3acc14d6 100644 --- a/theme/src/client/components/NavbarBrand.vue +++ b/theme/src/client/components/NavbarBrand.vue @@ -29,7 +29,8 @@ const NavbarBrandLogo: FunctionalComponent = () => { const img = h('img', { class: 'logo', src: withBase(navbarBrandLogo.value), - alt: navbarBrandTitle.value, + alt: 'Balancer v3 Docs logo', + title: 'Balancer v3 Docs', }); if (themeLocale.value.logoDark === undefined) { return img; @@ -43,14 +44,5 @@ const NavbarBrandLogo: FunctionalComponent = () => { From dea0da97764354ed04b8099095544ba1c2d11ad8 Mon Sep 17 00:00:00 2001 From: uiuxxx Date: Mon, 1 Jul 2024 19:37:12 +0200 Subject: [PATCH 2/3] UI updates to the home page --- theme/src/client/components/DocsCard.vue | 2 +- theme/src/client/components/SearchBar.vue | 3 +-- theme/src/client/styles/home.scss | 14 +++++++++++++- theme/src/client/styles/layout.scss | 6 +----- theme/src/client/styles/navbar.scss | 1 + theme/src/client/styles/search.scss | 7 +++++++ 6 files changed, 24 insertions(+), 9 deletions(-) diff --git a/theme/src/client/components/DocsCard.vue b/theme/src/client/components/DocsCard.vue index a2a42ad4..05162631 100644 --- a/theme/src/client/components/DocsCard.vue +++ b/theme/src/client/components/DocsCard.vue @@ -59,7 +59,7 @@ export default defineComponent({ } .group:hover .header { - color: var(--c-brand-hover-accent); + color: var(--c-brand); } .card-link img { diff --git a/theme/src/client/components/SearchBar.vue b/theme/src/client/components/SearchBar.vue index cd853bbf..533a7b3f 100644 --- a/theme/src/client/components/SearchBar.vue +++ b/theme/src/client/components/SearchBar.vue @@ -40,7 +40,6 @@ onMounted(() => { -