diff options
-rw-r--r-- | apps/website/config.ts | 54 | ||||
-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 | ||||
-rw-r--r-- | apps/website/src/pages/projects/oneconfig.astro | 5 | ||||
-rw-r--r-- | apps/website/tailwind.config.ts | 6 |
7 files changed, 48 insertions, 47 deletions
diff --git a/apps/website/config.ts b/apps/website/config.ts index 8e4a47e..20da56f 100644 --- a/apps/website/config.ts +++ b/apps/website/config.ts @@ -26,57 +26,57 @@ export const configConst = { }, footer: [ { - header: "Products", + header: 'Products', links: [ { - text: "OneConfig", - url: "/projects/oneconfig", + text: 'OneConfig', + url: '/projects/oneconfig', }, { - text: "OneLauncher", - url: "/projects/onelauncher", + text: 'OneLauncher', + url: '/projects/onelauncher', }, - ] + ], }, { - header: "Organization", + header: 'Organization', links: [ { - text: "About us", - url: "/about", + text: 'About us', + url: '/about', }, { - text: "Branding", - url: "/branding", + text: 'Branding', + url: '/branding', }, { - text: "Contact us", - url: "/contact", + text: 'Contact us', + url: '/contact', }, { - text: "Documentation", - url: "/documentation", - } - ] + text: 'Documentation', + url: '/documentation', + }, + ], }, { - header: "Legal", + header: 'Legal', links: [ { - text: "Terms of service", - url: "/terms", + text: 'Terms of service', + url: '/terms', }, { - text: "Privacy policy", - url: "/privacy", + text: 'Privacy policy', + url: '/privacy', }, { - text: "Licenses", - url: "/licenses", + text: 'Licenses', + url: '/licenses', }, - ] - } - ] + ], + }, + ], } satisfies Config; function getProjects(): Project[] { 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] } diff --git a/apps/website/src/pages/projects/oneconfig.astro b/apps/website/src/pages/projects/oneconfig.astro index 1ff50d4..885d2c6 100644 --- a/apps/website/src/pages/projects/oneconfig.astro +++ b/apps/website/src/pages/projects/oneconfig.astro @@ -78,8 +78,9 @@ import { Code } from 'astro:components'; // Do stuff here }); } -}`} - lang="java"/> +}` +} + lang="java"/> </div> </div> diff --git a/apps/website/tailwind.config.ts b/apps/website/tailwind.config.ts index e0c91a0..9f8c412 100644 --- a/apps/website/tailwind.config.ts +++ b/apps/website/tailwind.config.ts @@ -78,9 +78,9 @@ const config: Config = { }, extend: { zIndex: { - "navbar": "9999", // Nothing should be above the navbar or backdrop - "navbar-backdrop": "9998" - } + 'navbar': '9999', // Nothing should be above the navbar or backdrop + 'navbar-backdrop': '9998', + }, }, }, plugins: [], |