]> Skullheadx's Git Forge - skullheadx.com.git/commitdiff
grid
authorSkullheadx <admonty1@protonmail.com>
Wed, 6 May 2026 04:16:45 +0000 (00:16 -0400)
committerSkullheadx <admonty1@protonmail.com>
Wed, 6 May 2026 04:16:45 +0000 (00:16 -0400)
index.html
style.css

index 0250241bd697a75e60181384be704630ed81e87a..41b255de5599c9644a784c88a7743fe2ef40dec2 100644 (file)
@@ -8,12 +8,13 @@
         <link rel="icon" href="/favicon.ico">
     </head>
     <body>
-        <header>
+        <div class = "wrapper">
+        <header class="main-head">
             <a href="/">
                 <h1>Skullheadx</h1>
             </a>
         </header>
-        <nav>
+        <nav class="main-nav">
             <section>
                 <h2>General</h2>
                 <ol>
                 </ol>
             </section>
             <section>
+                <h2>Contact</h2>
                 <a href="mailto:skull@skullheadx.com">Email</a>
             </section>
         </nav>
-        <aside>
+        <aside class="main-aside">
             <section>
                 <h2>Bio</h2>
                 <ol>
@@ -59,8 +61,8 @@
                 <footer><time datetime="2026-05-05">May 5, 2026</time></footer>
             </section>
         </aside>
-        <main>
-            <article>
+        <main class="content">
+            <article> 
                 <h1>Welcome to my webpage</h1>
                 <p>This is my site where I share my projects, and my thoughts on philosophy and tech.</p>
                 <p>I'm interested in Orthodox Christianity, computing, electrical engineering and reading, so a lot of the content of my site will focus on these topics.</p>
@@ -68,8 +70,9 @@
                 <a href="mailto:skull@skullheadx.com">skull@skullheadx.com</a></p>
             </article>
         </main>
-        <footer>
+        <footer class="main-footer">
             <a href="https://skullheadx.com">https://skullheadx.com</a>
         </footer>
+        </div>
     </body>
 </html>
index 8b137891791fe96927ad78e64b0aad7bded08bdc..3d71bf4c88cf3512b3770876d85de4cfdd0b3e49 100644 (file)
--- a/style.css
+++ b/style.css
@@ -1 +1,55 @@
+.main-head {
+  grid-area: header;
+}
+.content {
+  grid-area: content;
+}
+.main-nav {
+  grid-area: nav;
+}
+.main-aside {
+  grid-area: aside;
+}
+.main-footer {
+  grid-area: footer;
+}
 
+.wrapper {
+  display: grid;
+  gap: 20px;
+  grid-template-areas:
+    "header"
+    "nav"
+    "content"
+    "aside"
+    "footer";
+}
+
+@media (width >= 500px) {
+  .wrapper {
+    grid-template-columns: 1fr 3fr;
+    grid-template-areas:
+      "header  header"
+      "nav     nav"
+      "aside content"
+      "footer      footer";
+  }
+  nav ul {
+    display: flex;
+    justify-content: space-between;
+  }
+}
+
+@media (width >= 700px) {
+  .wrapper {
+    grid-template-columns: 1fr 4fr 1fr;
+    grid-template-areas:
+      "header header  header"
+      "nav    content aside"
+      "nav    content aside"
+      "footer footer  footer";
+  }
+  nav ul {
+    flex-direction: column;
+  }
+}