From 68d578b29de601b912b8a0caf552dca60a3840e1 Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Wed, 13 May 2026 14:56:15 +0100 Subject: [PATCH] Adjusted hero landing --- Cargo.lock | 2 +- Cargo.toml | 2 +- templates/landing.html | 77 +++++++++++++++++++++++++++++++++++++++--- 3 files changed, 74 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c63d75e..70a56f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3255,7 +3255,7 @@ dependencies = [ [[package]] name = "web-petting" -version = "0.1.4" +version = "0.1.5" dependencies = [ "chrono", "chrono-tz", diff --git a/Cargo.toml b/Cargo.toml index 6543a6f..85b6ca2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "web-petting" -version = "0.1.5" +version = "0.1.6" edition = "2024" [dependencies] diff --git a/templates/landing.html b/templates/landing.html index 96ecc6f..e1ac616 100644 --- a/templates/landing.html +++ b/templates/landing.html @@ -96,6 +96,51 @@ box-shadow: 0 4px 20px rgba(124,108,255,0.35); } .hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,108,255,0.45); } + .hero { position: relative; } + .hero-blob { + position: absolute; + border-radius: 50%; + z-index: 0; + background-size: cover; + background-position: center; + background-repeat: no-repeat; + } + .hero-blob-br { + width: 360px; height: 400px; + right: -100px; bottom: -110px; + background-color: #ffe0ec; + background-image: radial-gradient(ellipse at 40% 40%, #ffd6e8 0%, #f8c4d8 60%, #eab0d0 100%); + border-radius: 50%; + overflow: hidden; + } + .hero-blob-tl { + width: 240px; height: 270px; + left: -65px; top: -15px; + background-color: #d8ecff; + background-image: radial-gradient(ellipse at 60% 60%, #d0e8ff 0%, #b8d8f8 60%, #a4c8f0 100%); + border-radius: 50%; + overflow: hidden; + } + .hero-blob-bl { + width: 290px; height: 330px; + left: -80px; bottom: -90px; + background-color: #d4f0d8; + background-image: radial-gradient(ellipse at 55% 45%, #ddf5e0 0%, #c4e8ca 60%, #b0dbb8 100%); + border-radius: 50%; + overflow: hidden; + } + .hero-blob svg { + position: absolute; opacity: 0.3; + } + .hero-blob img { + width: 100%; height: 100%; object-fit: contain; + } + .hero-content { position: relative; z-index: 1; } + @media (max-width: 600px) { + .hero-blob-br { width: 200px; height: 240px; right: -55px; bottom: -65px; } + .hero-blob-bl { width: 180px; height: 210px; left: -50px; bottom: -55px; } + .hero-blob-tl { width: 140px; height: 160px; left: -40px; top: -10px; } + } .hero-emoji { font-size: 4rem; margin-bottom: 1rem; display: block; } .hero-desc { font-size: clamp(0.9rem, 2vw, 1.05rem); @@ -118,6 +163,7 @@ border-radius: 18px; padding: 1.75rem; border: 1px solid rgba(180,170,220,0.2); transition: transform 0.2s, box-shadow 0.2s; + -webkit-transform: translateZ(0); transform: translateZ(0); } .testimonial-card:hover { transform: translateY(-3px); @@ -147,6 +193,7 @@ border-radius: 18px; padding: 2rem 2.5rem; border: 1px solid rgba(180,170,220,0.2); text-align: center; + -webkit-transform: translateZ(0); transform: translateZ(0); } .pricing-text { font-size: clamp(1.1rem, 2.5vw, 1.3rem); @@ -177,6 +224,7 @@ border-radius: 18px; padding: 2rem 1.75rem; border: 1px solid rgba(180,170,220,0.2); transition: transform 0.2s, box-shadow 0.2s; + -webkit-transform: translateZ(0); transform: translateZ(0); } .service-card:hover { transform: translateY(-4px); @@ -210,6 +258,7 @@ border-radius: 22px; padding: 2.5rem 2rem; box-shadow: 0 8px 40px rgba(124,108,255,0.12); border: 1px solid rgba(180,170,220,0.25); + -webkit-transform: translateZ(0); transform: translateZ(0); } .form-wrapper h2 { text-align: center; font-size: 1.6rem; font-weight: 800; @@ -286,11 +335,29 @@
- 🐱🐹🦎 -

{{ t.landing_hero_title }}

-

{{ t.landing_hero_subtitle }}

-

{{ t.landing_hero_description }}

- {{ t.landing_hero_cta }} +
+ + + +
+
+ + + +
+
+ + + + +
+
+ 🐱🐹🦎 +

{{ t.landing_hero_title }}

+

{{ t.landing_hero_subtitle }}

+

{{ t.landing_hero_description }}

+ {{ t.landing_hero_cta }} +