feat: Über-mich-Porträt mit Gold-Rahmen und Graustufen-Hover
This commit is contained in:
1 parent
27602cffd4
commit
fa993489f6
2 files changed
+50
-2
No files matched your search
+45
-1
@@ -16,7 +16,12 @@
|
||||
--akzent-gold: #c9a227;
|
||||
}
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
/* Lenis (smooth scroll) — CSS aus Framers SmoothScroll_Prod.js */
|
||||
html.lenis { height: auto; }
|
||||
.lenis.lenis-smooth { scroll-behavior: auto !important; }
|
||||
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
|
||||
.lenis.lenis-stopped { overflow: hidden; }
|
||||
.lenis.lenis-scrolling iframe { pointer-events: none; }
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
@@ -215,6 +220,45 @@
|
||||
.einblenden { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
|
||||
.einblenden.sichtbar { opacity: 1; transform: none; }
|
||||
|
||||
/* ==================== ÜBER-MICH PORTRÄT (schwebt rechts, Graustufen → Farbe) ==================== */
|
||||
.portrait-hero {
|
||||
margin: 0 0 32px;
|
||||
float: right;
|
||||
width: 320px;
|
||||
max-width: 40%;
|
||||
shape-outside: margin-box;
|
||||
}
|
||||
.portrait-hero img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: 12px;
|
||||
border: 2px solid var(--akzent-gold);
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||||
filter: grayscale(100%);
|
||||
transition: filter 0.6s ease-out, transform 0.4s ease-out;
|
||||
}
|
||||
.portrait-hero:hover img,
|
||||
.portrait-hero:focus-within img {
|
||||
filter: grayscale(0%);
|
||||
transform: scale(1.03);
|
||||
}
|
||||
.portrait-hero figcaption {
|
||||
margin-top: 10px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.4px;
|
||||
color: var(--text-leise);
|
||||
text-align: right;
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.portrait-hero {
|
||||
float: none;
|
||||
width: 100%;
|
||||
max-width: 320px;
|
||||
margin: 0 auto 32px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ==================== SEITENÜBERGANG (Staub-Fade) ==================== */
|
||||
body { transition: opacity 0.3s ease-out, transform 0.3s ease-out, filter 0.3s ease-out; }
|
||||
.seite-ausgang { opacity: 0; transform: translateY(-12px); filter: blur(3px); }
|
||||
|
||||
@@ -83,6 +83,10 @@
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
<figure class="portrait-hero reveal">
|
||||
<img src="assets/Bild_Leon-web.jpg" alt="Leon Tonhäuser, Sportfotograf" loading="eager" width="800" height="1199">
|
||||
<figcaption>Foto: Panthjeet Lucky Singh – ptjtluckys_pictures</figcaption>
|
||||
</figure>
|
||||
<div class="container">
|
||||
<div class="page-hero">
|
||||
<div class="hero-label">— 03 / Über mich</div>
|
||||
@@ -142,7 +146,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user