From d568fe0235de920f2b97f70777bab94c114d5654 Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Sat, 30 Dec 2023 11:37:33 +0100 Subject: Responsive tweaks --- apps/website/src/components/base/Card.astro | 4 +-- apps/website/src/components/base/Header.astro | 17 ++++++++----- apps/website/src/components/base/Section.astro | 6 ++--- apps/website/src/components/base/Tag.astro | 10 ++++---- .../src/components/base/navbar/Navbar.astro | 2 +- .../src/components/base/navbar/NavbarElement.astro | 6 ++--- apps/website/src/layouts/Layout.astro | 2 +- apps/website/src/pages/mods.astro | 10 ++++---- apps/website/src/pages/projects/oneconfig.astro | 29 +++++++++++----------- apps/website/src/styles/global.css | 2 +- apps/website/tailwind.config.ts | 5 ++++ 11 files changed, 51 insertions(+), 42 deletions(-) (limited to 'apps') diff --git a/apps/website/src/components/base/Card.astro b/apps/website/src/components/base/Card.astro index 9b75f16..2eea908 100644 --- a/apps/website/src/components/base/Card.astro +++ b/apps/website/src/components/base/Card.astro @@ -16,7 +16,7 @@ const { --- -
+
-

{text}

+

{text}

diff --git a/apps/website/src/components/base/Header.astro b/apps/website/src/components/base/Header.astro index 7d24c8f..962b2d4 100644 --- a/apps/website/src/components/base/Header.astro +++ b/apps/website/src/components/base/Header.astro @@ -16,16 +16,21 @@ type Headers = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; interface Props extends HTMLAttributes { size?: keyof typeof sizes align?: 'left' | 'center' | 'right' | 'inherit' + inheritSize?: boolean } const { size = 'lg', align = 'inherit', + inheritSize = false, ...attr } = Astro.props; const Element = sizes[size] as any; // Unfortunately gotta do this let className: string | string[] = []; +if (!inheritSize) + className.push('header'); + if (align !== 'inherit') className.push(`text-${align}`); @@ -43,7 +48,7 @@ className = className.join(' ');