From 5d07d33eaa6d533f2a70148d376d1ef972f0f363 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Fri, 31 Jul 2026 19:51:33 +0200 Subject: [PATCH] chore(mobile view): more mobile view improvements e.g. item sizes --- frontend/src/App.css | 6 ++++- frontend/src/components/Header.tsx | 34 ++++++++++++++++++++----- frontend/src/components/ProjectInfo.tsx | 2 +- 3 files changed, 33 insertions(+), 9 deletions(-) diff --git a/frontend/src/App.css b/frontend/src/App.css index 1a8cfb7..812b628 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -44,7 +44,11 @@ } .ui-btn { - @apply text-ctp-text border border-ctp-text rounded px-3 py-1 cursor-pointer transition-colors; + @apply text-ctp-text border border-ctp-text rounded px-3 py-1 min-w-8 2xl:min-w-36 text-center cursor-pointer transition-colors; +} + +.theme-ui-btn { + @apply text-ctp-text border border-ctp-text rounded px-3 py-1 min-w-10 text-center cursor-pointer transition-colors; } .ui-btn:hover { diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index 9ef3b23..8190344 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -5,6 +5,11 @@ interface NavItem { url: string; } +interface PageItem { + label: string; + url: string; +} + interface HeaderTheme { theme: string; toggleTheme: () => void; @@ -21,11 +26,15 @@ export default function Header({ theme }: HeaderProps) { { label: "Nextcloud", url: "https://nextcloud.aramjonghu.dev" }, { label: "Navidrome", url: "https://music.aramjonghu.dev" }, { label: "Forgejo Git", url: "https://git.aramjonghu.dev" }, - { label: "Stream", url: "/stream" }, { label: "Omnisearch", url: "https://xng.aramjonghu.dev" }, { label: "Gitea zach-dev", url: "https://git.zach-dev.cc" }, ]; + const pageItems: PageItem[] = [ + { label: "Stream", url: "/stream" }, + { label: "Contact", url: "/contact" }, + ]; + const goHome = () => { window.location.href = "/"; }; @@ -39,21 +48,32 @@ export default function Header({ theme }: HeaderProps) { onClick={goHome} /> -