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.
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
@ -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
💬 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

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 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.
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";
const socials = [
{
name: "GitHub",
url: "https://github.com/astro-reactive/astro-reactive",
icon: "fa-brands:github-alt",
name: 'GitHub',
url: 'https://github.com/astro-reactive/astro-reactive',
icon: 'fa-brands:github-alt',
},
{
name: "Discord",
url: "https://discord.gg/fkpkKdPJ",
icon: "fa-brands:discord",
name: 'Discord',
url: 'https://discord.gg/kkvW7GYNAp',
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="space-y-4" role="dialog" aria-modal="true">
<header class="text-right">
<button
id="close-nav-button"
type="button"
class="btn"
aria-label="Close navigation"
>
<button id="close-nav-button" type="button" class="btn" aria-label="Close navigation">
<Icon pack="mdi" name="close" class="h-8" />
</button>
</header>
@ -72,15 +67,15 @@ const socials = [
</header>
<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 menu = document.querySelector(`#${menuModalId} ul`);
const openNavButton = document.querySelector("#open-nav-button");
const closeNavButton = document.querySelector("#close-nav-button");
const openNavButton = document.querySelector('#open-nav-button');
const closeNavButton = document.querySelector('#close-nav-button');
const openMenu = () => {
MicroModal.show(menuModalId, { disableScroll: true });
@ -90,16 +85,16 @@ const socials = [
MicroModal.close(menuModalId);
};
openNavButton?.addEventListener("click", openMenu);
closeNavButton?.addEventListener("click", closeMenu);
openNavButton?.addEventListener('click', openMenu);
closeNavButton?.addEventListener('click', closeMenu);
document?.addEventListener("scroll", () => {
document?.addEventListener('scroll', () => {
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) => {
if ((event.target as HTMLElement).tagName === "A") {
menu?.addEventListener('click', (event) => {
if ((event.target as HTMLElement).tagName === 'A') {
closeMenu();
}
});
@ -122,4 +117,3 @@ const socials = [
@apply block;
}
</style>