diff options
author | Pauline <git@ethanlibs.co> | 2023-12-26 21:40:26 +0100 |
---|---|---|
committer | Pauline <git@ethanlibs.co> | 2023-12-26 21:40:26 +0100 |
commit | 1ec972a8aad20605d28616b4f88781d6b7985021 (patch) | |
tree | f951049113c9003c67fec348e1fe586126df6d74 /apps/website/src/components | |
parent | 02534ba7bbf9f4fd7022ab63c619da819fb99d26 (diff) | |
download | Nexus-1ec972a8aad20605d28616b4f88781d6b7985021.tar.gz Nexus-1ec972a8aad20605d28616b4f88781d6b7985021.tar.bz2 Nexus-1ec972a8aad20605d28616b4f88781d6b7985021.zip |
chore(lint): lint all files
Diffstat (limited to 'apps/website/src/components')
-rw-r--r-- | apps/website/src/components/base/Footer.astro | 14 | ||||
-rw-r--r-- | apps/website/src/components/base/Link.astro | 6 | ||||
-rw-r--r-- | apps/website/src/components/base/Section.astro | 3 | ||||
-rw-r--r-- | apps/website/src/components/icons/Icon.astro | 7 |
4 files changed, 15 insertions, 15 deletions
diff --git a/apps/website/src/components/base/Footer.astro b/apps/website/src/components/base/Footer.astro index 39ae8d6..626ff0b 100644 --- a/apps/website/src/components/base/Footer.astro +++ b/apps/website/src/components/base/Footer.astro @@ -1,8 +1,8 @@ --- -import Icon from "@components/icons/Icon.astro"; -import Logo from "@components/logos/Logo.astro"; -import configConst from "@config"; -import Link from "./Link.astro"; +import Icon from '@components/icons/Icon.astro'; +import Logo from '@components/logos/Logo.astro'; +import configConst from '@config'; +import Link from './Link.astro'; --- <footer class="flex justify-center items-center bg-blue-100 mt-4 pt-20 pb-8 px-20"> @@ -10,7 +10,7 @@ import Link from "./Link.astro"; <div class="flex flex-col gap-y-20 justify-center items-start md:flex-row md:items-start md:justify-between"> <div class="flex-1 flex flex-col gap-y-3 text-blue-gray"> <Logo logo="polyfrost.full" /> - <p>English, USA</p> {/* hardcoded for now */} + <p>English, USA</p> {/* hardcoded for now, todo i18n */} <div class="flex flex-row gap-3"> <a href="" class="hover:text-[#5865F2]"><Icon icon="discord" /></a> <a href="" class="hover:text-[#ff0000]"><Icon icon="youtube" /></a> @@ -19,11 +19,11 @@ import Link from "./Link.astro"; </div> <div class="flex-1 flex flex-col md:flex-row justify-end gap-8"> - {configConst.footer.map((column) => ( + {configConst.footer.map(column => ( <div class="flex flex-col gap-y-3"> <h3 class="text-gray-700 text-md">{column.header}</h3> <ul class="flex flex-col gap-y-1"> - {column.links.map((link) => ( + {column.links.map(link => ( <li> <Link href={link.url} class="text-blue-gray text-sm text-nowrap">{link.text}</Link> </li> diff --git a/apps/website/src/components/base/Link.astro b/apps/website/src/components/base/Link.astro index 5fa6d75..a357c9c 100644 --- a/apps/website/src/components/base/Link.astro +++ b/apps/website/src/components/base/Link.astro @@ -1,13 +1,13 @@ --- -import type { HTMLAttributes } from "astro/types"; +import type { HTMLAttributes } from 'astro/types'; -interface Props extends HTMLAttributes<"a"> { +interface Props extends HTMLAttributes<'a'> { } const props = Astro.props; const className = [ - "hover:text-blue-500 hover:underline transition-colors", + 'hover:text-blue-500 hover:underline transition-colors', props.class, ].join(' '); --- diff --git a/apps/website/src/components/base/Section.astro b/apps/website/src/components/base/Section.astro index 0ff8e3a..ce87ecb 100644 --- a/apps/website/src/components/base/Section.astro +++ b/apps/website/src/components/base/Section.astro @@ -34,7 +34,8 @@ const className = `max-w-[${maxWidth}] ${wFull ? 'w-full' : `w-[${maxWidth}]`} p <div class="flex flex-col items-start text-left relative"> <slot name="right"></slot> </div> - ) : ( + ) + : ( <slot></slot> )} </div> diff --git a/apps/website/src/components/icons/Icon.astro b/apps/website/src/components/icons/Icon.astro index 858b605..b186a76 100644 --- a/apps/website/src/components/icons/Icon.astro +++ b/apps/website/src/components/icons/Icon.astro @@ -1,7 +1,6 @@ --- import type { HTMLAttributes } from 'astro/types'; import { parse } from 'node-html-parser'; -import Test from "./impl/book-open.svg"; type _ModIcons = | 'chatting' @@ -29,11 +28,11 @@ type _Icons = | 'link-external' | External | ModIcons; -export type Icons = _Icons; // bypass for Astro compiler issue https://github.com/withastro/compiler/issues/554#issuecomment-1741702411 +export type Icons = _Icons; // bypass for Astro compiler issue https://github.com/withastro/compiler/issues/554#issuecomment-1741702411 interface Props extends HTMLAttributes<'svg'> { - icon: Icons, - path?: string, + icon: Icons + path?: string size?: number | [number, number] } |