feat: add landing page for promo
This commit is contained in:
@@ -0,0 +1,185 @@
|
||||
import { useMemo, useRef, useState } from "react";
|
||||
import logoUrl from "./assets/logo-universal.png";
|
||||
|
||||
const slides = [
|
||||
{
|
||||
eyebrow: "Capture",
|
||||
title: "框选即完成",
|
||||
body: "贴近 macOS 的轻量选区体验,截图、标注、上传在一个动作里自然衔接。",
|
||||
metric: "⌘⇧A",
|
||||
feature: "全局快捷键唤起",
|
||||
},
|
||||
{
|
||||
eyebrow: "Share",
|
||||
title: "链接自动复制",
|
||||
body: "上传到你自己的 S3 兼容对象存储,成功后分享链接已经安静地放进剪贴板。",
|
||||
metric: "0 step",
|
||||
feature: "无需手动找文件",
|
||||
},
|
||||
{
|
||||
eyebrow: "Private",
|
||||
title: "数据留在你的空间",
|
||||
body: "支持自定义 Endpoint、Bucket、Public URL,也可保存到远程主机,适合个人工作流。",
|
||||
metric: "S3 / SSH",
|
||||
feature: "灵活配置存储",
|
||||
},
|
||||
];
|
||||
|
||||
function Logo() {
|
||||
return (
|
||||
<div className="brand" aria-label="SnapGo logo">
|
||||
<div className="brand-main">
|
||||
<span className="logo-mark">
|
||||
<img src={logoUrl} alt="SnapGo" />
|
||||
</span>
|
||||
<span className="brand-name">SnapGo</span>
|
||||
</div>
|
||||
<p className="brand-overline">AI SCREENSHOT UTILITY</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function App() {
|
||||
const [activeSlide, setActiveSlide] = useState(0);
|
||||
const dragStartX = useRef<number | null>(null);
|
||||
const active = slides[activeSlide];
|
||||
|
||||
const accentDots = useMemo(
|
||||
() =>
|
||||
slides.map((slide, index) => (
|
||||
<button
|
||||
key={slide.eyebrow}
|
||||
className={`dot ${index === activeSlide ? "is-active" : ""}`}
|
||||
type="button"
|
||||
aria-label={`查看 ${slide.title}`}
|
||||
onClick={() => setActiveSlide(index)}
|
||||
/>
|
||||
)),
|
||||
[activeSlide],
|
||||
);
|
||||
|
||||
function moveSlide(direction: -1 | 1) {
|
||||
setActiveSlide((current) => (current + direction + slides.length) % slides.length);
|
||||
}
|
||||
|
||||
function handlePointerEnd(clientX: number) {
|
||||
if (dragStartX.current === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
const delta = clientX - dragStartX.current;
|
||||
dragStartX.current = null;
|
||||
if (Math.abs(delta) < 42) {
|
||||
return;
|
||||
}
|
||||
|
||||
moveSlide(delta > 0 ? -1 : 1);
|
||||
}
|
||||
|
||||
return (
|
||||
<main className="landing-shell">
|
||||
<div className="ambient ambient-one" aria-hidden="true" />
|
||||
<div className="ambient ambient-two" aria-hidden="true" />
|
||||
<Logo />
|
||||
|
||||
<section className="hero-copy" aria-labelledby="landing-title">
|
||||
<h1 id="landing-title">AI 时代的截图工具</h1>
|
||||
<p className="subtitle">高效、便捷、专为 AI 交互设计</p>
|
||||
<p className="intro">
|
||||
智能识图,发布链接,提取文本..
|
||||
<br />
|
||||
你能想到的都能一键解决
|
||||
</p>
|
||||
|
||||
<div className="cta-row" aria-label="下载与项目链接">
|
||||
<div className="download-cta-group">
|
||||
<a className="primary-cta" href="https://gitea.mamamiyear.site/mamamiyear/SnapGo">
|
||||
<span className="apple-logo" aria-hidden="true"></span>
|
||||
下载 Mac 应用
|
||||
<svg viewBox="0 0 20 20" aria-hidden="true">
|
||||
<path d="M5 10h9M10.5 6.5 14 10l-3.5 3.5" />
|
||||
</svg>
|
||||
</a>
|
||||
<span className="platform-note">Windows/Linux 版本紧锣密鼓开发中</span>
|
||||
</div>
|
||||
<a
|
||||
className="github-cta"
|
||||
href="https://gitea.mamamiyear.site/mamamiyear/SnapGo"
|
||||
aria-label="查看源码"
|
||||
title="查看源码"
|
||||
>
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path
|
||||
fillRule="evenodd"
|
||||
clipRule="evenodd"
|
||||
d="M12 2C6.48 2 2 6.58 2 12.23c0 4.52 2.87 8.35 6.84 9.7.5.09.68-.22.68-.49 0-.24-.01-.88-.01-1.73-2.78.62-3.37-1.37-3.37-1.37-.45-1.18-1.11-1.5-1.11-1.5-.91-.64.07-.63.07-.63 1 .07 1.53 1.06 1.53 1.06.9 1.57 2.34 1.12 2.91.86.09-.67.35-1.12.64-1.38-2.22-.26-4.56-1.14-4.56-5.06 0-1.12.39-2.03 1.03-2.74-.1-.26-.45-1.3.1-2.7 0 0 .84-.28 2.75 1.05A9.32 9.32 0 0 1 12 6.96c.85 0 1.7.12 2.5.34 1.91-1.33 2.75-1.05 2.75-1.05.55 1.4.2 2.44.1 2.7.64.71 1.03 1.62 1.03 2.74 0 3.93-2.34 4.8-4.57 5.05.36.32.68.94.68 1.9 0 1.38-.01 2.49-.01 2.83 0 .27.18.59.69.49A10.1 10.1 0 0 0 22 12.23C22 6.58 17.52 2 12 2Z"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="product-showcase" aria-label="SnapGo 功能效果展示">
|
||||
<div
|
||||
className="device-card"
|
||||
onPointerDown={(event) => {
|
||||
dragStartX.current = event.clientX;
|
||||
}}
|
||||
onPointerUp={(event) => handlePointerEnd(event.clientX)}
|
||||
onPointerCancel={() => {
|
||||
dragStartX.current = null;
|
||||
}}
|
||||
>
|
||||
<div className="window-chrome" aria-hidden="true">
|
||||
<span />
|
||||
<span />
|
||||
<span />
|
||||
</div>
|
||||
|
||||
<div className="preview-stage">
|
||||
<div className="capture-frame">
|
||||
<span className="corner top-left" />
|
||||
<span className="corner top-right" />
|
||||
<span className="corner bottom-left" />
|
||||
<span className="corner bottom-right" />
|
||||
<div className="preview-card floating-card card-one">
|
||||
<span>Upload</span>
|
||||
<strong>snapgo/2026/capture.png</strong>
|
||||
</div>
|
||||
<div className="preview-card floating-card card-two">
|
||||
<span>Copied</span>
|
||||
<strong>https://cdn.example.com/...</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="slide-panel" key={active.title}>
|
||||
<p>{active.eyebrow}</p>
|
||||
<h2>{active.title}</h2>
|
||||
<span>{active.body}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="carousel-bar">
|
||||
<button type="button" className="nav-btn" aria-label="上一项" onClick={() => moveSlide(-1)}>
|
||||
<svg viewBox="0 0 20 20" aria-hidden="true">
|
||||
<path d="m12 5-5 5 5 5" />
|
||||
</svg>
|
||||
</button>
|
||||
<div className="slide-meta" aria-live="polite">
|
||||
<strong>{active.metric}</strong>
|
||||
<span>{active.feature}</span>
|
||||
</div>
|
||||
<div className="dots" aria-label="轮播分页">
|
||||
{accentDots}
|
||||
</div>
|
||||
<button type="button" className="nav-btn" aria-label="下一项" onClick={() => moveSlide(1)}>
|
||||
<svg viewBox="0 0 20 20" aria-hidden="true">
|
||||
<path d="m8 5 5 5-5 5" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import App from "./App";
|
||||
import "./index.css";
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root")!).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
);
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
Reference in New Issue
Block a user