From e66206c51811d61ac3fd0a96467a52f0a8aeec16 Mon Sep 17 00:00:00 2001 From: Lobo Date: Mon, 23 Feb 2026 09:07:33 +0100 Subject: [PATCH] Fixed hero page --- src/app/pages/about/about.component.html | 62 ++++++++++++------------ src/styles.scss | 42 ++++++++++------ 2 files changed, 58 insertions(+), 46 deletions(-) diff --git a/src/app/pages/about/about.component.html b/src/app/pages/about/about.component.html index 86f5fad..1deecd4 100644 --- a/src/app/pages/about/about.component.html +++ b/src/app/pages/about/about.component.html @@ -1,37 +1,39 @@
-
- {{ 'ABOUT.ALT.PROFILE' | translate }} -
+
+
+ {{ 'ABOUT.ALT.PROFILE' | translate }} +
-
-

{{ 'ABOUT.HELLO' | translate }}

-

- {{ 'ABOUT.LEAD' | translate }} -

+
+

{{ 'ABOUT.HELLO' | translate }}

+

+ {{ 'ABOUT.LEAD' | translate }} +

-
-
- - {{ 'ABOUT.ROLE' | translate }} -
-
- - {{ 'ABOUT.LOCATION' | translate }} -
- -
- data_object - Codeberg - · - - LinkedIn +
+
+ + {{ 'ABOUT.ROLE' | translate }} +
+
+ + {{ 'ABOUT.LOCATION' | translate }} +
+ +
+ data_object + Codeberg + · + + LinkedIn +
diff --git a/src/styles.scss b/src/styles.scss index 2871d39..e8858bc 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -477,28 +477,22 @@ app-root { } .hero { - display: block; border-radius: var(--card-radius); background: var(--card-bg); - padding: clamp(1rem, 3vw, 1.5rem); overflow: hidden; } -.hero .photo { - float: left; - margin-right: clamp(1rem, 4vw, 1.5rem); - margin-bottom: 0.5rem; - max-width: 100%; +.hero-flex-container { + display: flex; + flex-wrap: wrap; + gap: clamp(1rem, 4vw, 2rem); + padding: clamp(1rem, 3vw, 1.5rem); + align-items: flex-start; } -@media (max-width: 720px) { - .hero .photo { - float: none; - margin-right: 0; - margin-bottom: 1rem; - display: flex; - justify-content: center; - } +.hero .photo { + flex: 0 0 auto; + max-width: 100%; } .hero .photo img { @@ -512,7 +506,23 @@ app-root { } .hero .intro { - display: block; + flex: 1 1 400px; +} + +@media (max-width: 850px) { + .hero-flex-container { + justify-content: center; + } + + .hero .photo { + width: 100%; + display: flex; + justify-content: center; + } + + .hero .intro { + flex-basis: 100%; + } } .hero .intro h1 {