Skip to content

Commit 067b7e5

Browse files
authored
Rework Project Dropdown (#19)
* Move Learn More section, outdated/duplicate links Signed-off-by: Derek Nola <derek.nola@suse.com> * Update dependencies Signed-off-by: Derek Nola <derek.nola@suse.com> * Change projects dropdown, Remove SUSE Signed-off-by: Derek Nola <derek.nola@suse.com> --------- Signed-off-by: Derek Nola <derek.nola@suse.com>
1 parent 1e87774 commit 067b7e5

File tree

6 files changed

+3310
-2077
lines changed

6 files changed

+3310
-2077
lines changed

docusaurus.config.js

+4-18
Original file line numberDiff line numberDiff line change
@@ -54,33 +54,19 @@ module.exports = {
5454
},
5555
{
5656
type: 'dropdown',
57-
label: 'More From SUSE',
57+
label: 'More From CNCF',
5858
position: 'right',
5959
className: 'navbar__dropdown',
6060
items: [
61-
{
62-
label: 'Rancher',
63-
to: 'https://www.rancher.com',
64-
className: 'navbar__icon navbar__rancher',
65-
},
66-
{
67-
label: 'Rancher Desktop',
68-
to: "https://rancherdesktop.io",
69-
className: 'navbar__icon navbar__rd',
70-
},
7161
{
7262
label: 'Longhorn',
7363
to: "https://longhorn.io",
7464
className: 'navbar__icon navbar__longhorn',
7565
},
7666
{
77-
type: 'html',
78-
value: '<hr style="margin: 0.3rem 0;">',
79-
},
80-
{
81-
label: 'More Projects...',
82-
to: "https://opensource.suse.com",
83-
className: 'navbar__icon navbar__suse',
67+
label: 'Kubewarden',
68+
to: "https://kubewarden.io",
69+
className: 'navbar__icon navbar__kubewarden',
8470
},
8571
],
8672
},

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
"typecheck": "tsc"
1616
},
1717
"dependencies": {
18-
"@docusaurus/core": "^3.1.0",
19-
"@docusaurus/plugin-client-redirects": "^3.1.0",
20-
"@docusaurus/preset-classic": "^3.1.0",
21-
"@docusaurus/theme-common": "^3.1.0",
22-
"@docusaurus/theme-mermaid": "^3.1.0",
23-
"@mdx-js/react": "^3.0.0",
24-
"clsx": "^1.2.1",
25-
"prism-react-renderer": "^2.3.1",
26-
"react": "^18.2.0",
27-
"react-dom": "^18.2.0"
18+
"@docusaurus/core": "^3.7.0",
19+
"@docusaurus/plugin-client-redirects": "^3.7.0",
20+
"@docusaurus/preset-classic": "^3.7.0",
21+
"@docusaurus/theme-common": "^3.7.0",
22+
"@docusaurus/theme-mermaid": "^3.7.0",
23+
"@mdx-js/react": "^3.1.0",
24+
"clsx": "^2.1.1",
25+
"prism-react-renderer": "^2.4.1",
26+
"react": "^19.1.0",
27+
"react-dom": "^19.1.0"
2828
},
2929
"devDependencies": {
30-
"@docusaurus/module-type-aliases": "^3.1.0",
31-
"@tsconfig/docusaurus": "^1.0.5",
32-
"typescript": "^4.7.4"
30+
"@docusaurus/module-type-aliases": "^3.7.0",
31+
"@tsconfig/docusaurus": "^2.0.3",
32+
"typescript": "^5.8.3"
3333
},
3434
"browserslist": {
3535
"production": [

src/css/icon_dropdown.css

+9
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,15 @@
8383
padding-bottom: 9px;
8484
}
8585

86+
.navbar__kubewarden:hover:before {
87+
background-color: #bc2a46;
88+
}
89+
.navbar__kubewarden:before {
90+
mask: url(/static/img/icon-kubewarden-mask.png) no-repeat 100% 100%;
91+
mask-size: cover;
92+
height: 22px;
93+
}
94+
8695
.navbar__suse:hover:before {
8796
background-color: #30ba78;
8897
}

src/pages/index.js

-13
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,6 @@ sudo k3s agent --server https://myserver:6443 --token \${NODE_TOKEN}`
101101
}</CodeBlock>
102102
</div>
103103
<div className={`${index.learnMore} ${index.bgPrimary}`}>
104-
<div className={index.wrap}>
105-
<h2>Learn More</h2>
106-
<div className={index.gridTwo}>
107-
<div>
108-
<p>Read the latest K3s blog.</p>
109-
<a href="https://docs.k3s.io/blog" class="button button--lg button--static">Blog</a>
110-
</div>
111-
<div>
112-
<p>Sign up for the latest "K3s Basics" Online Training.</p>
113-
<a href="https://www.rancher.academy/courses/k3s-basics" class="button button--lg button--static">Watch Training</a>
114-
</div>
115-
</div>
116-
</div>
117104
</div>
118105
</section>
119106
<section className={`${index.bgLight} ${index.cncf} ${index.textCenter}`}>

static/img/icon-kubewarden-mask.png

9.12 KB
Loading

0 commit comments

Comments
 (0)