diff --git a/src/assets/css/Header.css b/src/assets/css/Header.css new file mode 100644 index 0000000..f73c4ce --- /dev/null +++ b/src/assets/css/Header.css @@ -0,0 +1,61 @@ +*{ + box-sizing: border-box; +} + +body{ + margin: 0; +} + +.site-title{ + font-size: 4rem; + +} + +.header-nav{ + border-left: #E4F2E7; + border-left-style: solid; + margin: 4rem; +} +.header{ + background-color: #2D3E40; + color: #E4F2E7; + display: flex; + gap: 2rem; + padding-left: 1rem; + padding-right: 1rem; +} + + +.site-title:hover{ + color: #E4F2E7; +} + +.header a{ + color: #E4F2E7; + text-decoration: none; + + height: 100%; + display: flex; + align-items: center; + padding: .25rem; + padding-top: 1.5rem; + padding-bottom: 1.5rem; +} + +.header-item:hover{ + color: #2D3E40; + background-color: #E4F2E7; +} + +.header ul{ + padding-left: 1rem; + margin: 0; + list-style: none; + display: flex; + gap: 1rem; +} + +.header li:active{ + background-color: #E4F2E7; + color: #2D3E40; +} diff --git a/src/components/Header.tsx b/src/components/Header.tsx index a92eaf6..2d507d0 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -1,4 +1,5 @@ import useWindowDimensions from "../hooks/WindowDimensionsHook.tsx"; +import "../assets/css/Header.css" interface Props { user?: string @@ -7,46 +8,24 @@ interface Props { export function Header({ user }: Props) { const {width, height} = useWindowDimensions(); const aspect_ratio = (width == 0 ? 1 : width) / (height == 0 ? 1 : height); - const use_narrow = aspect_ratio < 1.3; + const use_narrow = aspect_ratio < 0.7; - return
- -
-
+ return
{/*App Name reloads home page*/} -
- -

{use_narrow ? "Narrow" : "Budget19"}

+
+

{use_narrow ? "B-19" : "Budget-19"}

-
{/*Pages*/} -
-
; } \ No newline at end of file