feat: logo.png in nav, buttons beside logo, FormData session_id for chat webhook
This commit is contained in:
+20
-15
@@ -100,10 +100,9 @@
|
|||||||
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);
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: 1fr auto 1fr;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 24px;
|
gap: 16px;
|
||||||
padding: 0 8vw;
|
padding: 0 8vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -328,17 +327,25 @@
|
|||||||
.nav-chat-toggle:hover {
|
.nav-chat-toggle:hover {
|
||||||
color: var(--gold-hi);
|
color: var(--gold-hi);
|
||||||
}
|
}
|
||||||
|
.nav-logo {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.nav-logo img {
|
||||||
|
height: 36px;
|
||||||
|
width: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
.nav-center {
|
.nav-center {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
justify-content: center;
|
margin-left: 12px;
|
||||||
}
|
}
|
||||||
.nav-right {
|
.nav-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
.nav-cta-sm {
|
.nav-cta-sm {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -1253,10 +1260,6 @@
|
|||||||
.hero h1 {
|
.hero h1 {
|
||||||
font-size: 1.9rem;
|
font-size: 1.9rem;
|
||||||
}
|
}
|
||||||
nav {
|
|
||||||
grid-template-columns: 1fr auto;
|
|
||||||
gap: 12px;
|
|
||||||
}
|
|
||||||
.nav-center {
|
.nav-center {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -1304,7 +1307,9 @@
|
|||||||
<body>
|
<body>
|
||||||
<!-- NAV -->
|
<!-- NAV -->
|
||||||
<nav>
|
<nav>
|
||||||
<a class="nav-logo" href="#">my-biz<span>.app</span></a>
|
<a class="nav-logo" href="#"
|
||||||
|
><img src="logo.png" alt="my-biz.app"
|
||||||
|
/></a>
|
||||||
<div class="nav-center">
|
<div class="nav-center">
|
||||||
<a class="nav-cta-book" href="#">Book Meeting</a>
|
<a class="nav-cta-book" href="#">Book Meeting</a>
|
||||||
<a class="nav-cta" id="open-modal" href="#">Free Trial</a>
|
<a class="nav-cta" id="open-modal" href="#">Free Trial</a>
|
||||||
@@ -2017,13 +2022,13 @@
|
|||||||
var thinkEl = appendMsg("agent", "\u2026");
|
var thinkEl = appendMsg("agent", "\u2026");
|
||||||
thinkEl.classList.add("chat-thinking");
|
thinkEl.classList.add("chat-thinking");
|
||||||
|
|
||||||
|
var fd = new FormData();
|
||||||
|
fd.append("message", text);
|
||||||
|
fd.append("session_id", SESSION);
|
||||||
|
|
||||||
fetch(CHAT_URL, {
|
fetch(CHAT_URL, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
body: fd,
|
||||||
body: JSON.stringify({
|
|
||||||
message: text,
|
|
||||||
session_id: SESSION,
|
|
||||||
}),
|
|
||||||
})
|
})
|
||||||
.then(function (r) {
|
.then(function (r) {
|
||||||
var ct = r.headers.get("content-type") || "";
|
var ct = r.headers.get("content-type") || "";
|
||||||
|
|||||||
Reference in New Issue
Block a user