diff --git a/README.md b/README.md index 5c7ddd4..c26c436 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,4 @@ This repository contains 3 major parts. - `design` which is for Canada website and personal website -- `canada` which is the Canada website, Astro project -- `personal` which is my personal website at aaronczichon.de, Astro project +- `site` which is my personal website at aaronczichon.de, Astro project diff --git a/design/src/index.html b/design/src/index.html index 9ab2c0c..18c61cf 100644 --- a/design/src/index.html +++ b/design/src/index.html @@ -16,34 +16,32 @@
-
-
- - Aaron Czichon - - Canada - Blog - Map - Images - CV - About - - -
- - - - - -
-
-
+
+ + Aaron Czichon + + + +
+ + + + + +
+
+ Canada + Blog + Map + Images + CV + About
diff --git a/design/src/styles/layout/nav.css b/design/src/styles/layout/nav.css index da2da9a..f47f6ab 100644 --- a/design/src/styles/layout/nav.css +++ b/design/src/styles/layout/nav.css @@ -63,23 +63,34 @@ display: none; } .topnav a.icon { - float: right; display: block; + position: absolute; + right: 30px; + top: 133px; } } /* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */ @media screen and (max-width: 48em) { + .topnav { + display: flex; + flex-direction: column; + } + .topnav.responsive { position: relative; } .topnav.responsive a.icon { position: absolute; - right: 0; - top: 0; + right: 8px; + top: 16px; } .topnav.responsive a { float: none; display: block; + text-align: left; + } + .topnav.responsive a:first-of-type { + float: left; } } diff --git a/site/src/components/Nav.astro b/site/src/components/Nav.astro index 4dc4a37..a9f8de0 100644 --- a/site/src/components/Nav.astro +++ b/site/src/components/Nav.astro @@ -18,34 +18,6 @@ import { Image } from "astro:assets"; sizes={`30px`} /> - - -1 ? "active" : ""} - >Blog - - - -1 ? "active" : ""}>CV - -1 ? "active" : ""} - >Visited Countries - - - - Imprint + -1 ? "active" : ""} + >Blog + -1 ? "active" : ""}>CV + -1 ? "active" : ""} + >About me + Imprint