feat: isolate BossAI website with Next.js
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# BossAI Website
|
||||
|
||||
Standalone public website for BossAI.
|
||||
|
||||
## Stack
|
||||
|
||||
- Next.js 16 App Router
|
||||
- React 19
|
||||
- TypeScript
|
||||
- Tailwind CSS 4
|
||||
- Custom SVG and CSS motion, no animation runtime dependency
|
||||
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev
|
||||
npm run typecheck
|
||||
npm run build
|
||||
```
|
||||
|
||||
The Rust/Vite management console stays in the repository root. This folder is the isolated marketing website.
|
||||
@@ -0,0 +1,834 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
:root {
|
||||
--ink: #07110f;
|
||||
--ink-soft: #101d19;
|
||||
--panel: rgba(13, 25, 22, 0.82);
|
||||
--line: rgba(231, 255, 219, 0.16);
|
||||
--line-strong: rgba(215, 255, 77, 0.38);
|
||||
--text: #f8fff4;
|
||||
--muted: rgba(237, 249, 232, 0.68);
|
||||
--faint: rgba(237, 249, 232, 0.44);
|
||||
--acid: #d7ff4d;
|
||||
--acid-2: #a5ff5f;
|
||||
--ice: #e9f7ff;
|
||||
--blue: #8bf6ff;
|
||||
--radius: 24px;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
background: var(--ink);
|
||||
color: var(--text);
|
||||
font-family: var(--font-geist), "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
text-rendering: geometricPrecision;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
button,
|
||||
a {
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: rgba(215, 255, 77, 0.28);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.site-shell {
|
||||
position: relative;
|
||||
min-height: 100dvh;
|
||||
overflow: hidden;
|
||||
background:
|
||||
radial-gradient(circle at 8% 18%, rgba(215, 255, 77, 0.16), transparent 28%),
|
||||
radial-gradient(circle at 88% 8%, rgba(139, 246, 255, 0.12), transparent 30%),
|
||||
linear-gradient(145deg, #040807 0%, #08110f 42%, #13221d 100%);
|
||||
}
|
||||
|
||||
.site-shell::before {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
content: "";
|
||||
background:
|
||||
linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
|
||||
background-size: 82px 82px;
|
||||
mask-image: linear-gradient(to bottom, black, transparent 78%);
|
||||
}
|
||||
|
||||
.site-noise {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0.24;
|
||||
background-image:
|
||||
repeating-radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 4px);
|
||||
mix-blend-mode: overlay;
|
||||
}
|
||||
|
||||
.site-nav,
|
||||
.hero-section,
|
||||
.platform-section,
|
||||
.workflow-section,
|
||||
.factory-section,
|
||||
.deploy-section,
|
||||
.final-section {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: min(1180px, calc(100% - 40px));
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
min-height: 88px;
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
align-items: center;
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
.brand-mark,
|
||||
.nav-links,
|
||||
.nav-actions,
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
gap: 12px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.brand-mark img {
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 12px 34px rgba(215, 255, 77, 0.14);
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
justify-content: center;
|
||||
gap: 30px;
|
||||
color: var(--faint);
|
||||
font-size: 13px;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
transition: color 180ms ease;
|
||||
}
|
||||
|
||||
.nav-links a:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.nav-actions {
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.ghost-link,
|
||||
.solid-link,
|
||||
.primary-cta,
|
||||
.secondary-cta {
|
||||
min-height: 42px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 999px;
|
||||
padding-inline: 18px;
|
||||
border: 1px solid transparent;
|
||||
font-size: 13px;
|
||||
font-weight: 760;
|
||||
white-space: nowrap;
|
||||
transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
|
||||
}
|
||||
|
||||
.ghost-link,
|
||||
.secondary-cta {
|
||||
border-color: var(--line);
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.solid-link,
|
||||
.primary-cta {
|
||||
background: var(--acid);
|
||||
color: #07110f;
|
||||
box-shadow: 0 22px 48px rgba(215, 255, 77, 0.16);
|
||||
}
|
||||
|
||||
.ghost-link:hover,
|
||||
.solid-link:hover,
|
||||
.primary-cta:hover,
|
||||
.secondary-cta:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.ghost-link:hover,
|
||||
.secondary-cta:hover {
|
||||
border-color: var(--line-strong);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
min-height: calc(100dvh - 88px);
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
|
||||
align-items: start;
|
||||
gap: 52px;
|
||||
padding: clamp(72px, 10vh, 112px) 0 88px;
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
display: grid;
|
||||
gap: 24px;
|
||||
align-content: center;
|
||||
}
|
||||
|
||||
.section-kicker {
|
||||
width: fit-content;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
color: var(--muted);
|
||||
padding: 8px 12px;
|
||||
font-size: 12px;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.pulse-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 999px;
|
||||
background: var(--acid);
|
||||
box-shadow: 0 0 0 0 rgba(215, 255, 77, 0.55);
|
||||
animation: pulse-dot 2.4s ease-out infinite;
|
||||
}
|
||||
|
||||
.hero-copy h1 {
|
||||
max-width: 780px;
|
||||
margin: 0;
|
||||
font-size: clamp(48px, 7vw, 92px);
|
||||
line-height: 0.9;
|
||||
letter-spacing: -0.07em;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.hero-copy h1 span {
|
||||
display: block;
|
||||
color: var(--acid);
|
||||
}
|
||||
|
||||
.hero-copy p {
|
||||
max-width: 60ch;
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 16px;
|
||||
line-height: 1.85;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
gap: 12px;
|
||||
padding-top: 4px;
|
||||
}
|
||||
|
||||
.primary-cta,
|
||||
.secondary-cta {
|
||||
min-height: 48px;
|
||||
padding-inline: 22px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.hero-console {
|
||||
position: relative;
|
||||
margin-top: 14px;
|
||||
min-height: 500px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 32px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
|
||||
rgba(10, 20, 18, 0.84);
|
||||
padding: 18px;
|
||||
overflow: hidden;
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.16),
|
||||
0 34px 90px rgba(0, 0, 0, 0.36);
|
||||
}
|
||||
|
||||
.console-orbit {
|
||||
position: absolute;
|
||||
width: 420px;
|
||||
height: 420px;
|
||||
right: -120px;
|
||||
top: -130px;
|
||||
border: 1px solid rgba(215, 255, 77, 0.12);
|
||||
border-radius: 999px;
|
||||
background: radial-gradient(circle, rgba(215, 255, 77, 0.12), transparent 60%);
|
||||
animation: slow-spin 24s linear infinite;
|
||||
}
|
||||
|
||||
.console-orbit::after {
|
||||
position: absolute;
|
||||
width: 11px;
|
||||
height: 11px;
|
||||
top: 64px;
|
||||
left: 76px;
|
||||
border-radius: 999px;
|
||||
content: "";
|
||||
background: var(--acid);
|
||||
box-shadow: 0 0 30px rgba(215, 255, 77, 0.58);
|
||||
}
|
||||
|
||||
.console-bar,
|
||||
.route-row,
|
||||
.mini-grid > div,
|
||||
.node-card,
|
||||
.deploy-stack > div {
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.console-bar {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
min-height: 54px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
border-radius: 18px;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.console-bar span,
|
||||
.route-row em,
|
||||
.mini-grid span,
|
||||
.node-card span,
|
||||
.deploy-stack small {
|
||||
color: var(--faint);
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.route-list {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.route-row {
|
||||
min-height: 58px;
|
||||
display: grid;
|
||||
grid-template-columns: 78px 1fr auto;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
border-radius: 18px;
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
.route-row span {
|
||||
color: var(--blue);
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.route-row[data-tone="hot"] span {
|
||||
color: #ffec99;
|
||||
}
|
||||
|
||||
.route-row[data-tone="lime"] span {
|
||||
color: var(--acid);
|
||||
}
|
||||
|
||||
.route-row[data-tone="blue"] span {
|
||||
color: var(--blue);
|
||||
}
|
||||
|
||||
.route-row strong,
|
||||
.mini-grid strong,
|
||||
.node-card strong,
|
||||
.deploy-stack strong {
|
||||
font-weight: 780;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.mini-grid {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.mini-grid > div {
|
||||
min-height: 88px;
|
||||
display: grid;
|
||||
align-content: end;
|
||||
gap: 8px;
|
||||
border-radius: 18px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.flow-glyph {
|
||||
position: absolute;
|
||||
right: -22px;
|
||||
bottom: -8px;
|
||||
width: 92%;
|
||||
max-width: 520px;
|
||||
opacity: 0.68;
|
||||
}
|
||||
|
||||
.flow-line {
|
||||
fill: none;
|
||||
stroke: url("#lineGradient");
|
||||
stroke-width: 2.5;
|
||||
stroke-linecap: round;
|
||||
stroke-dasharray: 12 18;
|
||||
animation: flow-dash 8s linear infinite;
|
||||
}
|
||||
|
||||
.flow-line-b {
|
||||
animation-duration: 10s;
|
||||
opacity: 0.62;
|
||||
}
|
||||
|
||||
.flow-line-c {
|
||||
animation-duration: 7s;
|
||||
opacity: 0.48;
|
||||
}
|
||||
|
||||
.flow-dot {
|
||||
fill: var(--acid);
|
||||
}
|
||||
|
||||
.dot-b {
|
||||
fill: var(--blue);
|
||||
}
|
||||
|
||||
.node {
|
||||
fill: rgba(255, 255, 255, 0.04);
|
||||
stroke: rgba(215, 255, 77, 0.22);
|
||||
animation: node-float 5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.node-b {
|
||||
animation-delay: -1.5s;
|
||||
}
|
||||
|
||||
.node-c {
|
||||
animation-delay: -2.5s;
|
||||
}
|
||||
|
||||
.platform-section,
|
||||
.workflow-section,
|
||||
.factory-section,
|
||||
.deploy-section,
|
||||
.final-section {
|
||||
padding-block: 72px;
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.section-heading span,
|
||||
.factory-copy span,
|
||||
.deploy-section > div:first-child > span {
|
||||
color: var(--acid);
|
||||
font-family: var(--font-geist-mono), monospace;
|
||||
font-size: 12px;
|
||||
font-weight: 760;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.section-heading h2,
|
||||
.workflow-panel h2,
|
||||
.factory-copy h2,
|
||||
.deploy-section h2,
|
||||
.final-section h2 {
|
||||
max-width: 800px;
|
||||
margin: 0;
|
||||
font-size: clamp(32px, 4.8vw, 62px);
|
||||
line-height: 1;
|
||||
letter-spacing: -0.055em;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.capability-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.capability-card {
|
||||
min-height: 260px;
|
||||
display: grid;
|
||||
align-content: space-between;
|
||||
gap: 24px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
|
||||
rgba(255, 255, 255, 0.025);
|
||||
padding: 20px;
|
||||
animation: card-rise 700ms ease both;
|
||||
animation-delay: calc(var(--index) * 80ms);
|
||||
}
|
||||
|
||||
.card-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.card-top span {
|
||||
color: var(--faint);
|
||||
font-family: var(--font-geist-mono), monospace;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.card-top strong {
|
||||
color: var(--acid);
|
||||
font-family: var(--font-geist-mono), monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.capability-card h3 {
|
||||
margin: 0 0 12px;
|
||||
font-size: 22px;
|
||||
letter-spacing: -0.04em;
|
||||
}
|
||||
|
||||
.capability-card p,
|
||||
.workflow-panel p,
|
||||
.factory-copy p,
|
||||
.deploy-section p,
|
||||
.final-section p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.workflow-section {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
|
||||
gap: 18px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.workflow-panel,
|
||||
.node-board,
|
||||
.factory-section,
|
||||
.deploy-section,
|
||||
.final-section {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 32px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
|
||||
rgba(255, 255, 255, 0.025);
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.workflow-panel {
|
||||
padding: 34px;
|
||||
}
|
||||
|
||||
.mode-list {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
margin-top: 26px;
|
||||
}
|
||||
|
||||
.mode-list div {
|
||||
min-height: 50px;
|
||||
display: grid;
|
||||
grid-template-columns: 120px 1fr;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.mode-list code {
|
||||
color: var(--acid);
|
||||
font-family: var(--font-geist-mono), monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.mode-list span {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.node-board {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.node-card {
|
||||
min-height: 134px;
|
||||
display: grid;
|
||||
align-content: end;
|
||||
gap: 8px;
|
||||
border-radius: 22px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.node-card.wide {
|
||||
grid-column: 1 / -1;
|
||||
min-height: 156px;
|
||||
background:
|
||||
radial-gradient(circle at 80% 0%, rgba(215, 255, 77, 0.18), transparent 36%),
|
||||
rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.factory-section {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
|
||||
gap: 24px;
|
||||
align-items: center;
|
||||
padding: 34px;
|
||||
}
|
||||
|
||||
.module-strip {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.module-strip span {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
color: var(--muted);
|
||||
padding: 11px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.deploy-section {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.72fr);
|
||||
gap: 24px;
|
||||
align-items: end;
|
||||
padding: 34px;
|
||||
}
|
||||
|
||||
.deploy-stack {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.deploy-stack > div {
|
||||
min-height: 76px;
|
||||
display: grid;
|
||||
align-content: center;
|
||||
gap: 8px;
|
||||
border-radius: 20px;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.final-section {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 18px;
|
||||
margin-bottom: 42px;
|
||||
padding: 54px 24px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.final-section p {
|
||||
max-width: 58ch;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.site-nav {
|
||||
grid-template-columns: auto auto;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hero-section,
|
||||
.workflow-section,
|
||||
.factory-section,
|
||||
.deploy-section {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
min-height: auto;
|
||||
padding-top: 36px;
|
||||
}
|
||||
|
||||
.capability-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.site-nav,
|
||||
.hero-section,
|
||||
.platform-section,
|
||||
.workflow-section,
|
||||
.factory-section,
|
||||
.deploy-section,
|
||||
.final-section {
|
||||
width: min(100% - 28px, 1180px);
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
min-height: 74px;
|
||||
}
|
||||
|
||||
.brand-mark img {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
.ghost-link {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.solid-link {
|
||||
min-height: 38px;
|
||||
padding-inline: 14px;
|
||||
}
|
||||
|
||||
.hero-copy h1 {
|
||||
font-size: clamp(42px, 15vw, 64px);
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.hero-console {
|
||||
min-height: 390px;
|
||||
border-radius: 26px;
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.route-row {
|
||||
grid-template-columns: 1fr;
|
||||
align-items: start;
|
||||
gap: 6px;
|
||||
min-height: 72px;
|
||||
padding-block: 12px;
|
||||
}
|
||||
|
||||
.route-row em {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.flow-glyph {
|
||||
width: 118%;
|
||||
right: -44px;
|
||||
bottom: -22px;
|
||||
}
|
||||
|
||||
.mini-grid,
|
||||
.capability-grid,
|
||||
.node-board {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.workflow-panel,
|
||||
.factory-section,
|
||||
.deploy-section {
|
||||
padding: 22px;
|
||||
border-radius: 26px;
|
||||
}
|
||||
|
||||
.mode-list div {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 4px;
|
||||
padding-block: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
scroll-behavior: auto !important;
|
||||
animation-duration: 1ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 1ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes pulse-dot {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgba(215, 255, 77, 0.55);
|
||||
}
|
||||
70% {
|
||||
box-shadow: 0 0 0 10px rgba(215, 255, 77, 0);
|
||||
}
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 rgba(215, 255, 77, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes slow-spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes flow-dash {
|
||||
to {
|
||||
stroke-dashoffset: -220;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes node-float {
|
||||
0%,
|
||||
100% {
|
||||
transform: translateY(0);
|
||||
}
|
||||
50% {
|
||||
transform: translateY(-8px);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes card-rise {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(16px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
import type { Metadata, Viewport } from "next";
|
||||
import { Geist, Geist_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
|
||||
const geist = Geist({
|
||||
variable: "--font-geist",
|
||||
subsets: ["latin"],
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
const geistMono = Geist_Mono({
|
||||
variable: "--font-geist-mono",
|
||||
subsets: ["latin"],
|
||||
display: "swap",
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "BossAI | 聚合多模型多模态的 AI 应用平台",
|
||||
description:
|
||||
"BossAI 聚合 API 网关、模型路由、Comfy 工作流、短视频工厂和数字人生产,让团队统一管理多模型多模态 AI 应用。",
|
||||
applicationName: "BossAI",
|
||||
icons: {
|
||||
icon: "/favicon.png",
|
||||
shortcut: "/favicon-64.png",
|
||||
},
|
||||
openGraph: {
|
||||
title: "BossAI | 聚合多模型多模态的 AI 应用平台",
|
||||
description:
|
||||
"统一 API 网关、智能路由、工作流画布和创作应用,让团队管理对话、生图、视频和数字人生产。",
|
||||
type: "website",
|
||||
locale: "zh_CN",
|
||||
},
|
||||
};
|
||||
|
||||
export const viewport: Viewport = {
|
||||
width: "device-width",
|
||||
initialScale: 1,
|
||||
colorScheme: "dark",
|
||||
themeColor: "#07110f",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="zh-CN">
|
||||
<body className={`${geist.variable} ${geistMono.variable}`}>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,284 @@
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
|
||||
const platformItems = [
|
||||
{
|
||||
title: "统一 API 网关",
|
||||
eyebrow: "Gateway",
|
||||
body: "OpenAI、Claude Messages、Gemini、方舟、图像和视频接口统一到一套下游协议。",
|
||||
metric: "/v1",
|
||||
},
|
||||
{
|
||||
title: "智能模型路由",
|
||||
eyebrow: "Routing",
|
||||
body: "按站点、账号、令牌、模型和失败冷却自动调度,保留真实日志和计费链路。",
|
||||
metric: "Auto",
|
||||
},
|
||||
{
|
||||
title: "Comfy 工作流",
|
||||
eyebrow: "Workflow",
|
||||
body: "使用熟悉的 ComfyUI 前端,接入 Cloud、RunningHub、External 或 BoosAPI 执行器。",
|
||||
metric: "Canvas",
|
||||
},
|
||||
{
|
||||
title: "创作应用生产",
|
||||
eyebrow: "Studio",
|
||||
body: "生图助手、视频助手、数字人、短视频工厂和工作空间复用同一套模型能力。",
|
||||
metric: "Media",
|
||||
},
|
||||
];
|
||||
|
||||
const routes = [
|
||||
{ type: "Chat", model: "gpt-5.4", state: "已路由", tone: "hot" },
|
||||
{ type: "Image", model: "gpt-image-2", state: "生成中", tone: "lime" },
|
||||
{ type: "Video", model: "seedance", state: "排队中", tone: "blue" },
|
||||
{ type: "Claude", model: "/v1/messages", state: "流式", tone: "white" },
|
||||
];
|
||||
|
||||
const workflowModes = [
|
||||
["cloud", "Comfy Cloud API 后端"],
|
||||
["runninghub", "RunningHub API 后端"],
|
||||
["external", "外部完整版 ComfyUI"],
|
||||
["boosapi", "Rust API-native 执行器"],
|
||||
];
|
||||
|
||||
const productionModules = [
|
||||
"模型广场",
|
||||
"使用日志",
|
||||
"工作空间",
|
||||
"数字人",
|
||||
"短视频工厂",
|
||||
"站点公告",
|
||||
"下游密钥",
|
||||
"PostgreSQL",
|
||||
];
|
||||
|
||||
function FlowGlyph() {
|
||||
return (
|
||||
<svg className="flow-glyph" viewBox="0 0 520 360" role="img" aria-label="BossAI 工作流动态图形">
|
||||
<defs>
|
||||
<linearGradient id="lineGradient" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0%" stopColor="#D7FF4D" />
|
||||
<stop offset="55%" stopColor="#8BF6FF" />
|
||||
<stop offset="100%" stopColor="#FFFFFF" />
|
||||
</linearGradient>
|
||||
<filter id="softGlow" x="-30%" y="-30%" width="160%" height="160%">
|
||||
<feGaussianBlur stdDeviation="6" result="blur" />
|
||||
<feMerge>
|
||||
<feMergeNode in="blur" />
|
||||
<feMergeNode in="SourceGraphic" />
|
||||
</feMerge>
|
||||
</filter>
|
||||
</defs>
|
||||
<path className="flow-line flow-line-a" d="M48 180 C130 62 232 62 314 180 S438 298 488 154" />
|
||||
<path className="flow-line flow-line-b" d="M58 236 C154 318 222 286 274 184 S358 24 462 92" />
|
||||
<path className="flow-line flow-line-c" d="M92 108 C178 164 214 180 260 180 S330 174 424 250" />
|
||||
<g filter="url(#softGlow)">
|
||||
<circle className="flow-dot dot-a" cx="48" cy="180" r="7" />
|
||||
<circle className="flow-dot dot-b" cx="260" cy="180" r="9" />
|
||||
<circle className="flow-dot dot-c" cx="488" cy="154" r="7" />
|
||||
</g>
|
||||
<rect className="node node-a" x="72" y="58" width="128" height="68" rx="18" />
|
||||
<rect className="node node-b" x="242" y="146" width="140" height="76" rx="20" />
|
||||
<rect className="node node-c" x="352" y="248" width="120" height="62" rx="17" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
function HeroConsole() {
|
||||
return (
|
||||
<div className="hero-console" aria-label="BossAI 路由状态预览">
|
||||
<div className="console-orbit" />
|
||||
<div className="console-bar">
|
||||
<span>Unified Gateway</span>
|
||||
<strong>路由在线</strong>
|
||||
</div>
|
||||
<div className="route-list">
|
||||
{routes.map((route) => (
|
||||
<div className="route-row" data-tone={route.tone} key={route.type}>
|
||||
<span>{route.type}</span>
|
||||
<strong>{route.model}</strong>
|
||||
<em>{route.state}</em>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div className="mini-grid">
|
||||
<div>
|
||||
<span>Workspace</span>
|
||||
<strong>只归档产出</strong>
|
||||
</div>
|
||||
<div>
|
||||
<span>Billing</span>
|
||||
<strong>日志计费</strong>
|
||||
</div>
|
||||
</div>
|
||||
<FlowGlyph />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<main className="site-shell">
|
||||
<div className="site-noise" aria-hidden="true" />
|
||||
<header className="site-nav">
|
||||
<Link className="brand-mark" href="/" aria-label="BossAI 首页">
|
||||
<Image src="/logo.png" width={38} height={38} alt="" priority />
|
||||
<span>BossAI</span>
|
||||
</Link>
|
||||
<nav className="nav-links" aria-label="官网导航">
|
||||
<a href="#platform">平台能力</a>
|
||||
<a href="#workflow">工作流</a>
|
||||
<a href="#factory">短视频工厂</a>
|
||||
<a href="#deploy">部署</a>
|
||||
</nav>
|
||||
<div className="nav-actions">
|
||||
<Link className="ghost-link" href="/user/login">
|
||||
用户登录
|
||||
</Link>
|
||||
<Link className="solid-link" href="/boos">
|
||||
进入后台
|
||||
</Link>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section className="hero-section">
|
||||
<div className="hero-copy">
|
||||
<div className="section-kicker">
|
||||
<span className="pulse-dot" />
|
||||
多模型 · 多模态 · 工作流
|
||||
</div>
|
||||
<h1>
|
||||
聚合多模型
|
||||
<span>多模态的 AI 应用平台</span>
|
||||
</h1>
|
||||
<p>
|
||||
BossAI 把统一 API 网关、智能路由、Comfy 工作流、数字人和短视频工厂收进一个清晰后台,让团队专注生产,而不是到处切系统。
|
||||
</p>
|
||||
<div className="hero-actions">
|
||||
<Link className="primary-cta" href="/user/register">
|
||||
开始使用
|
||||
</Link>
|
||||
<Link className="secondary-cta" href="#workflow">
|
||||
查看工作流
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
<HeroConsole />
|
||||
</section>
|
||||
|
||||
<section id="platform" className="platform-section">
|
||||
<div className="section-heading">
|
||||
<span>Platform</span>
|
||||
<h2>一套后台,接住 API、工作流和创作应用</h2>
|
||||
</div>
|
||||
<div className="capability-grid">
|
||||
{platformItems.map((item, index) => (
|
||||
<article className="capability-card" key={item.title} style={{ ["--index" as string]: index }}>
|
||||
<div className="card-top">
|
||||
<span>{item.eyebrow}</span>
|
||||
<strong>{item.metric}</strong>
|
||||
</div>
|
||||
<h3>{item.title}</h3>
|
||||
<p>{item.body}</p>
|
||||
</article>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="workflow" className="workflow-section">
|
||||
<div className="workflow-panel">
|
||||
<div className="section-heading">
|
||||
<span>Workflow</span>
|
||||
<h2>使用完整版 ComfyUI 前端,后端按你的模式切换</h2>
|
||||
</div>
|
||||
<p>
|
||||
官网和管理台隔离后,Workflow 继续作为产品内能力维护。BossAI 可以代理官方 Cloud、RunningHub、外部 ComfyUI,也能执行 API-native 节点。
|
||||
</p>
|
||||
<div className="mode-list">
|
||||
{workflowModes.map(([key, label]) => (
|
||||
<div key={key}>
|
||||
<code>{key}</code>
|
||||
<span>{label}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div className="node-board" aria-label="工作流节点预览">
|
||||
<div className="node-card wide">
|
||||
<span>Prompt</span>
|
||||
<strong>文案、角色、镜头、商品信息</strong>
|
||||
</div>
|
||||
<div className="node-card">
|
||||
<span>Image</span>
|
||||
<strong>生图</strong>
|
||||
</div>
|
||||
<div className="node-card">
|
||||
<span>Video</span>
|
||||
<strong>视频</strong>
|
||||
</div>
|
||||
<div className="node-card">
|
||||
<span>Voice</span>
|
||||
<strong>TTS</strong>
|
||||
</div>
|
||||
<div className="node-card">
|
||||
<span>Archive</span>
|
||||
<strong>工作空间</strong>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="factory" className="factory-section">
|
||||
<div className="factory-copy">
|
||||
<span>Creation OS</span>
|
||||
<h2>从提示词到短视频,从素材到数字人</h2>
|
||||
<p>
|
||||
生图助手、视频助手和短视频工厂共享 BoosAPI 模型路由。产出文件自动归档,用户之间隔离,管理员可查看团队级用量与成本。
|
||||
</p>
|
||||
</div>
|
||||
<div className="module-strip">
|
||||
{productionModules.map((module) => (
|
||||
<span key={module}>{module}</span>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="deploy" className="deploy-section">
|
||||
<div>
|
||||
<span>Deploy</span>
|
||||
<h2>远程模型优先,本机不必有 GPU</h2>
|
||||
<p>
|
||||
当图像、视频、语音走上游 API、Comfy Cloud 或 RunningHub 时,BossAI 服务器只负责网关、鉴权、数据库、日志和 Workflow UI 代理。
|
||||
</p>
|
||||
</div>
|
||||
<div className="deploy-stack">
|
||||
<div>
|
||||
<small>Backend</small>
|
||||
<strong>Rust 二进制</strong>
|
||||
</div>
|
||||
<div>
|
||||
<small>Database</small>
|
||||
<strong>SQLite / PostgreSQL</strong>
|
||||
</div>
|
||||
<div>
|
||||
<small>Website</small>
|
||||
<strong>Next.js 独立部署</strong>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="final-section">
|
||||
<h2>把模型、工作流和创作应用收进一个平台</h2>
|
||||
<p>适合自建 AI 中转、团队模型管理、多模态创作和商业化用户面板。</p>
|
||||
<div className="hero-actions">
|
||||
<Link className="primary-cta" href="/user/register">
|
||||
开始使用
|
||||
</Link>
|
||||
<Link className="secondary-cta" href="/boos">
|
||||
进入后台
|
||||
</Link>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
/// <reference types="next" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
import "./.next/types/routes.d.ts";
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
||||
@@ -0,0 +1,29 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
const backendUrl = process.env.BOSSAI_BACKEND_URL || "http://127.0.0.1:4000";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
poweredByHeader: false,
|
||||
turbopack: {
|
||||
root: __dirname,
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
{ source: "/boos", destination: `${backendUrl}/boos` },
|
||||
{ source: "/user/:path*", destination: `${backendUrl}/user/:path*` },
|
||||
{ source: "/api/:path*", destination: `${backendUrl}/api/:path*` },
|
||||
{ source: "/v1/:path*", destination: `${backendUrl}/v1/:path*` },
|
||||
{ source: "/assets/:path*", destination: `${backendUrl}/assets/:path*` },
|
||||
{ source: "/workflow-ui/:path*", destination: `${backendUrl}/workflow-ui/:path*` },
|
||||
{ source: "/comfyui/:path*", destination: `${backendUrl}/comfyui/:path*` },
|
||||
{ source: "/monitor-proxy/:path*", destination: `${backendUrl}/monitor-proxy/:path*` },
|
||||
{ source: "/oauth/:path*", destination: `${backendUrl}/oauth/:path*` },
|
||||
{ source: "/health", destination: `${backendUrl}/health` },
|
||||
{ source: "/ready", destination: `${backendUrl}/ready` },
|
||||
{ source: "/metrics", destination: `${backendUrl}/metrics` },
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Generated
+1817
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "bossai-website",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"description": "Standalone BossAI public website built with Next.js App Router.",
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"next": "16.2.7",
|
||||
"react": "19.2.7",
|
||||
"react-dom": "19.2.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/postcss": "4.3.0",
|
||||
"@types/node": "^22.10.1",
|
||||
"@types/react": "^19.2.7",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"tailwindcss": "4.3.0",
|
||||
"typescript": "^6.0.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.0.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
const config = {
|
||||
plugins: {
|
||||
"@tailwindcss/postcss": {},
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"es2022"
|
||||
],
|
||||
"allowJs": false,
|
||||
"skipLibCheck": true,
|
||||
"strict": true,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "react-jsx",
|
||||
"incremental": true,
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
}
|
||||
],
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"./*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
".next/types/**/*.ts",
|
||||
".next/dev/types/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user