From 74f28c932c704bee3c3f30644d3d92499c328e7c Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Mon, 9 Mar 2026 15:24:32 +0200 Subject: [PATCH] Add pricing cards to hero section (two-column layout) - Hero now has two-column grid: content left, pricing right - Compact price cards show 1U/2U/4U prices immediately on page load - Responsive: stacks to single column on mobile/tablet - Featured "Suosituin" badge on 2U card Co-Authored-By: Claude Opus 4.6 --- index.html | 58 +++++++++++++++++++--------- style.css | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 149 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index de972da..2f8ec99 100644 --- a/index.html +++ b/index.html @@ -40,26 +40,48 @@
-
-

Luotettavat konesalipalvelut Turussa

-

Colocation-laitepaikkoja ammattimaisessa laitetilassa. Redundantti sähkönsyöttö, nopeat tietoliikenneyhteydet ja henkilökohtainen palvelu.

-
- Pyydä tarjous - Katso hinnat +
+
+

Luotettavat konesalipalvelut Turussa

+

Colocation-laitepaikkoja ammattimaisessa laitetilassa. Redundantti sähkönsyöttö, nopeat tietoliikenneyhteydet ja henkilökohtainen palvelu.

+ +
+
+ 99,9% + Käytettävyys SLA +
+
+ 24/7 + Valvonta +
+
+ 100 Gbit/s + Saatavilla jopa +
+
-
-
- 99,9% - Käytettävyys SLA -
-
- 24/7 - Valvonta -
-
- 100 Gbit/s - Saatavilla jopa +
+
Hinnat alkaen
+ +

1 Gbit/s yhteys & rajoittamaton liikenne sisältyy

+ Pyydä tarjous
diff --git a/style.css b/style.css index 72f098c..126b470 100644 --- a/style.css +++ b/style.css @@ -179,6 +179,14 @@ a:hover { pointer-events: none; } +.hero-grid { + display: grid; + grid-template-columns: 1fr 340px; + gap: 60px; + align-items: center; + position: relative; +} + .hero-content { position: relative; max-width: 720px; @@ -233,6 +241,98 @@ a:hover { margin-top: 4px; } +/* === Hero Pricing === */ +.hero-pricing { + background: var(--color-bg-card); + border: 1px solid var(--color-border); + border-radius: var(--radius); + padding: 32px 28px; + text-align: center; +} + +.hero-pricing-label { + font-size: 0.85rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.1em; + color: var(--color-accent); + margin-bottom: 20px; +} + +.hero-price-cards { + display: flex; + flex-direction: column; + gap: 10px; + margin-bottom: 20px; +} + +.hero-price-card { + display: flex; + align-items: center; + justify-content: space-between; + padding: 14px 18px; + background: var(--color-surface); + border: 1px solid var(--color-border); + border-radius: var(--radius-sm); + text-decoration: none; + transition: all var(--transition); + position: relative; +} + +.hero-price-card:hover { + border-color: var(--color-primary); + background: var(--color-bg-light); + transform: translateX(4px); +} + +.hero-price-card-featured { + border-color: var(--color-primary); + background: rgba(26, 115, 232, 0.1); +} + +.hero-price-badge { + position: absolute; + top: -8px; + right: 12px; + background: var(--color-primary); + color: var(--color-white); + font-size: 0.65rem; + font-weight: 700; + text-transform: uppercase; + letter-spacing: 0.05em; + padding: 2px 8px; + border-radius: 4px; +} + +.hero-price-name { + font-size: 1rem; + font-weight: 600; + color: var(--color-text); +} + +.hero-price-value { + font-size: 1.5rem; + font-weight: 800; + color: var(--color-white); +} + +.hero-price-value small { + font-size: 0.8rem; + font-weight: 500; + color: var(--color-text-muted); +} + +.hero-pricing-note { + font-size: 0.8rem; + color: var(--color-text-muted); + margin-bottom: 20px; + line-height: 1.4; +} + +.hero-pricing-cta { + width: 100%; +} + /* === Buttons === */ .btn { display: inline-flex; @@ -1075,6 +1175,15 @@ a:hover { /* === Responsive === */ @media (max-width: 1024px) { + .hero-grid { + grid-template-columns: 1fr; + gap: 40px; + } + + .hero-pricing { + max-width: 400px; + } + .services-grid, .pricing-grid, .features-grid {