Feature Timeline Flow
Пошаговый процесс работы продукта в виде таймлайна с иллюстрациями каждого этапа.
From Idea to Production in 3 Simple Steps
Streamline your frontend engineering lifecycle with an intuitive, pre-tested architecture.
One Command Installation
Add astro-component-kit to your React project with npm. Zero complex configuration files or build tool plugins required.
npm install astro-component-kitImport Modular Components
Import accessible cards, navigation bars, interactive inputs, and 3D scenes directly into your React frontmatter with strict TypeScript typings.
import { GlassCard, StatCard } from 'astro-component-kit';Deploy Anywhere at 100/100 Speed
Generate static pre-rendered HTML with zero runtime JavaScript. Deploy effortlessly to Coolify, Vercel, Cloudflare Pages, or Docker.
npm run build && coolify deployИспользование
Скопируйте и вставьте этот код в ваш React-компонент:
import { FeatureTimelineFlow } from 'react-component-kit-ui/sections';
<FeatureTimelineFlow />Ручная установка
Если вы не используете пакет npm, создайте файл и вставьте следующий код: src/components/sections/FeatureTimelineFlow.tsx + FeatureTimelineFlow.css:
'use client';
import type { CSSProperties } from 'react';
import './FeatureTimelineFlow.css';
/** "a: b; --c: d" → style object */
function st(css: string | undefined): CSSProperties {
const o: Record<string, string> = {};
for (const decl of String(css ?? '').split(';')) {
const i = decl.indexOf(':');
if (i < 0) continue;
const k = decl.slice(0, i).trim();
if (k) o[k.startsWith('--') ? k : k.replace(/-([a-z])/g, (_, c) => c.toUpperCase())] = decl.slice(i + 1).trim();
}
return o as CSSProperties;
}
/**
* FeatureTimelineFlow — Full-page step-by-step product architecture and workflow section with glowing nodes.
*
* @param {string} badge - Eyebrow badge text.
* @param {string} title - Section main heading.
* @param {string} subtitle - Description text.
*/
export interface FeatureTimelineFlowProps {
badge?: string;
title?: string;
subtitle?: string;
className?: string;
}
export function FeatureTimelineFlow({
badge = "Step-by-Step Workflow",
title = "From Idea to Production in 3 Simple Steps",
subtitle = "Streamline your frontend engineering lifecycle with an intuitive, pre-tested architecture.",
className = ""
}: FeatureTimelineFlowProps) {
const steps = [
{
number: "01",
tag: "Install & Setup",
title: "One Command Installation",
desc: "Add astro-component-kit to your React project with npm. Zero complex configuration files or build tool plugins required.",
code: "npm install astro-component-kit",
color: "#6366f1"
},
{
number: "02",
tag: "Compose & Theme",
title: "Import Modular Components",
desc: "Import accessible cards, navigation bars, interactive inputs, and 3D scenes directly into your React frontmatter with strict TypeScript typings.",
code: "import { GlassCard, StatCard } from 'astro-component-kit';",
color: "#eab308"
},
{
number: "03",
tag: "Build & Deploy",
title: "Deploy Anywhere at 100/100 Speed",
desc: "Generate static pre-rendered HTML with zero runtime JavaScript. Deploy effortlessly to Coolify, Vercel, Cloudflare Pages, or Docker.",
code: "npm run build && coolify deploy",
color: "#10b981"
}
];
return (
<>
<div className="cq-feature-timeline-flow-cq" data-rk-1e8845="">
<section className={`timeline-section ${className}`} aria-labelledby="timeline-title" data-rk-1e8845="">
<div className="timeline-bg" aria-hidden="true" data-rk-1e8845="">
<div className="timeline-glow" data-rk-1e8845=""></div>
</div>
<div className="container" data-rk-1e8845="">
{/* Header */}
<div className="section-header" data-rk-1e8845="">
{badge && <span className="section-badge" data-rk-1e8845="">{badge}</span>}
<h2 id="timeline-title" className="section-title" data-rk-1e8845="">{title}</h2>
<p className="section-subtitle" data-rk-1e8845="">{subtitle}</p>
</div>
{/* Timeline Steps */}
<div className="steps-flow" data-rk-1e8845="">
<div className="flow-line" aria-hidden="true" data-rk-1e8845=""></div>
{steps.map((step, __i: number) => (
<div key={__i} className="step-card" data-rk-1e8845="">
<div className="step-badge-circle" style={st(`--step-color: ${step.color};`)} data-rk-1e8845="">
<span data-rk-1e8845="">{step.number}</span>
</div>
<div className="step-card__body" data-rk-1e8845="">
<span className="step-tag" style={st(`color: ${step.color};`)} data-rk-1e8845="">{step.tag}</span>
<h3 className="step-title" data-rk-1e8845="">{step.title}</h3>
<p className="step-desc" data-rk-1e8845="">{step.desc}</p>
<div className="step-code" data-rk-1e8845="">
<code data-rk-1e8845="">{step.code}</code>
</div>
</div>
</div>
))}
</div>
</div>
</section>
</div>
</>
);
}
export default FeatureTimelineFlow;/* FeatureTimelineFlow — ported from astro-component-kit (sections/FeatureTimelineFlow.astro) */
.cq-feature-timeline-flow-cq:where([data-rk-1e8845]) { container-type: inline-size; }
.timeline-section:where([data-rk-1e8845]) {
position: relative;
padding: var(--sp-20, 5rem) var(--sp-6, 1.5rem);
background: var(--c-bg-primary, #030712);
overflow: hidden;
}
.timeline-bg:where([data-rk-1e8845]) {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 0;
}
.timeline-glow:where([data-rk-1e8845]) {
position: absolute;
top: 30%;
left: 50%;
transform: translateX(-50%);
width: 600px;
height: 500px;
background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
filter: blur(120px);
}
.container:where([data-rk-1e8845]) {
position: relative;
z-index: 1;
max-width: 1000px;
margin: 0 auto;
}
.section-header:where([data-rk-1e8845]) {
text-align: center;
max-width: 780px;
margin: 0 auto 4rem;
}
.section-badge:where([data-rk-1e8845]) {
display: inline-flex;
padding: 0.35rem 0.9rem;
border-radius: 9999px;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
background: color-mix(in srgb, var(--c-primary, #b8860b) 12%, transparent);
color: #eab308;
border: 1px solid rgba(234, 179, 8, 0.25);
margin-bottom: var(--sp-4, 1rem);
}
.section-title:where([data-rk-1e8845]) {
font-size: clamp(2rem, 4vw, 3rem);
font-weight: 900;
color: #fff;
line-height: 1.15;
letter-spacing: -0.02em;
margin: 0 0 var(--sp-4, 1rem);
}
.section-subtitle:where([data-rk-1e8845]) {
font-size: 1.1rem;
color: #94a3b8;
line-height: 1.6;
margin: 0;
}
/* Steps Flow */
.steps-flow:where([data-rk-1e8845]) {
position: relative;
display: flex;
flex-direction: column;
gap: 2.5rem;
}
.flow-line:where([data-rk-1e8845]) {
position: absolute;
top: 30px;
bottom: 30px;
left: 27px;
width: 2px;
background: linear-gradient(180deg, #6366f1, #eab308, #10b981);
opacity: 0.3;
z-index: 0;
}
.step-card:where([data-rk-1e8845]) {
position: relative;
display: flex;
gap: 2rem;
align-items: flex-start;
z-index: 1;
}
.step-badge-circle:where([data-rk-1e8845]) {
width: 56px;
height: 56px;
border-radius: 50%;
background: #0f172a;
border: 2px solid var(--step-color, #6366f1);
box-shadow: 0 0 20px -3px var(--step-color, #6366f1);
display: grid;
place-items: center;
font-size: 1.1rem;
font-weight: 900;
color: #fff;
flex-shrink: 0;
}
.step-card__body:where([data-rk-1e8845]) {
flex: 1;
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(20px);
border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.08);
border-radius: 20px;
padding: 2rem;
transition: transform 0.3s ease, border-color 0.3s ease;
}
.step-card__body:hover:where([data-rk-1e8845]) {
transform: translateX(4px);
border-color: rgb(var(--ink-rgb, 255 255 255) / 0.18);
}
.step-tag:where([data-rk-1e8845]) {
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.step-title:where([data-rk-1e8845]) {
font-size: 1.35rem;
font-weight: 800;
color: #fff;
margin: 0.4rem 0 0.6rem;
}
.step-desc:where([data-rk-1e8845]) {
font-size: 0.95rem;
color: #94a3b8;
line-height: 1.6;
margin: 0 0 1.25rem;
}
.step-code:where([data-rk-1e8845]) {
padding: 0.75rem 1rem;
background: rgba(0, 0, 0, 0.5);
border: 1px solid rgb(var(--ink-rgb, 255 255 255) / 0.08);
border-radius: 10px;
font-family: var(--font-mono, monospace);
font-size: 0.85rem;
color: #93c5fd;
overflow-x: auto;
}
@container (max-width: 640px) {
.flow-line:where([data-rk-1e8845]) {
display: none;
}
.step-card:where([data-rk-1e8845]) {
flex-direction: column;
gap: 1rem;
}
}