From fa420e1659c5da0505aeff0f8b1a22257c0ef2e0 Mon Sep 17 00:00:00 2001 From: theBreadCompany Date: Wed, 7 May 2025 02:09:01 +0200 Subject: [PATCH] make somewhat reactive --- index.css | 50 ++++++++++++++++++++++++++++++++++++++++++++++---- index.html | 10 +++++----- 2 files changed, 51 insertions(+), 9 deletions(-) diff --git a/index.css b/index.css index 351e3d2..0d23d32 100644 --- a/index.css +++ b/index.css @@ -24,6 +24,7 @@ html, body { background-color: var(--background); color: var(--text); height: 100vh; + width: 100vw; overflow: hidden; margin: 0; padding: 0; @@ -35,7 +36,7 @@ a { color: unset; text-decoration: none; } display: flex; flex-direction: column; } -.flex-h { display: flex; } +.flex-h, .r-flex-h { display: flex; } .center-v { align-items: center; } .center-h { justify-content: center; } @@ -74,8 +75,14 @@ a { color: unset; text-decoration: none; } border-bottom: 1px solid var(--text); } .page-bar[bottom="true"] { + display: none; border-top: 1px solid var(--text); } +.logo-big { + width: 10vw; + aspect-ratio: 1; + margin-right: 5em; +} .scroll-hint { position: relative; height: 10%; @@ -93,12 +100,19 @@ a { color: unset; text-decoration: none; } } ul.h-list { - display: inline; + display: inline-block; circle: list; } .h-list li { display: inline; margin-right: 0.5em; + whitespace: no-wrap; +} +.h-list.pilled li { + padding: 0.5em 1em; + background-color: var(--primary); + border-radius: 20px; + color: var(--background); } .product { @@ -164,13 +178,41 @@ ul.h-list { .socials-tile[variant="mastodon"] { mask-image: url("https://api.iconify.design/mdi:mastodon.svg"); } .socials-tile[variant="email"] { mask-image: url("https://api.iconify.design/mdi:email.svg"); } .socials-tile[variant="discord"] { mask-image: url("https://api.iconify.design/mdi:discord.svg"); } -.socials-tile:hover { -} .txt-list div { margin-left: 2em; } +@media(max-width: 800px) { + .r-flex-h { + display: flex; + flex-direction: column; + } + .page { padding: 1em; } + .h-list { padding-left: unset; } + .logo-big { + width: 25vw; + margin-right: unset; + } + .separator { + height: 2px; + width: 100%; + background-color: var(--text); + margin: 2em 0; + } + .socials-tile { + width: 2em; + height: 2em; + } + .page-bar[bottom="true"] { + border-top: unset; + } + .product[placeholder="true"], + .page-bar[bottom="true"] > * { + display: none; + } +} + #ts { color: #3178c6; } #rs { color: #dea584; } #html { color: #e34c26; } diff --git a/index.html b/index.html index 30d08ab..0be48bd 100644 --- a/index.html +++ b/index.html @@ -28,8 +28,8 @@
-
- thebreadcompany logo +
+ thebreadcompany logo

Hi, I'm bread

I'm a computer science student from Germany. I'm interested in

@@ -101,7 +101,7 @@