diff --git a/docusaurus.config.js b/docusaurus.config.js index 98ac2a22..dcc4082e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -46,30 +46,55 @@ const config = { src: "img/logo_horizontal.svg", }, items: [ + { + href: "https://docs.harvesterhci.io/", + position: "right", + label: "Docs", + className: "navbar__docs", + }, + { + href: "https://github.com/harvester/harvester", + label: "GitHub", + position: "right", + className: "navbar__github btn btn-secondary icon-github", + }, { - href: "https://docs.harvesterhci.io/", - position: "right", - label: "Docs", - className: "navbar__docs", - }, - { - href: "https://www.suse.com/c/?s=harvester", - position: "right", - label: "Blog", - className: "navbar__blog", - }, - { - to: "kb", - position: "right", - label: "Knowledge Base", - className: "navbar__kb", - }, - { - href: "https://github.com/harvester/harvester", - label: "GitHub", - position: "right", - className: "navbar__github btn btn-secondary icon-github", - }, + type: 'dropdown', + label: 'More from SUSE', + position: 'right', + items: [ + { + href: 'https://www.rancher.com', + label: 'Rancher', + className: 'navbar__icon navbar__rancher', + }, + { + href: 'https://elemental.docs.rancher.com/', + label: 'Elemental', + className: 'navbar__icon navbar__elemental', + }, + { + href: 'https://epinio.io/', + label: 'Epinio', + className: 'navbar__icon navbar__epinio', + }, + { + href: 'https://fleet.rancher.io/', + label: 'Fleet', + className: 'navbar__icon navbar__fleet', + }, + { + href: 'https://opni.io/', + label: 'Opni', + className: 'navbar__icon navbar__opni', + }, + { + href: 'https://opensource.suse.com/', + label: 'More Projects...', + className: 'navbar__icon navbar__suse', + }, + ], + }, ], }, colorMode: { diff --git a/src/css/custom.css b/src/css/custom.css index 27517579..ed2b383a 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -5,6 +5,8 @@ * work well for content-centric websites. */ +@import "icon_dropdown.css"; + /* You can override the default Infima variables here. */ :root { --ifm-color-primary: #25c2a0; diff --git a/src/css/icon_dropdown.css b/src/css/icon_dropdown.css new file mode 100644 index 00000000..e31b10a1 --- /dev/null +++ b/src/css/icon_dropdown.css @@ -0,0 +1,73 @@ +navbar__icon { + font-family: poppins,sans-serif; + font-size: 16px; + } + + .navbar__icon:before { + content: ""; + display: inline-flex; + height: 20px; + width: 20px; + margin-right: 4px; + background-color: var(--ifm-navbar-link-color); + } + + .navbar__rancher:before { + mask: url(/static/img/icon-rancher-mask.png) no-repeat 100% 100%; + mask-size: cover; + width: 35px; + height: 13px; + padding-top: 21px; + padding-bottom: 10px; + background-color: #2e68e9; + } + + .navbar__elemental:before { + mask: url(/static/img/icon-elemental-mask.png) no-repeat 100% 100%; + mask-size: cover; + width: 35px; + height: 13px; + padding-top: 21px; + padding-bottom: 7px; + background-color: #7100D4; + } + + .navbar__epinio:before { + mask: url(/static/img/icon-epinio-mask.png) no-repeat 100% 100%; + mask-size: cover; + width: 35px; + height: 13px; + padding-top: 21px; + padding-bottom: 7px; + background-color: #004d93; + } + + .navbar__fleet:before { + mask: url(/static/img/icon-fleet-mask.png) no-repeat 100% 100%; + mask-size: cover; + width: 35px; + height: 13px; + padding-top: 21px; + padding-bottom: 7px; + background-color: #00b056; + } + + .navbar__opni:before { + mask: url(/static/img/icon-opni-mask.png) no-repeat 100% 100%; + mask-size: cover; + width: 35px; + height: 13px; + padding-top: 21px; + padding-bottom: 7px; + background-color: #a453b9; + } + + .navbar__suse:before { + mask: url(/static/img/icon-suse-mask.png) no-repeat 100% 100%; + mask-size: cover; + width: 35px; + height: 13px; + padding-top: 14px; + padding-bottom: 7px; + background-color: #30ba78; + } \ No newline at end of file diff --git a/static/img/icon-elemental-mask.png b/static/img/icon-elemental-mask.png new file mode 100644 index 00000000..f6ac14ee Binary files /dev/null and b/static/img/icon-elemental-mask.png differ diff --git a/static/img/icon-epinio-mask.png b/static/img/icon-epinio-mask.png new file mode 100644 index 00000000..40c5168d Binary files /dev/null and b/static/img/icon-epinio-mask.png differ diff --git a/static/img/icon-fleet-mask.png b/static/img/icon-fleet-mask.png new file mode 100644 index 00000000..2af0313c Binary files /dev/null and b/static/img/icon-fleet-mask.png differ diff --git a/static/img/icon-opni-mask.png b/static/img/icon-opni-mask.png new file mode 100644 index 00000000..adc63458 Binary files /dev/null and b/static/img/icon-opni-mask.png differ diff --git a/static/img/icon-rancher-mask.png b/static/img/icon-rancher-mask.png new file mode 100644 index 00000000..a5f79e12 Binary files /dev/null and b/static/img/icon-rancher-mask.png differ diff --git a/static/img/icon-suse-mask.png b/static/img/icon-suse-mask.png new file mode 100644 index 00000000..3d06203a Binary files /dev/null and b/static/img/icon-suse-mask.png differ