feat: nav chat widget, lighter coffee palette, hero parallax bg image
This commit is contained in:
+99
-66
@@ -54,20 +54,20 @@
|
|||||||
|
|
||||||
/* ── Design Tokens ── */
|
/* ── Design Tokens ── */
|
||||||
:root {
|
:root {
|
||||||
--bg: #18100a;
|
--bg: #3a2416;
|
||||||
--surf1: #201408;
|
--surf1: #44301a;
|
||||||
--card: #281c0c;
|
--card: #50381e;
|
||||||
--lift: #342010;
|
--lift: #5e4426;
|
||||||
--bg-deep: #0c0804;
|
--bg-deep: #241810;
|
||||||
--border: rgba(190, 120, 45, 0.22);
|
--border: rgba(210, 140, 60, 0.28);
|
||||||
--grey: #7a6050;
|
--grey: #9e8060;
|
||||||
--silver: #b89878;
|
--silver: #c8a882;
|
||||||
--light: #d4b890;
|
--light: #e4cca4;
|
||||||
--gold: #c87830;
|
--gold: #d88c3c;
|
||||||
--gold-hi: #e8983c;
|
--gold-hi: #f0a850;
|
||||||
--gold-lo: #784418;
|
--gold-lo: #8a5422;
|
||||||
--gold-glow: rgba(190, 120, 45, 0.18);
|
--gold-glow: rgba(210, 140, 60, 0.22);
|
||||||
--white: #eed8b8;
|
--white: #f8e8c8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Base ── */
|
/* ── Base ── */
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
z-index: 500;
|
z-index: 500;
|
||||||
height: 62px;
|
height: 62px;
|
||||||
background: rgba(22, 14, 8, 0.97);
|
background: rgba(48, 30, 16, 0.97);
|
||||||
backdrop-filter: blur(20px);
|
backdrop-filter: blur(20px);
|
||||||
-webkit-backdrop-filter: blur(20px);
|
-webkit-backdrop-filter: blur(20px);
|
||||||
border-bottom: 1px solid var(--border);
|
border-bottom: 1px solid var(--border);
|
||||||
@@ -179,13 +179,9 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 44px 6vw;
|
padding: 44px 6vw;
|
||||||
background:
|
position: relative;
|
||||||
radial-gradient(
|
overflow: hidden;
|
||||||
ellipse 80% 50% at 50% 0%,
|
background: var(--bg);
|
||||||
#1c0e04 0%,
|
|
||||||
transparent 70%
|
|
||||||
),
|
|
||||||
var(--bg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-eyebrow {
|
.hero-eyebrow {
|
||||||
@@ -229,60 +225,85 @@
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── HERO CHAT WIDGET ── */
|
/* ── HERO PARALLAX BACKGROUND ── */
|
||||||
.hero-chat {
|
.hero-bg-wrap {
|
||||||
position: relative;
|
position: absolute;
|
||||||
display: flex;
|
inset: -30% 0;
|
||||||
align-items: stretch;
|
z-index: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.hero-bg-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 540px;
|
height: 100%;
|
||||||
margin-bottom: 28px;
|
object-fit: cover;
|
||||||
background: var(--card);
|
object-position: center 30%;
|
||||||
|
display: block;
|
||||||
|
opacity: 0.28;
|
||||||
|
}
|
||||||
|
.hero-bg-wrap::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: linear-gradient(
|
||||||
|
160deg,
|
||||||
|
rgba(58, 36, 20, 0.7) 0%,
|
||||||
|
rgba(44, 26, 12, 0.48) 50%,
|
||||||
|
rgba(58, 36, 20, 0.8) 100%
|
||||||
|
);
|
||||||
|
}
|
||||||
|
.hero > *:not(.hero-bg-wrap) {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── NAV CHAT WIDGET ── */
|
||||||
|
.nav-chat {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background: rgba(80, 56, 30, 0.55);
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
border-radius: 6px;
|
border-radius: 4px;
|
||||||
|
height: 34px;
|
||||||
|
width: 220px;
|
||||||
transition:
|
transition:
|
||||||
border-color 0.25s,
|
border-color 0.25s,
|
||||||
box-shadow 0.25s;
|
box-shadow 0.25s;
|
||||||
}
|
}
|
||||||
.hero-chat:focus-within {
|
.nav-chat:focus-within {
|
||||||
border-color: var(--gold);
|
border-color: var(--gold);
|
||||||
box-shadow: 0 0 0 3px var(--gold-glow);
|
box-shadow: 0 0 0 2px var(--gold-glow);
|
||||||
}
|
}
|
||||||
.hero-chat-input {
|
.nav-chat-input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
padding: 13px 16px;
|
padding: 0 10px;
|
||||||
font-size: 0.88rem;
|
font-size: 0.78rem;
|
||||||
font-family: "Segoe UI", system-ui, sans-serif;
|
font-family: "Segoe UI", system-ui, sans-serif;
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
.hero-chat-input::placeholder {
|
.nav-chat-input::placeholder {
|
||||||
color: var(--grey);
|
color: var(--grey);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
.hero-chat-send {
|
.nav-chat-send {
|
||||||
flex-shrink: 0;
|
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
border-left: 1px solid var(--border);
|
border-left: 1px solid var(--border);
|
||||||
padding: 0 18px;
|
padding: 0 10px;
|
||||||
color: var(--gold);
|
color: var(--gold);
|
||||||
font-size: 1.05rem;
|
font-size: 0.85rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
transition: color 0.2s;
|
||||||
transition:
|
|
||||||
color 0.2s,
|
|
||||||
background 0.2s;
|
|
||||||
border-radius: 0 6px 6px 0;
|
|
||||||
}
|
}
|
||||||
.hero-chat-send:hover {
|
.nav-chat-send:hover {
|
||||||
color: var(--gold-hi);
|
color: var(--gold-hi);
|
||||||
background: var(--lift);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-actions {
|
.hero-actions {
|
||||||
@@ -1038,6 +1059,9 @@
|
|||||||
.hero h1 {
|
.hero h1 {
|
||||||
font-size: 1.9rem;
|
font-size: 1.9rem;
|
||||||
}
|
}
|
||||||
|
.nav-chat {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.nav-links {
|
.nav-links {
|
||||||
gap: 14px;
|
gap: 14px;
|
||||||
}
|
}
|
||||||
@@ -1084,6 +1108,19 @@
|
|||||||
<nav>
|
<nav>
|
||||||
<a class="nav-logo" href="#">my-biz<span>.app</span></a>
|
<a class="nav-logo" href="#">my-biz<span>.app</span></a>
|
||||||
<ul class="nav-links">
|
<ul class="nav-links">
|
||||||
|
<li>
|
||||||
|
<div class="nav-chat">
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
class="nav-chat-input"
|
||||||
|
placeholder="Your Sales Agent"
|
||||||
|
aria-label="Ask your AI sales agent"
|
||||||
|
/>
|
||||||
|
<button class="nav-chat-send" aria-label="Send message">
|
||||||
|
➤
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="nav-cta-book" href="#">Book Meeting</a>
|
<a class="nav-cta-book" href="#">Book Meeting</a>
|
||||||
</li>
|
</li>
|
||||||
@@ -1095,6 +1132,19 @@
|
|||||||
|
|
||||||
<!-- HERO -->
|
<!-- HERO -->
|
||||||
<section class="hero" id="home">
|
<section class="hero" id="home">
|
||||||
|
<!-- Parallax background -->
|
||||||
|
<div class="hero-bg-wrap">
|
||||||
|
<img
|
||||||
|
class="hero-bg-img"
|
||||||
|
src="https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80&auto=format&fit=crop"
|
||||||
|
alt=""
|
||||||
|
aria-hidden="true"
|
||||||
|
data-mf-parallax
|
||||||
|
data-mf-parallax-speed="0.4"
|
||||||
|
data-mf-parallax-speed-tablet="0"
|
||||||
|
data-mf-parallax-speed-mobile="0"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
class="hero-eyebrow"
|
class="hero-eyebrow"
|
||||||
data-mf-animation="fade-up"
|
data-mf-animation="fade-up"
|
||||||
@@ -1141,24 +1191,7 @@
|
|||||||
><span>No expensive surprises.</span></span
|
><span>No expensive surprises.</span></span
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
<div
|
|
||||||
class="hero-chat"
|
|
||||||
data-mf-animation="fade-up"
|
|
||||||
data-mf-animation-duration="700"
|
|
||||||
data-mf-animation-delay="320"
|
|
||||||
data-mf-animation-distance="20"
|
|
||||||
data-mf-animation-once="true"
|
|
||||||
>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
class="hero-chat-input"
|
|
||||||
placeholder="Your Sales Agent"
|
|
||||||
aria-label="Ask your AI sales agent"
|
|
||||||
/>
|
|
||||||
<button class="hero-chat-send" aria-label="Send message">
|
|
||||||
➤
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
class="hero-actions"
|
class="hero-actions"
|
||||||
data-mf-animation="fade-up"
|
data-mf-animation="fade-up"
|
||||||
|
|||||||
Reference in New Issue
Block a user