add process component

This commit is contained in:
Nikita 2026-09-21 22:31:25 +05:00
parent 690c4b20a9
commit d52e6e59de
4 changed files with 450 additions and 1 deletions

View file

@ -0,0 +1,93 @@
"use client";
import { useInView } from "@/shared/hooks/useInView";
import styles from "@/static/process/process.module.css";
const steps = [
{
label: "01",
title: "Бриф",
text: "Разбираю задачу, аудиторию, цели сайта и фиксирую, какой результат должен получиться.",
},
{
label: "02",
title: "Структура",
text: "Собираю логику страниц, сценарии пользователя и расставляю смысловые акценты.",
},
{
label: "03",
title: "Разработка",
text: "Верстаю адаптивный интерфейс, добавляю интерактив, формы, аналитику и базовое SEO.",
},
{
label: "04",
title: "Запуск",
text: "Проверяю скорость, мобильную версию, мелкие состояния и помогаю спокойно выкатить сайт.",
},
];
const Process = () => {
const [headRef, headInView] = useInView<HTMLDivElement>(0.24);
const [stepsRef, stepsInView] = useInView<HTMLDivElement>(0.18);
const reveal = (visible: boolean) =>
`transition-all duration-700 ease-out will-change-transform ${
visible ? "opacity-100 translate-y-0" : "opacity-0 translate-y-10"
}`;
return (
<section className={styles.process} data-scroll-section>
<span className={styles.glow} aria-hidden="true" />
<span className={styles.orbit} aria-hidden="true" />
<span className={styles.ghost} aria-hidden="true">
03
</span>
<div className="page-container relative z-10">
<div ref={headRef} className={styles.head}>
<p className={`${styles.eyebrow} ${reveal(headInView)}`}>
<span className={styles.rule} aria-hidden="true" />
процесс
</p>
<div className={styles.headGrid}>
<h2
className={`${styles.title} ${reveal(headInView)}`}
style={{ transitionDelay: "100ms" }}
>
От идеи до запуска без хаоса и лишней суеты
</h2>
<p
className={`${styles.text} ${reveal(headInView)}`}
style={{ transitionDelay: "200ms" }}
>
Сайт должен не просто красиво открываться, а вести человека к
действию. Поэтому я двигаюсь по понятным этапам: сначала смысл,
потом интерфейс, затем аккуратная разработка и проверка деталей.
</p>
</div>
</div>
<div
ref={stepsRef}
className={`${styles.timeline} ${stepsInView ? styles.active : ""}`}
>
{steps.map((step, index) => (
<article
key={step.label}
className={`${styles.step} ${reveal(stepsInView)}`}
style={{ transitionDelay: `${index * 90}ms` }}
>
<span className={styles.stepNumber}>{step.label}</span>
<h3 className={styles.stepTitle}>{step.title}</h3>
<p className={styles.stepText}>{step.text}</p>
</article>
))}
</div>
</div>
</section>
);
};
export default Process;

View file

