feat: add Discord link

This commit is contained in:
Viren070
2025-03-04 01:18:43 +00:00
parent 6d91970be5
commit 3e03275820
2 changed files with 24 additions and 4 deletions
+12 -1
View File
@@ -98,6 +98,13 @@ const config: Config = {
title: "Support me on Ko-fi",
"aria-label": "Ko-fi",
},
{
href: "https://discord.viren070.me",
position: "right",
className: "header-discord-link",
title: "Join the Discord server",
"aria-label": "Discord server",
},
],
},
footer: {
@@ -140,6 +147,10 @@ const config: Config = {
label: "Ko-fi",
href: "https://ko-fi.com/viren070",
},
{
label: "Discord",
href: "https://discord.viren070.me",
},
],
},
],
@@ -150,7 +161,7 @@ const config: Config = {
respectPrefersColorScheme: false,
},
prism: {
theme: prismThemes.github,
theme: prismThemes.dracula,
darkTheme: prismThemes.dracula,
},
docs: {
+12 -3
View File
@@ -65,11 +65,10 @@
}
}
.header-discord-link::before,
.header-github-link::before,
.header-kofi-link::before {
content: "";
width: 24px;
height: 24px;
display: flex;
background-color: var(--ifm-navbar-link-color);
transition:
@@ -78,15 +77,24 @@
}
.header-github-link::before {
width: 26px;
height: 26px;
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E");
}
.header-kofi-link::before {
width: 32px;
height: 32px;
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32px' height='32px' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M23.881 8.948c-.773-4.085-4.859-4.593-4.859-4.593H.723c-.604 0-.679.798-.679.798s-.082 7.324-.022 11.822c.164 2.424 2.586 2.672 2.586 2.672s8.267-.023 11.966-.049c2.438-.426 2.683-2.566 2.658-3.734c4.352.24 7.422-2.831 6.649-6.916m-11.062 3.511c-1.246 1.453-4.011 3.976-4.011 3.976s-.121.119-.31.023c-.076-.057-.108-.09-.108-.09c-.443-.441-3.368-3.049-4.034-3.954c-.709-.965-1.041-2.7-.091-3.71c.951-1.01 3.005-1.086 4.363.407c0 0 1.565-1.782 3.468-.963s1.832 3.011.723 4.311m6.173.478c-.928.116-1.682.028-1.682.028V7.284h1.77s1.971.551 1.971 2.638c0 1.913-.985 2.667-2.059 3.015'/%3E%3C/svg%3E");
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M23.881 8.948c-.773-4.085-4.859-4.593-4.859-4.593H.723c-.604 0-.679.798-.679.798s-.082 7.324-.022 11.822c.164 2.424 2.586 2.672 2.586 2.672s8.267-.023 11.966-.049c2.438-.426 2.683-2.566 2.658-3.734c4.352.24 7.422-2.831 6.649-6.916m-11.062 3.511c-1.246 1.453-4.011 3.976-4.011 3.976s-.121.119-.31.023c-.076-.057-.108-.09-.108-.09c-.443-.441-3.368-3.049-4.034-3.954c-.709-.965-1.041-2.7-.091-3.71c.951-1.01 3.005-1.086 4.363.407c0 0 1.565-1.782 3.468-.963s1.832 3.011.723 4.311m6.173.478c-.928.116-1.682.028-1.682.028V7.284h1.77s1.971.551 1.971 2.638c0 1.913-.985 2.667-2.059 3.015'/%3E%3C/svg%3E");
}
.header-discord-link::before {
width: 25.6px;
height: 19.2px;
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 126.644 96'%3E%3Cpath d='M81.15 0c-1.2376 2.1973-2.3489 4.4704-3.3591 6.794-9.5975-1.4396-19.3718-1.4396-28.9945 0-.985-2.3236-2.1216-4.5967-3.3591-6.794-9.0166 1.5407-17.8059 4.2431-26.1405 8.0568C2.779 32.5304-1.6914 56.3725.5312 79.8863c9.6732 7.1476 20.5083 12.603 32.0505 16.0884 2.6014-3.4854 4.8998-7.1981 6.8698-11.0623-3.738-1.3891-7.3497-3.1318-10.8098-5.1523.9092-.6567 1.7932-1.3386 2.6519-1.9953 20.281 9.547 43.7696 9.547 64.0758 0 .8587.7072 1.7427 1.3891 2.6519 1.9953-3.4601 2.0457-7.0718 3.7632-10.835 5.1776 1.97 3.8642 4.2683 7.5769 6.8698 11.0623 11.5419-3.4854 22.3769-8.9156 32.0509-16.0631 2.626-27.2771-4.496-50.9172-18.817-71.8548C98.9811 4.2684 90.1918 1.5659 81.1752.0505l-.0252-.0505ZM42.2802 65.4144c-6.2383 0-11.4159-5.6575-11.4159-12.6535s4.9755-12.6788 11.3907-12.6788 11.5169 5.708 11.4159 12.6788c-.101 6.9708-5.026 12.6535-11.3907 12.6535ZM84.3576 65.4144c-6.2637 0-11.3907-5.6575-11.3907-12.6535s4.9755-12.6788 11.3907-12.6788 11.4917 5.708 11.3906 12.6788c-.101 6.9708-5.026 12.6535-11.3906 12.6535'/%3E%3C/svg%3E");
}
.header-discord-link:hover::before,
.header-github-link:hover::before,
.header-kofi-link:hover::before {
background-color: var(--ifm-navbar-link-hover-color);
@@ -94,6 +102,7 @@
animation-iteration-count: 1;
}
.header-discord-link:active,
.header-github-link:active,
.header-kofi-link:active {
transition: transform 0.2s;