Skip to content

Commit 7a494d3

Browse files
committed
Update navbar
1 parent 4e21445 commit 7a494d3

File tree

6 files changed

+44
-66
lines changed

6 files changed

+44
-66
lines changed

docusaurus.config.ts

Lines changed: 44 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -159,16 +159,44 @@ const config: Config = {
159159
},
160160
items: [
161161
{
162-
type: "docsVersionDropdown",
162+
label: "imgproxy.net",
163+
href: "https://imgproxy.net",
163164
position: "left",
164165
},
165166
{
166-
type: "search",
167+
type: "dropdown",
168+
label: "Community",
167169
position: "left",
170+
items: [
171+
{
172+
href: "https://discord.gg/5GgpXgtC9u",
173+
label: "Discord",
174+
},
175+
{
176+
href: "https://x.com/imgproxy_net",
177+
label: "X (Twitter)",
178+
},
179+
{
180+
href: "https://bsky.app/profile/imgproxy.net",
181+
label: "Bluesky",
182+
},
183+
{
184+
href: "https://mastodon.social/@imgproxy",
185+
label: "Mastodon",
186+
},
187+
{
188+
href: "https://www.threads.com/@imgproxy",
189+
label: "Threads",
190+
},
191+
{
192+
href: "https://www.linkedin.com/company/imgproxy/",
193+
label: "LinkedIn",
194+
},
195+
],
168196
},
197+
169198
{
170-
label: "imgproxy.net",
171-
href: "https://imgproxy.net",
199+
type: "docsVersionDropdown",
172200
position: "right",
173201
},
174202
{
@@ -178,27 +206,6 @@ const config: Config = {
178206
title: "GitHub",
179207
"aria-label": "GitHub",
180208
},
181-
{
182-
href: "https://bsky.app/profile/imgproxy.net",
183-
position: "right",
184-
className: "navbar__link--icon navbar__link--bluesky",
185-
title: "Bluesky",
186-
"aria-label": "Bluesky",
187-
},
188-
{
189-
href: "https://x.com/imgproxy_net",
190-
position: "right",
191-
className: "navbar__link--icon navbar__link--x",
192-
title: "X (Twitter)",
193-
"aria-label": "X (Twitter)",
194-
},
195-
{
196-
href: "https://discord.gg/5GgpXgtC9u",
197-
position: "right",
198-
className: "navbar__link--icon navbar__link--discord",
199-
title: "Discord",
200-
"aria-label": "Discord",
201-
},
202209
{
203210
href: "https://github.com/sponsors/imgproxy",
204211
position: "right",
@@ -238,10 +245,6 @@ const config: Config = {
238245
{
239246
title: "Community",
240247
items: [
241-
{
242-
label: "Bluesky",
243-
href: "https://bsky.app/profile/imgproxy.net",
244-
},
245248
{
246249
label: "X (Twitter)",
247250
href: "https://x.com/imgproxy_net",
@@ -250,6 +253,18 @@ const config: Config = {
250253
label: "Discord",
251254
href: "https://discord.gg/5GgpXgtC9u",
252255
},
256+
{
257+
label: "Bluesky",
258+
href: "https://bsky.app/profile/imgproxy.net",
259+
},
260+
{
261+
label: "Mastodon",
262+
href: "https://mastodon.social/@imgproxy",
263+
},
264+
{
265+
label: "Threads",
266+
href: "https://www.threads.com/@imgproxy",
267+
},
253268
{
254269
label: "LinkedIn",
255270
href: "https://www.linkedin.com/company/imgproxy/",

src/css/docsearch.css

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@
2323
}
2424

2525

26-
.DocSearch-Button {
27-
min-width: 25vw;
28-
}
29-
30-
@media (max-width: 996px) {
31-
.DocSearch-Button {
32-
min-width: unset;
33-
}
34-
}
35-
3626
[data-theme='light'] .DocSearch-Button-Key,
3727
[data-theme='light'] .DocSearch-Commands-Key,
3828
[data-theme='dark'] .DocSearch-Button-Key,

src/css/navbar.css

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,6 @@
3737
mask-image: url('/img/github.svg');
3838
}
3939

40-
.navbar__link--bluesky::before {
41-
mask-image: url('/img/bluesky.svg');
42-
}
43-
44-
.navbar__link--x::before {
45-
mask-image: url('/img/x-com.svg');
46-
}
47-
48-
.navbar__link--discord::before {
49-
mask-image: url('/img/discord.svg');
50-
}
51-
5240
.navbar__link--sponsor::before {
5341
mask-image: url('/img/heart.svg');
5442
}
@@ -62,18 +50,6 @@
6250
content: 'GitHub';
6351
}
6452

65-
.navbar-sidebar .navbar__link--bluesky::after {
66-
content: 'Bluesky';
67-
}
68-
69-
.navbar-sidebar .navbar__link--x::after {
70-
content: 'X (Twitter)';
71-
}
72-
73-
.navbar-sidebar .navbar__link--discord::after {
74-
content: 'Discord';
75-
}
76-
7753
.navbar-sidebar .navbar__link--sponsor::after {
7854
content: 'Sponsor imgproxy';
7955
}

static/img/bluesky.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

static/img/discord.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

static/img/x-com.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)