feat: add landing page for promo

This commit is contained in:
2026-07-09 14:30:22 +08:00
parent 57366ac08f
commit 410a30666c
13 changed files with 3380 additions and 0 deletions
+836
View File
@@ -0,0 +1,836 @@
@import "tailwindcss";
:root {
color-scheme: light;
font-family:
-apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI",
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
background: #f5f7fb;
color: #111827;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
width: 100%;
height: 100%;
min-height: 100%;
overflow: hidden;
}
body {
margin: 0;
background:
radial-gradient(circle at 13% 20%, rgba(171, 199, 255, 0.34), transparent 27%),
radial-gradient(circle at 86% 77%, rgba(214, 226, 255, 0.72), transparent 31%),
linear-gradient(135deg, #fbfcff 0%, #f3f6fb 46%, #edf2fb 100%);
}
button,
a {
font: inherit;
}
button {
border: 0;
}
a {
color: inherit;
text-decoration: none;
}
.landing-shell {
position: relative;
isolation: isolate;
display: grid;
grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
align-items: center;
gap: clamp(24px, 5vw, 84px);
width: 100%;
height: 100dvh;
max-height: 100dvh;
padding: clamp(22px, 4.4vw, 72px);
overflow: hidden;
}
.ambient {
position: absolute;
z-index: -2;
border-radius: 999px;
filter: blur(6px);
pointer-events: none;
}
.ambient-one {
top: 7%;
right: 12%;
width: 32vw;
height: 32vw;
background: radial-gradient(circle, rgba(120, 152, 255, 0.23), transparent 64%);
}
.ambient-two {
left: 23%;
bottom: -18%;
width: 46vw;
height: 46vw;
background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 62%);
}
.hero-copy {
display: flex;
flex-direction: column;
align-items: flex-start;
min-width: 0;
}
.brand {
position: absolute;
top: clamp(22px, 4.4vw, 72px);
left: clamp(22px, 4.4vw, 72px);
z-index: 2;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 11px;
color: #111827;
}
.brand-main {
display: inline-flex;
align-items: center;
gap: 12px;
font-weight: 700;
letter-spacing: -0.03em;
}
.logo-mark {
display: grid;
place-items: center;
width: 46px;
height: 46px;
overflow: hidden;
border-radius: 13px;
}
.logo-mark img {
width: 100%;
height: 100%;
object-fit: contain;
}
.brand-name {
font-size: 18px;
}
.brand-overline {
margin: 0;
color: #5e6f8f;
font-size: clamp(12px, 1.4vw, 14px);
font-weight: 700;
letter-spacing: 0.16em;
text-transform: uppercase;
}
h1 {
max-width: 780px;
margin: 0;
color: #07111f;
font-size: clamp(40px, 5.2vw, 76px);
font-weight: 800;
letter-spacing: -0.045em;
line-height: 1.04;
}
.subtitle {
max-width: 660px;
margin: clamp(16px, 2.6vh, 26px) 0 0;
color: #26354a;
font-size: clamp(19px, 1.9vw, 26px);
font-weight: 650;
letter-spacing: -0.02em;
line-height: 1.25;
}
.intro {
max-width: 590px;
margin: clamp(12px, 2vh, 22px) 0 0;
color: #667287;
font-size: clamp(14px, 1.3vw, 17px);
line-height: 1.78;
}
.cta-row {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 12px;
margin-top: clamp(22px, 4vh, 42px);
}
.download-cta-group {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.platform-note {
color: #768298;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.01em;
line-height: 1.35;
white-space: nowrap;
}
.primary-cta,
.github-cta {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 48px;
border-radius: 999px;
font-size: 15px;
font-weight: 700;
letter-spacing: -0.01em;
transition:
transform 180ms ease,
box-shadow 180ms ease,
background 180ms ease;
}
.primary-cta {
gap: 9px;
padding: 0 22px 0 24px;
color: #fff;
background: #0a84ff;
box-shadow: 0 18px 38px rgba(10, 132, 255, 0.25);
}
.apple-logo {
display: inline-block;
width: 17px;
font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
font-size: 19px;
font-weight: 700;
line-height: 1;
transform: translateY(-1px);
}
.primary-cta svg,
.nav-btn svg {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
.github-cta {
width: 48px;
height: 48px;
color: #1f2937;
background: rgba(255, 255, 255, 0.66);
border: 1px solid rgba(255, 255, 255, 0.86);
box-shadow: 0 15px 34px rgba(54, 69, 98, 0.09);
backdrop-filter: blur(18px);
}
.github-cta svg {
width: 23px;
height: 23px;
fill: currentColor;
}
.primary-cta:hover,
.github-cta:hover,
.nav-btn:hover {
transform: translateY(-2px);
}
.primary-cta:focus-visible,
.github-cta:focus-visible,
.nav-btn:focus-visible,
.dot:focus-visible {
outline: 3px solid rgba(10, 132, 255, 0.32);
outline-offset: 3px;
}
.product-showcase {
display: flex;
flex-direction: column;
justify-content: center;
min-width: 0;
gap: 16px;
}
.device-card {
position: relative;
min-height: clamp(390px, 66vh, 650px);
overflow: hidden;
cursor: grab;
touch-action: pan-y;
border: 1px solid rgba(255, 255, 255, 0.68);
border-radius: clamp(30px, 4vw, 56px);
background:
linear-gradient(145deg, rgba(255, 255, 255, 0.77), rgba(246, 248, 253, 0.48)),
rgba(255, 255, 255, 0.62);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.86),
0 35px 85px rgba(52, 68, 100, 0.18),
0 8px 22px rgba(52, 68, 100, 0.08);
backdrop-filter: blur(28px) saturate(1.18);
}
.device-card:active {
cursor: grabbing;
}
.device-card::before {
content: "";
position: absolute;
inset: 10% 8% auto auto;
width: 48%;
aspect-ratio: 1;
border-radius: 999px;
background: radial-gradient(circle, rgba(10, 132, 255, 0.16), transparent 62%);
}
.window-chrome {
position: absolute;
top: 22px;
left: 24px;
display: flex;
gap: 8px;
}
.window-chrome span {
width: 12px;
height: 12px;
border-radius: 999px;
background: #d8dee9;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.window-chrome span:nth-child(1) {
background: #ff5f57;
}
.window-chrome span:nth-child(2) {
background: #febc2e;
}
.window-chrome span:nth-child(3) {
background: #28c840;
}
.preview-stage {
position: absolute;
inset: 74px clamp(22px, 4vw, 52px) 154px;
display: grid;
place-items: center;
border-radius: 34px;
background:
linear-gradient(rgba(16, 24, 40, 0.045) 1px, transparent 1px),
linear-gradient(90deg, rgba(16, 24, 40, 0.045) 1px, transparent 1px),
linear-gradient(155deg, rgba(244, 247, 252, 0.82), rgba(255, 255, 255, 0.62));
background-size: 34px 34px, 34px 34px, auto;
}
.capture-frame {
position: relative;
width: min(72%, 430px);
aspect-ratio: 1.34;
border: 2px solid rgba(10, 132, 255, 0.68);
border-radius: 24px;
background:
radial-gradient(circle at 25% 28%, rgba(10, 132, 255, 0.14), transparent 27%),
linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 241, 253, 0.7));
box-shadow:
0 24px 70px rgba(43, 78, 130, 0.18),
inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.corner {
position: absolute;
width: 21px;
height: 21px;
border-color: #0a84ff;
}
.top-left {
top: -7px;
left: -7px;
border-top: 4px solid;
border-left: 4px solid;
border-radius: 8px 0 0;
}
.top-right {
top: -7px;
right: -7px;
border-top: 4px solid;
border-right: 4px solid;
border-radius: 0 8px 0 0;
}
.bottom-left {
bottom: -7px;
left: -7px;
border-bottom: 4px solid;
border-left: 4px solid;
border-radius: 0 0 0 8px;
}
.bottom-right {
right: -7px;
bottom: -7px;
border-right: 4px solid;
border-bottom: 4px solid;
border-radius: 0 0 8px;
}
.preview-card {
position: absolute;
width: min(250px, 58vw);
padding: 14px 16px;
border: 1px solid rgba(255, 255, 255, 0.78);
border-radius: 18px;
background: rgba(255, 255, 255, 0.78);
box-shadow: 0 22px 46px rgba(49, 62, 91, 0.16);
backdrop-filter: blur(18px);
}
.preview-card span {
display: block;
margin-bottom: 5px;
color: #7a8799;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.preview-card strong {
display: block;
overflow: hidden;
color: #142033;
font-size: 13px;
letter-spacing: -0.02em;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-one {
top: 22%;
left: -18%;
animation: float-card 5.2s ease-in-out infinite;
}
.card-two {
right: -16%;
bottom: 16%;
animation: float-card 5.2s ease-in-out 0.7s infinite;
}
.slide-panel {
position: absolute;
right: clamp(22px, 4vw, 52px);
bottom: 34px;
left: clamp(22px, 4vw, 52px);
min-height: 92px;
animation: fade-slide 260ms ease both;
}
.slide-panel p {
margin: 0 0 7px;
color: #0a84ff;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.slide-panel h2 {
margin: 0;
color: #0b1524;
font-size: clamp(27px, 3vw, 42px);
font-weight: 780;
letter-spacing: -0.055em;
line-height: 1;
}
.slide-panel span {
display: block;
max-width: 620px;
margin-top: 10px;
color: #657186;
font-size: 15px;
line-height: 1.58;
}
.carousel-bar {
display: grid;
grid-template-columns: 48px minmax(0, 1fr) auto 48px;
align-items: center;
gap: 12px;
padding: 10px;
border: 1px solid rgba(255, 255, 255, 0.72);
border-radius: 999px;
background: rgba(255, 255, 255, 0.58);
box-shadow: 0 18px 42px rgba(52, 68, 100, 0.1);
backdrop-filter: blur(22px);
}
.nav-btn {
display: grid;
place-items: center;
width: 48px;
height: 48px;
color: #1f2937;
cursor: pointer;
border-radius: 999px;
background: rgba(255, 255, 255, 0.78);
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
transition:
transform 180ms ease,
background 180ms ease;
}
.slide-meta {
display: flex;
min-width: 0;
align-items: baseline;
gap: 10px;
padding-left: 4px;
}
.slide-meta strong {
color: #0a1220;
font-size: 20px;
letter-spacing: -0.04em;
}
.slide-meta span {
overflow: hidden;
color: #667287;
font-size: 13px;
font-weight: 600;
text-overflow: ellipsis;
white-space: nowrap;
}
.dots {
display: flex;
align-items: center;
gap: 7px;
}
.dot {
width: 8px;
height: 8px;
padding: 0;
cursor: pointer;
border-radius: 999px;
background: rgba(106, 119, 140, 0.32);
transition:
width 180ms ease,
background 180ms ease;
}
.dot.is-active {
width: 24px;
background: #0a84ff;
}
@keyframes float-card {
0%,
100% {
transform: translate3d(0, 0, 0);
}
50% {
transform: translate3d(0, -10px, 0);
}
}
@keyframes fade-slide {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 860px) {
.landing-shell {
grid-template-columns: 1fr;
grid-template-rows: auto minmax(0, 1fr);
gap: 18px;
padding: 124px 18px 18px;
}
.hero-copy {
align-items: center;
text-align: center;
}
.brand {
top: 18px;
left: 18px;
}
h1 {
max-width: 620px;
font-size: clamp(38px, 8.4vw, 60px);
}
.subtitle {
max-width: 560px;
margin-top: 12px;
font-size: clamp(17px, 4vw, 22px);
}
.intro {
max-width: 620px;
margin-top: 9px;
font-size: 13px;
line-height: 1.55;
}
.cta-row {
justify-content: center;
margin-top: 16px;
}
.product-showcase {
min-height: 0;
}
.device-card {
min-height: 0;
height: 100%;
max-height: 48vh;
border-radius: 32px;
}
.preview-stage {
inset: 52px 18px 118px;
border-radius: 24px;
}
.capture-frame {
width: min(66%, 380px);
}
.slide-panel {
right: 22px;
bottom: 22px;
left: 22px;
min-height: 72px;
}
.slide-panel h2 {
font-size: 25px;
}
.slide-panel span {
margin-top: 6px;
font-size: 13px;
line-height: 1.45;
}
}
@media (max-width: 560px) {
.landing-shell {
padding: 114px 14px 14px;
gap: 12px;
}
.brand {
top: 14px;
left: 14px;
}
.logo-mark {
width: 40px;
height: 40px;
border-radius: 13px;
}
.brand-name {
font-size: 16px;
}
.brand-overline {
font-size: 11px;
}
h1 {
font-size: clamp(34px, 10vw, 46px);
}
.subtitle {
font-size: 17px;
}
.intro {
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.primary-cta,
.github-cta {
min-height: 44px;
font-size: 14px;
}
.primary-cta {
padding-inline: 18px;
}
.github-cta {
width: 44px;
height: 44px;
}
.platform-note {
font-size: 11px;
}
.device-card {
max-height: 42vh;
}
.window-chrome {
top: 17px;
left: 18px;
}
.preview-stage {
inset: 46px 14px 112px;
background-size: 28px 28px, 28px 28px, auto;
}
.capture-frame {
width: 72%;
border-radius: 18px;
}
.preview-card {
width: 180px;
padding: 11px 12px;
border-radius: 14px;
}
.preview-card strong {
font-size: 11px;
}
.card-one {
left: -22%;
}
.card-two {
right: -22%;
}
.slide-panel h2 {
font-size: 22px;
}
.slide-panel span {
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.carousel-bar {
grid-template-columns: 42px minmax(0, 1fr) 42px;
border-radius: 28px;
}
.dots {
display: none;
}
.nav-btn {
width: 42px;
height: 42px;
}
.slide-meta {
flex-direction: column;
align-items: flex-start;
gap: 1px;
}
.slide-meta strong {
font-size: 16px;
}
.slide-meta span {
max-width: 100%;
font-size: 12px;
}
}
@media (max-height: 700px) and (min-width: 861px) {
.landing-shell {
padding-block: 74px 30px;
}
.brand {
top: 30px;
}
h1 {
font-size: clamp(42px, 5vw, 64px);
}
.subtitle {
margin-top: 14px;
}
.intro {
line-height: 1.55;
}
.cta-row {
margin-top: 24px;
}
.device-card {
min-height: 500px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}