@ -28,7 +28,7 @@ const ProjectsSection = () => {
<span className={styles.glowA} aria-hidden="true" />
<span className={styles.glowB} aria-hidden="true" />
<span className={styles.ghost} aria-hidden="true">
03
04
</span>
<div className="page-container relative z-10">

View file

@ -0,0 +1,353 @@
/* =========================
PROCESS
========================= */
.process {
position: relative;
overflow: hidden;
padding-block: var(--section-y);
}
.glow {
position: absolute;
top: 22%;
left: 50%;
width: min(680px, 72vw);
height: min(680px, 72vw);
border-radius: 50%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.065), transparent 62%);
filter: blur(28px);
transform: translateX(-50%);
pointer-events: none;
}
.orbit {
position: absolute;
right: 7vw;
bottom: 14%;
width: clamp(160px, 18vw, 260px);
aspect-ratio: 1;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 50%;
pointer-events: none;
animation: orbitPulse 5.5s ease-in-out infinite;
}
.orbit::before,
.orbit::after {
content: "";
position: absolute;
border-radius: inherit;
}
.orbit::before {
inset: 18%;
border: 1px solid rgba(255, 255, 255, 0.06);
}
.orbit::after {
top: 18%;
left: 18%;
width: 8px;
height: 8px;
background: var(--color-text);
box-shadow: 0 0 22px rgba(255, 255, 255, 0.65);
animation: dotTravel 5.5s linear infinite;
}
.ghost {
position: absolute;
top: 22px;
left: 2vw;
z-index: 0;
color: transparent;
font-size: clamp(160px, 24vw, 460px);
font-weight: 800;
line-height: 1;
letter-spacing: -0.05em;
-webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
pointer-events: none;
user-select: none;
}
/* =========================
HEAD
========================= */
.head {
position: relative;
z-index: 1;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
color: var(--color-muted);
font-size: var(--fs-overline);
font-weight: 500;
letter-spacing: var(--ls-overline);
text-transform: uppercase;
}
.rule {
width: var(--space-lg);
height: 1px;
background: var(--color-muted);
}
.headGrid {
display: grid;
grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.62fr);
gap: var(--space-xl);
margin-top: var(--space-md);
}
.title {
max-width: 11em;
margin: 0;
font-size: var(--fs-display);
font-weight: 700;
line-height: var(--lh-tight);
letter-spacing: -0.02em;
}
.text {
max-width: var(--text-measure);
margin: 0;
align-self: end;
color: var(--color-muted);
font-size: var(--fs-body);
line-height: var(--lh-body);
}
/* =========================
TIMELINE
========================= */
.timeline {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0;
margin-top: var(--space-2xl);
border-top: 1px solid var(--color-line);
}
.timeline::before {
content: "";
position: absolute;
top: -1px;
left: 0;
width: 0;
height: 1px;
background: linear-gradient(90deg, transparent, #fff, transparent);
transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline.active::before {
width: 100%;
}
.step {
position: relative;
min-height: 240px;
padding: var(--space-lg) var(--space-md) 0 0;
border-right: 1px solid var(--color-line);
transition:
opacity 0.7s ease,
transform 0.7s ease,
border-color 0.3s ease;
}
.step:last-child {
border-right: 0;
}
.step::before {
content: "";
position: absolute;
top: -5px;
left: 0;
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--color-text);
box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.06);
transform: scale(0.72);
transition:
box-shadow 0.3s ease,
transform 0.3s ease;
}
.step:hover {
border-color: rgba(255, 255, 255, 0.24);
}
.step:hover::before {
box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1);
transform: scale(1);
}
.stepNumber {
color: var(--color-faint);
font-size: var(--fs-caption);
font-weight: 600;
letter-spacing: 0.18em;
}
.stepTitle {
margin: var(--space-sm) 0 0;
font-size: var(--fs-title);
font-weight: 700;
line-height: 1.15;
}
.stepText {
max-width: 28ch;
margin: var(--space-sm) 0 0;
color: var(--color-muted);
font-size: var(--fs-small);
line-height: 1.65;
}
@keyframes orbitPulse {
0%,
100% {
opacity: 0.55;
transform: scale(1);
}
50% {
opacity: 0.9;
transform: scale(1.035);
}
}
@keyframes dotTravel {
to {
transform: rotate(360deg) translateX(72px) rotate(-360deg);
}
}
@media (max-width: 1024px) {
.headGrid {
grid-template-columns: 1fr;
gap: var(--space-md);
}
.text {
align-self: auto;
}
.timeline {
grid-template-columns: repeat(2, 1fr);
row-gap: var(--space-xl);
}
.step:nth-child(2) {
border-right: 0;
}
}
@media (max-width: 640px) {
.orbit {
right: -80px;
bottom: 6%;
}
.timeline {
grid-template-columns: 1fr;
gap: 0;
border-top: 0;
border-left: 1px solid var(--color-line);
}
.timeline::before {
top: 0;
left: -1px;
width: 1px;
height: 0;
background: linear-gradient(180deg, transparent, #fff, transparent);
transition: height 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.timeline.active::before {
width: 1px;
height: 100%;
}
.step,
.step:nth-child(2) {
min-height: auto;
padding: 0 0 var(--space-lg) var(--space-md);
border-right: 0;
}
.step::before {
top: 0;
left: -5px;
}
}
@media (prefers-reduced-motion: reduce) {
.orbit,
.orbit::after {
animation: none;
}
}

View file

@ -2,6 +2,7 @@ import { Header } from "@/widgets/header";
import { Footer } from "@/widgets/footer";
import Hero from "@/components/hero/hero";
import About from "@/components/about/about";
import Process from "@/components/process/process";
import Sponsors from "@/components/sponsors/sponsors";
import Testimonials from "@/components/testimonials/testimonials";
import Projects from "@/components/projects/projects";
@ -16,6 +17,8 @@ const HomePage = () => {
<About />
<Process />
<Sponsors />
<Testimonials />