Skip to content

Commit

Permalink
Update: banner
Browse files Browse the repository at this point in the history
  • Loading branch information
altfoxie committed Jun 3, 2024
1 parent 0950acb commit baa1412
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default defineConfig({
items: [
{ text: "Зачем", link: "/reasons" },
{ text: "Использование", link: "/use" },
{ text: "Другие прокси", link: "/others" },
{ text: "Другие зеркала", link: "/others" },
{ text: "Распространенные проблемы", link: "/issues" },
{ text: "Поддержать", link: "/support" },
{ text: "Авторы", link: "/authors" },
Expand Down Expand Up @@ -100,7 +100,7 @@ export default defineConfig({
items: [
{ text: "Reasons", link: "/reasons" },
{ text: "How to Use", link: "/use" },
{ text: "Other Proxies", link: "/others" },
{ text: "Other Mirrors", link: "/others" },
{ text: "Common Issues", link: "/issues" },
{ text: "Support", link: "/support" },
{ text: "Authors", link: "/authors" },
Expand Down
12 changes: 6 additions & 6 deletions .vitepress/theme/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { useData } from "vitepress";
const data = useData();
const textByLang = {
ru: `Попробуйте <b>безопасный SOCKS5 прокси</b> ->`,
en: `Try a <b>secure SOCKS5 proxy</b> ->`,
ru: `<b>Поддержка проекта прекращается</b> ->`,
en: `<b>Project is sunsetting</b> ->`,
};
</script>

<template>
<a
:href="`/${data.lang.value !== 'ru' ? `${data.lang.value}/` : ''}use#socks5`"
:href="`/${data.lang.value !== 'ru' ? `${data.lang.value}/` : ''}use#unbanned`"
class="banner"
>
<span class="lines"></span>
Expand Down Expand Up @@ -54,7 +54,7 @@ const textByLang = {
}
.banner:hover .lines {
background: var(--vp-c-brand-1);
background: var(--vp-c-danger-3);
}
.lines::before {
Expand All @@ -66,8 +66,8 @@ const textByLang = {
bottom: 0;
background: linear-gradient(
to right,
var(--vp-c-brand-1) 0%,
var(--vp-c-brand-1) 49%,
var(--vp-c-danger-3) 0%,
var(--vp-c-danger-3) 49%,
transparent 50%,
transparent 50%
);
Expand Down
7 changes: 2 additions & 5 deletions src/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ hero:
alt: Huecker
actions:
- theme: brand
text: How to Use
link: /en/use
- theme: alt
text: Reasons
link: /en/reasons
text: Docker Hub unbanned
link: /en/use#unbanned
- theme: alt
text: Support
link: /en/support
Expand Down
7 changes: 2 additions & 5 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ hero:
alt: Хуёкер
actions:
- theme: brand
text: Как использовать
link: /use
- theme: alt
text: Зачем это нужно
link: /reasons
text: Docker Hub разблокирован
link: /use#unbanned
- theme: alt
text: Поддержать
link: /support
Expand Down

0 comments on commit baa1412

Please sign in to comment.