chore: update discord links (#264)

This commit is contained in:
Ayo Ayco 2023-02-16 14:32:55 +01:00 committed by GitHub
parent 09d154575c
commit b1a6b11486
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 88 additions and 94 deletions

View file

@ -16,7 +16,7 @@ The [issues page](https://github.com/astro-reactive/astro-reactive/issues?q=is%3
If you don't find anything there, we are happy to help you get your contribution in. If you don't find anything there, we are happy to help you get your contribution in.
You can always [create a new issue](https://github.com/astro-reactive/astro-reactive/issues/new/choose) for your own idea, [post on our discussions](https://github.com/astro-reactive/astro-reactive/discussions) or join our [Discord](https://discord.gg/fkpkKdPJ). You can always [create a new issue](https://github.com/astro-reactive/astro-reactive/issues/new/choose) for your own idea, [post on our discussions](https://github.com/astro-reactive/astro-reactive/discussions) or join our [Discord](https://discord.gg/kkvW7GYNAp).
# The Astro Reactive Library # The Astro Reactive Library
@ -124,7 +124,7 @@ Thank you again for your interest in contributing!
📝 Check the [discussion board](https://github.com/astro-reactive/astro-reactive/discussions) for announcements or post your messages and questions 📝 Check the [discussion board](https://github.com/astro-reactive/astro-reactive/discussions) for announcements or post your messages and questions
💬 Hang-out with the team on our [Discord](https://discord.gg/fkpkKdPJ) to share feedback, get support, or just have some laughs over memes 😅 💬 Hang-out with the team on our [Discord](https://discord.gg/kkvW7GYNAp) to share feedback, get support, or just have some laughs over memes 😅
🛠️ Create a [new issue](https://github.com/astro-reactive/astro-reactive/issues/new/choose) for bugs found or improvement ideas 🛠️ Create a [new issue](https://github.com/astro-reactive/astro-reactive/issues/new/choose) for bugs found or improvement ideas

View file

@ -30,7 +30,7 @@ export const KNOWN_LANGUAGE_CODES = Object.values(KNOWN_LANGUAGES);
export const GITHUB_EDIT_URL = `https://github.com/astro-reactive/astro-reactive/tree/main/apps/docs`; export const GITHUB_EDIT_URL = `https://github.com/astro-reactive/astro-reactive/tree/main/apps/docs`;
export const COMMUNITY_INVITE_URL = `https://discord.gg/fkpkKdPJ`; export const COMMUNITY_INVITE_URL = `https://discord.gg/kkvW7GYNAp`;
// See "Algolia" section of the README for more information. // See "Algolia" section of the README for more information.
export const ALGOLIA = { export const ALGOLIA = {

View file

@ -1,17 +1,17 @@
--- ---
import { Icon } from "astro-icon"; import { Icon } from 'astro-icon';
// import ThemeSwitcher from "~/components/theme-switcher.astro"; // import ThemeSwitcher from "~/components/theme-switcher.astro";
const socials = [ const socials = [
{ {
name: "GitHub", name: 'GitHub',
url: "https://github.com/astro-reactive/astro-reactive", url: 'https://github.com/astro-reactive/astro-reactive',
icon: "fa-brands:github-alt", icon: 'fa-brands:github-alt',
}, },
{ {
name: "Discord", name: 'Discord',
url: "https://discord.gg/fkpkKdPJ", url: 'https://discord.gg/kkvW7GYNAp',
icon: "fa-brands:discord", icon: 'fa-brands:discord',
}, },
]; ];
--- ---
@ -53,12 +53,7 @@ const socials = [
<div class="fixed inset-0 px-8 py-4 bg-default text-default"> <div class="fixed inset-0 px-8 py-4 bg-default text-default">
<div class="space-y-4" role="dialog" aria-modal="true"> <div class="space-y-4" role="dialog" aria-modal="true">
<header class="text-right"> <header class="text-right">
<button <button id="close-nav-button" type="button" class="btn" aria-label="Close navigation">
id="close-nav-button"
type="button"
class="btn"
aria-label="Close navigation"
>
<Icon pack="mdi" name="close" class="h-8" /> <Icon pack="mdi" name="close" class="h-8" />
</button> </button>
</header> </header>
@ -72,15 +67,15 @@ const socials = [
</header> </header>
<script> <script>
import MicroModal from "micromodal"; import MicroModal from 'micromodal';
const menuModalId = "menu-modal"; const menuModalId = 'menu-modal';
const header: HTMLElement = document.querySelector("#page-header"); const header: HTMLElement = document.querySelector('#page-header');
const page = document.documentElement; const page = document.documentElement;
const menu = document.querySelector(`#${menuModalId} ul`); const menu = document.querySelector(`#${menuModalId} ul`);
const openNavButton = document.querySelector("#open-nav-button"); const openNavButton = document.querySelector('#open-nav-button');
const closeNavButton = document.querySelector("#close-nav-button"); const closeNavButton = document.querySelector('#close-nav-button');
const openMenu = () => { const openMenu = () => {
MicroModal.show(menuModalId, { disableScroll: true }); MicroModal.show(menuModalId, { disableScroll: true });
@ -90,16 +85,16 @@ const socials = [
MicroModal.close(menuModalId); MicroModal.close(menuModalId);
}; };
openNavButton?.addEventListener("click", openMenu); openNavButton?.addEventListener('click', openMenu);
closeNavButton?.addEventListener("click", closeMenu); closeNavButton?.addEventListener('click', closeMenu);
document?.addEventListener("scroll", () => { document?.addEventListener('scroll', () => {
const d = page.clientHeight - page.scrollTop - header.offsetHeight; const d = page.clientHeight - page.scrollTop - header.offsetHeight;
header.classList.toggle("fixed-header", d < 0); header.classList.toggle('fixed-header', d < 0);
}); });
menu?.addEventListener("click", (event) => { menu?.addEventListener('click', (event) => {
if ((event.target as HTMLElement).tagName === "A") { if ((event.target as HTMLElement).tagName === 'A') {
closeMenu(); closeMenu();
} }
}); });
@ -122,4 +117,3 @@ const socials = [
@apply block; @apply block;
} }
</style> </style>