From bed1bbfe471a5f1f8ce2372d0f7cf2acb87aacf8 Mon Sep 17 00:00:00 2001 From: Luke Sultzer Date: Mon, 23 Feb 2026 18:54:19 -0600 Subject: [PATCH] fix ui responsivness on landing page --- client/src/pages/index.tsx | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/client/src/pages/index.tsx b/client/src/pages/index.tsx index 17295b6..bca6932 100644 --- a/client/src/pages/index.tsx +++ b/client/src/pages/index.tsx @@ -34,6 +34,12 @@ const Header = styled.h1` align-items: center; justify-content: center; gap: 16px; + + @media (max-width: 1212px){ + font-size: 36px; + gap: 12px; + letter-spacing: 2px; +} @media (max-width: 768px) { font-size: 36px; @@ -46,6 +52,12 @@ const Header = styled.h1` letter-spacing: 1px; gap: 8px; } + @media (max-width: 380px) { + font-size: 20px; + letter-spacing: 1px; + gap: 8px; + } + `; const Description = styled.p` @@ -59,6 +71,9 @@ const Description = styled.p` strong { font-family: 'Gilroy-Bold', sans-serif; } + @media (max-width: 320px) { + font-size: 14px; + } `; const HeaderBold = styled.span` @@ -86,6 +101,8 @@ const ByACM = styled.span` font-size: 12px; margin-left: 6px; } + + `; const Logo = { @@ -131,6 +148,23 @@ const ThemeToggle = styled.button` } `; +const LogoWrapper = styled.div` + width: 52px; + height: 52px; + flex-shrink: 0; + + @media (max-width: 768px) { + width: 40px; + height: 40px; + } + + @media (max-width: 480px) { + width: 34px; + height: 34px; + } +`; + + const SunIcon = () => (
+ + +
UTD GRADES by ACM Dev