diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-29 23:40:57 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-29 23:40:57 +0200 |
| commit | 10b9b682b9407ad02f6aa265003e86bfbefb0a2c (patch) | |
| tree | 7caf573be2181312b2ca840bee5fe93ecfc53c25 | |
| parent | 98bb6a6c189519b02b86de8f3ce52cdb8813cfe7 (diff) | |
feat(design): base header
| -rw-r--r-- | design/index.html | 13 | ||||
| -rw-r--r-- | design/style.css | 51 |
2 files changed, 62 insertions, 2 deletions
diff --git a/design/index.html b/design/index.html index e43ec28..addfcc7 100644 --- a/design/index.html +++ b/design/index.html @@ -8,6 +8,19 @@ <link href="style.css" rel="stylesheet"> </head> <body> + <header> + <img src="https://cdn.anhgelus.world/pfp.jpg" alt="pfp"> + <nav> + <a href="">Home</a> + <a href="">Logs</a> + <a href="">Work</a> + <a href="">Philosophy</a> + <a href="">Lien 1</a> + <a href="">Lien 2</a> + <a href="">Lien 3</a> + <a href="">Lien 4</a> + </nav> + </header> <article> <h1>Page title</h1> <p> diff --git a/design/style.css b/design/style.css index c2dd3f5..5b91c50 100644 --- a/design/style.css +++ b/design/style.css @@ -7,6 +7,9 @@ --font-size-tiny: 0.85rem; /* quote, legend, code */ + --content-width: 700px; + --deco-width: 900px; + font-size: 20px; } @@ -24,7 +27,7 @@ body * { } article { - max-width: 700px; + max-width: var(--content-width); margin: 0 auto; } @@ -120,7 +123,7 @@ figure { max-height: max(60vh, 400px); &.larger { - --max-width: 130%; + --max-width: var(--deco-width); --width: min(calc(100vw - 4rem), var(--max-width)); margin-left: max(-15%, calc((100% - var(--width))/2)); width: var(--max-width); @@ -166,3 +169,47 @@ pre { } } +header { + max-width: var(--deco-width); + height: 8rem; + + margin: 0 auto 4rem auto; + padding-bottom: 2rem; + + display: flex; + flex-direction: row; + gap: 2rem; + + border-bottom: var(--color-light) 2px solid; + + @media only screen and (max-width: 600px) { + flex-direction: column; + height: auto; + min-height: 8rem; + } + + & img { + filter: saturate(0.9) sepia(0.1); + + @media only screen and (max-width: 600px) { + width: max(33%, 128px); + margin: 0 auto; + } + } + + & nav { + display: flex; + flex-direction: column; + flex-wrap: wrap; + gap: 0.5rem; + + & a { + display: block; + + min-width: 8rem; + + font-family: monospace; + } + } +} + |
