1509 lines
42 KiB
HTML
1509 lines
42 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>algoritm.space — Визуальные алгоритмы для бизнеса</title>
|
|
<meta name="description" content="Превращаем хаос вашего бизнеса в чёткие алгоритмы. Визуализация бизнес-процессов на языке ДРАКОН — от космической программы «Буран» к вашему бизнесу.">
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
|
|
<!-- DrakonWidget — official DRAKON diagram renderer -->
|
|
<script src="https://stepan-mitkin.github.io/drakonwidget/libs/drakonwidget.js"></script>
|
|
<style>
|
|
/* ============================================
|
|
RESET & BASE
|
|
============================================ */
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
:root {
|
|
--white: #ffffff;
|
|
--bg: #fafbfc;
|
|
--bg-alt: #f3f4f6;
|
|
--text: #111827;
|
|
--text-secondary: #4b5563;
|
|
--text-tertiary: #9ca3af;
|
|
--border: #e5e7eb;
|
|
--border-light: #f3f4f6;
|
|
--accent: #16a34a;
|
|
--accent-light: #dcfce7;
|
|
--accent-dark: #15803d;
|
|
--radius: 12px;
|
|
--radius-lg: 20px;
|
|
--radius-xl: 28px;
|
|
--shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
|
|
--shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
|
|
--shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
|
|
--shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
|
|
--max-width: 1200px;
|
|
--nav-height: 72px;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
color: var(--text);
|
|
background: var(--white);
|
|
}
|
|
|
|
.container {
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
img { max-width: 100%; display: block; }
|
|
a { color: inherit; text-decoration: none; }
|
|
button { font-family: inherit; cursor: pointer; border: none; background: none; }
|
|
|
|
/* ============================================
|
|
NAV
|
|
============================================ */
|
|
.nav {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: var(--nav-height);
|
|
background: rgba(255,255,255,0.85);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-bottom: 1px solid var(--border);
|
|
z-index: 100;
|
|
transition: box-shadow 0.3s;
|
|
}
|
|
|
|
.nav.scrolled {
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.nav-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
}
|
|
|
|
.nav-logo {
|
|
font-weight: 700;
|
|
font-size: 18px;
|
|
letter-spacing: -0.02em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.nav-logo .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--accent);
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 32px;
|
|
list-style: none;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.nav-links a {
|
|
color: var(--text-secondary);
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.nav-cta {
|
|
background: var(--accent);
|
|
color: white !important;
|
|
padding: 8px 20px;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.nav-cta:hover {
|
|
background: var(--accent-dark);
|
|
}
|
|
|
|
/* Mobile menu */
|
|
@media (max-width: 768px) {
|
|
.nav-links { display: none; }
|
|
}
|
|
|
|
/* ============================================
|
|
HERO
|
|
============================================ */
|
|
.hero {
|
|
padding: 140px 0 100px;
|
|
background: var(--bg);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.hero-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 80px;
|
|
align-items: center;
|
|
}
|
|
|
|
.hero-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--accent-light);
|
|
color: var(--accent-dark);
|
|
padding: 6px 16px;
|
|
border-radius: 100px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.hero-badge .icon {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: clamp(36px, 5vw, 56px);
|
|
font-weight: 800;
|
|
line-height: 1.1;
|
|
letter-spacing: -0.03em;
|
|
margin-bottom: 24px;
|
|
color: var(--text);
|
|
}
|
|
|
|
.hero-title .accent {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.hero-description {
|
|
font-size: 18px;
|
|
line-height: 1.7;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 40px;
|
|
max-width: 520px;
|
|
}
|
|
|
|
.hero-actions {
|
|
display: flex;
|
|
gap: 16px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 14px 28px;
|
|
border-radius: var(--radius);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-dark);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-secondary {
|
|
border-color: var(--border);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
border-color: var(--text-tertiary);
|
|
color: var(--text);
|
|
}
|
|
|
|
/* Hero diagram */
|
|
.hero-diagram {
|
|
position: relative;
|
|
background: var(--white);
|
|
border-radius: var(--radius-xl);
|
|
border: 1px solid var(--border);
|
|
padding: 24px;
|
|
box-shadow: var(--shadow-lg);
|
|
min-height: 500px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hero-diagram-label {
|
|
position: absolute;
|
|
top: -12px;
|
|
left: 24px;
|
|
background: var(--accent);
|
|
color: white;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
padding: 4px 12px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
#drakon-canvas {
|
|
width: 100%;
|
|
height: 420px;
|
|
position: relative;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.hero-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 48px;
|
|
}
|
|
.hero { padding: 120px 0 60px; }
|
|
}
|
|
|
|
/* ============================================
|
|
SECTION BASE
|
|
============================================ */
|
|
.section {
|
|
padding: 120px 0;
|
|
}
|
|
|
|
.section-alt {
|
|
background: var(--bg);
|
|
border-top: 1px solid var(--border);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.section-label {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--accent);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: clamp(28px, 4vw, 44px);
|
|
font-weight: 800;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1.15;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-subtitle {
|
|
font-size: 18px;
|
|
line-height: 1.7;
|
|
color: var(--text-secondary);
|
|
max-width: 600px;
|
|
}
|
|
|
|
/* ============================================
|
|
STATS BAR
|
|
============================================ */
|
|
.stats {
|
|
padding: 60px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-number {
|
|
font-size: 40px;
|
|
font-weight: 800;
|
|
color: var(--accent);
|
|
letter-spacing: -0.03em;
|
|
line-height: 1;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.stats-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 32px;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
PROBLEM SECTION
|
|
============================================ */
|
|
.problem-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 24px;
|
|
margin-top: 60px;
|
|
}
|
|
|
|
.problem-card {
|
|
padding: 40px 32px;
|
|
background: var(--white);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.problem-card:hover {
|
|
border-color: var(--border-light);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.problem-icon {
|
|
font-size: 28px;
|
|
margin-bottom: 20px;
|
|
display: block;
|
|
}
|
|
|
|
.problem-card h3 {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
margin-bottom: 12px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.problem-card p {
|
|
font-size: 15px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.problem-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* ============================================
|
|
WHAT IS DRAKON
|
|
============================================ */
|
|
.drakon-info {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 80px;
|
|
align-items: center;
|
|
margin-top: 60px;
|
|
}
|
|
|
|
.drakon-info p {
|
|
font-size: 16px;
|
|
line-height: 1.8;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.drakon-info strong {
|
|
color: var(--text);
|
|
}
|
|
|
|
.drakon-features {
|
|
list-style: none;
|
|
margin-top: 32px;
|
|
}
|
|
|
|
.drakon-features li {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 14px;
|
|
padding: 14px 0;
|
|
font-size: 15px;
|
|
color: var(--text-secondary);
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.drakon-features li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.drakon-features li::before {
|
|
content: '';
|
|
width: 22px;
|
|
height: 22px;
|
|
background: var(--accent-light);
|
|
border-radius: 6px;
|
|
flex-shrink: 0;
|
|
margin-top: 1px;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2316a34a' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
}
|
|
|
|
.drakon-history {
|
|
background: var(--bg);
|
|
border-radius: var(--radius-xl);
|
|
padding: 48px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.drakon-history h3 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
margin-bottom: 16px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.drakon-history p {
|
|
font-size: 15px;
|
|
line-height: 1.8;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.drakon-info { grid-template-columns: 1fr; gap: 48px; }
|
|
}
|
|
|
|
/* ============================================
|
|
SERVICES
|
|
============================================ */
|
|
.services-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 24px;
|
|
margin-top: 60px;
|
|
}
|
|
|
|
.service-card {
|
|
padding: 40px 32px;
|
|
background: var(--white);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.service-card:hover {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 1px var(--accent);
|
|
}
|
|
|
|
.service-card h3 {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
margin-bottom: 12px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.service-card p {
|
|
font-size: 15px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.service-tags {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.service-tag {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
padding: 4px 12px;
|
|
background: var(--bg);
|
|
color: var(--text-secondary);
|
|
border-radius: 100px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.services-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* ============================================
|
|
PROCESS
|
|
============================================ */
|
|
.process-steps {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 32px;
|
|
margin-top: 60px;
|
|
}
|
|
|
|
.process-step {
|
|
text-align: center;
|
|
}
|
|
|
|
.step-number {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: var(--accent);
|
|
color: white;
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
margin: 0 auto 20px;
|
|
}
|
|
|
|
.process-step h3 {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.process-step p {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.process-steps {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 40px;
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
PRICING
|
|
============================================ */
|
|
.pricing-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 24px;
|
|
margin-top: 60px;
|
|
}
|
|
|
|
.pricing-card {
|
|
padding: 40px 32px;
|
|
background: var(--white);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.pricing-card.featured {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 1px var(--accent);
|
|
}
|
|
|
|
.pricing-card.featured::before {
|
|
content: 'Популярный';
|
|
position: absolute;
|
|
top: -11px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--accent);
|
|
color: white;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
padding: 4px 14px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.pricing-tier {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--accent);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.pricing-name {
|
|
font-size: 22px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.02em;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.pricing-price {
|
|
font-size: 36px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.03em;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.pricing-price span {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.pricing-features {
|
|
list-style: none;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.pricing-features li {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border-light);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.pricing-features li::before {
|
|
content: '✓';
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pricing-btn {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 14px;
|
|
text-align: center;
|
|
border-radius: var(--radius);
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.pricing-btn-primary {
|
|
background: var(--accent);
|
|
color: white;
|
|
border: 1px solid var(--accent);
|
|
}
|
|
|
|
.pricing-btn-primary:hover {
|
|
background: var(--accent-dark);
|
|
}
|
|
|
|
.pricing-btn-secondary {
|
|
border: 1px solid var(--border);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.pricing-btn-secondary:hover {
|
|
border-color: var(--text-tertiary);
|
|
color: var(--text);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.pricing-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* ============================================
|
|
AUDIENCE
|
|
============================================ */
|
|
.audience-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 24px;
|
|
margin-top: 60px;
|
|
}
|
|
|
|
.audience-card {
|
|
padding: 40px 32px;
|
|
background: var(--bg);
|
|
border-radius: var(--radius-lg);
|
|
text-align: center;
|
|
}
|
|
|
|
.audience-icon {
|
|
font-size: 36px;
|
|
margin-bottom: 20px;
|
|
display: block;
|
|
}
|
|
|
|
.audience-card h3 {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.audience-card p {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.audience-grid { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* ============================================
|
|
FAQ
|
|
============================================ */
|
|
.faq-list {
|
|
max-width: 720px;
|
|
margin: 60px auto 0;
|
|
}
|
|
|
|
.faq-item {
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.faq-question {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
padding: 24px 0;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
text-align: left;
|
|
color: var(--text);
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.faq-question:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.faq-icon {
|
|
font-size: 20px;
|
|
font-weight: 300;
|
|
transition: transform 0.3s;
|
|
flex-shrink: 0;
|
|
margin-left: 16px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.faq-item.open .faq-icon {
|
|
transform: rotate(45deg);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.faq-answer {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s ease;
|
|
}
|
|
|
|
.faq-item.open .faq-answer {
|
|
max-height: 200px;
|
|
}
|
|
|
|
.faq-answer p {
|
|
padding: 0 0 24px;
|
|
font-size: 15px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.7;
|
|
}
|
|
|
|
/* ============================================
|
|
CTA SECTION
|
|
============================================ */
|
|
.cta-section {
|
|
padding: 120px 0;
|
|
background: var(--bg);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.cta-inner {
|
|
text-align: center;
|
|
max-width: 640px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.cta-actions {
|
|
display: flex;
|
|
gap: 16px;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
/* ============================================
|
|
FOOTER
|
|
============================================ */
|
|
.footer {
|
|
padding: 40px 0;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.footer-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.footer-copy {
|
|
font-size: 13px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.footer-links {
|
|
display: flex;
|
|
gap: 24px;
|
|
list-style: none;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.footer-links a {
|
|
color: var(--text-secondary);
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.footer-links a:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
/* ============================================
|
|
ANIMATIONS
|
|
============================================ */
|
|
.animate-in {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
transition: opacity 0.6s ease, transform 0.6s ease;
|
|
}
|
|
|
|
.animate-in.visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
/* DrakonWidget overrides for light theme */
|
|
#drakon-canvas canvas {
|
|
border-radius: var(--radius);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- ============================================
|
|
NAV
|
|
============================================ -->
|
|
<nav class="nav" id="nav">
|
|
<div class="container nav-inner">
|
|
<a href="#" class="nav-logo">
|
|
<span class="dot"></span>
|
|
algoritm.space
|
|
</a>
|
|
<ul class="nav-links">
|
|
<li><a href="#problem">Проблема</a></li>
|
|
<li><a href="#drakon">ДРАКОН</a></li>
|
|
<li><a href="#services">Услуги</a></li>
|
|
<li><a href="#pricing">Стоимость</a></li>
|
|
<li><a href="#faq">FAQ</a></li>
|
|
<li><a href="#contact" class="nav-cta">Обсудить проект</a></li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- ============================================
|
|
HERO
|
|
============================================ -->
|
|
<section class="hero" id="hero">
|
|
<div class="container hero-grid">
|
|
<div class="hero-content">
|
|
<div class="hero-badge">
|
|
<span class="icon">◆</span>
|
|
Визуальные алгоритмы для бизнеса
|
|
</div>
|
|
<h1 class="hero-title">
|
|
Превращаем хаос<br>вашего бизнеса<br>в <span class="accent">чёткие алгоритмы</span>
|
|
</h1>
|
|
<p class="hero-description">
|
|
Используем язык ДРАКОН — визуальный язык, созданный для управления космическим кораблём «Буран», чтобы сделать ваши бизнес-процессы понятными, предсказуемыми и управляемыми.
|
|
</p>
|
|
<div class="hero-actions">
|
|
<a href="#contact" class="btn btn-primary">
|
|
Обсудить проект
|
|
<span>→</span>
|
|
</a>
|
|
<a href="#drakon" class="btn btn-secondary">
|
|
Что такое ДРАКОН?
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="hero-diagram">
|
|
<span class="hero-diagram-label">Пример: наш процесс</span>
|
|
<div id="drakon-canvas"></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
STATS
|
|
============================================ -->
|
|
<section class="stats">
|
|
<div class="container">
|
|
<div class="stats-grid">
|
|
<div class="stat-item animate-in">
|
|
<div class="stat-number">10 сек</div>
|
|
<div class="stat-label">Чтобы понять процесс с диаграммы</div>
|
|
</div>
|
|
<div class="stat-item animate-in">
|
|
<div class="stat-number">87%</div>
|
|
<div class="stat-label">Компаний не могут описать процесс чётко</div>
|
|
</div>
|
|
<div class="stat-item animate-in">
|
|
<div class="stat-number">50 стр</div>
|
|
<div class="stat-label">Документации заменяет одна схема</div>
|
|
</div>
|
|
<div class="stat-item animate-in">
|
|
<div class="stat-number">1986</div>
|
|
<div class="stat-label">Год создания ДРАКОН для «Бурана»</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
PROBLEM
|
|
============================================ -->
|
|
<section class="section problem" id="problem">
|
|
<div class="container">
|
|
<div class="animate-in">
|
|
<div class="section-label">Проблема</div>
|
|
<h2 class="section-title">Ваш бизнес работает<br>вслепую?</h2>
|
|
<p class="section-subtitle">
|
|
87% компаний не могут объяснить свои процессы так, чтобы понял любой сотрудник.
|
|
</p>
|
|
</div>
|
|
<div class="problem-grid">
|
|
<div class="problem-card animate-in">
|
|
<span class="problem-icon">🌀</span>
|
|
<h3>Хаос в процессах</h3>
|
|
<p>Каждый делает по-своему. Нет единого стандарта. Результат зависит от настроения, а не от системы.</p>
|
|
</div>
|
|
<div class="problem-card animate-in">
|
|
<span class="problem-icon">📄</span>
|
|
<h3>Документация, которую не читают</h3>
|
|
<p>ТЗ на 50 страниц, регламенты на 100 слайдов. Никто не читает. Никто не понимает. Никто не следует.</p>
|
|
</div>
|
|
<div class="problem-card animate-in">
|
|
<span class="problem-icon">🔍</span>
|
|
<h3>Не видите узкие места</h3>
|
|
<p>Клиенты уходят на этапе, который вы не можете визуализировать. Оптимизируете наугад, а не по фактам.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
WHAT IS DRAKON
|
|
============================================ -->
|
|
<section class="section section-alt" id="drakon">
|
|
<div class="container">
|
|
<div class="animate-in">
|
|
<div class="section-label">Решение</div>
|
|
<h2 class="section-title">Язык, рождённый<br>в космосе</h2>
|
|
</div>
|
|
<div class="drakon-info">
|
|
<div class="animate-in">
|
|
<p>
|
|
<strong>ДРАКОН</strong> — Дружелюбный Русский Алгоритмический Язык, Который Обеспечивает Наглядность.
|
|
</p>
|
|
<p>
|
|
Создатели «Бурана» поняли главное: проблема не в том, чтобы написать код. Проблема в том, чтобы <em>объяснить</em> этот код так, чтобы его поняли за секунду.
|
|
</p>
|
|
<p>
|
|
Сегодня эта же технология помогает бизнесу. Одна схема ДРАКОН заменяет 50 страниц документации и объясняет процесс за 10 секунд.
|
|
</p>
|
|
<ul class="drakon-features">
|
|
<li>Бросил взгляд — понял идею</li>
|
|
<li>Никаких пересечений — только прямые линии</li>
|
|
<li>Главное видно первым</li>
|
|
<li>Понятно и владельцу бизнеса, и разработчику</li>
|
|
</ul>
|
|
</div>
|
|
<div class="drakon-history animate-in">
|
|
<h3>🚀 От космоса к бизнесу</h3>
|
|
<p>
|
|
В 1986 году команда НПО им. Академика Гречишина столкнулась с проблемой: программисты разных институтов не могли объяснить свои алгоритмы друг другу. Ошибки в коде бортового компьютера «Бурана» могли стоить жизней.
|
|
</p>
|
|
<p style="margin-top: 16px;">
|
|
Владимир Паронджанов создал ДРАКОН — язык, в котором каждый алгоритм читается слева направо, сверху вниз, без единого пересечения линий. Сегодня ДРАКОН используется в медицине, разработке ПО и — всё чаще — в бизнес-аналитике.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
SERVICES
|
|
============================================ -->
|
|
<section class="section" id="services">
|
|
<div class="container">
|
|
<div class="animate-in">
|
|
<div class="section-label">Услуги</div>
|
|
<h2 class="section-title">Что я делаю</h2>
|
|
<p class="section-subtitle">
|
|
От простого аудита до полной визуализации бизнес-системы.
|
|
</p>
|
|
</div>
|
|
<div class="services-grid">
|
|
<div class="service-card animate-in">
|
|
<h3>🔍 Дракон-аудит процессов</h3>
|
|
<p>Быстрый осмотр ваших ключевых процессов. Показываю, где хаос, а где — система. Результат за 2-3 дня.</p>
|
|
<div class="service-tags">
|
|
<span class="service-tag">2-3 дня</span>
|
|
<span class="service-tag">1-2 процесса</span>
|
|
</div>
|
|
</div>
|
|
<div class="service-card animate-in">
|
|
<h3>📊 Визуализация бизнес-процессов</h3>
|
|
<p>Полная диаграмма вашего процесса на языке ДРАКОН. От клиента до результата. Понятна всем.</p>
|
|
<div class="service-tags">
|
|
<span class="service-tag">1-2 недели</span>
|
|
<span class="service-tag">5-10 процессов</span>
|
|
</div>
|
|
</div>
|
|
<div class="service-card animate-in">
|
|
<h3>🎯 Оптимизация воронки</h3>
|
|
<p>Визуализирую вашу воронку продаж. Нахожу узкие места, через которые утекают деньги и клиенты.</p>
|
|
<div class="service-tags">
|
|
<span class="service-tag">3-5 дней</span>
|
|
<span class="service-tag">Воронка + аналитика</span>
|
|
</div>
|
|
</div>
|
|
<div class="service-card animate-in">
|
|
<h3>📐 Архитектура сервиса</h3>
|
|
<p>Для IT-продуктов: визуальная архитектура сервисов, потоки данных, зависимости. Основа для разработки.</p>
|
|
<div class="service-tags">
|
|
<span class="service-tag">1-3 недели</span>
|
|
<span class="service-tag">Полная архитектура</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
PROCESS
|
|
============================================ -->
|
|
<section class="section section-alt" id="process">
|
|
<div class="container">
|
|
<div class="animate-in" style="text-align: center;">
|
|
<div class="section-label" style="justify-content: center;">Процесс</div>
|
|
<h2 class="section-title">Как мы работаем</h2>
|
|
<p class="section-subtitle" style="margin: 0 auto;">
|
|
Четыре шага от хаоса к ясности.
|
|
</p>
|
|
</div>
|
|
<div class="process-steps">
|
|
<div class="process-step animate-in">
|
|
<div class="step-number">1</div>
|
|
<h3>Брифинг</h3>
|
|
<p>Обсуждаем ваш бизнес, процессы, цели. Определяем, что нужно визуализировать в первую очередь.</p>
|
|
</div>
|
|
<div class="process-step animate-in">
|
|
<div class="step-number">2</div>
|
|
<h3>Исследование</h3>
|
|
<p>Изучаю ваши документы, процессы, команды. Интервьюирую ключевых сотрудников.</p>
|
|
</div>
|
|
<div class="process-step animate-in">
|
|
<div class="step-number">3</div>
|
|
<h3>Диаграмма ДРАКОН</h3>
|
|
<p>Создаю визуальные алгоритмы. Показываю вам. Корректируем. Согласовываем каждый шаг.</p>
|
|
</div>
|
|
<div class="process-step animate-in">
|
|
<div class="step-number">4</div>
|
|
<h3>Результат</h3>
|
|
<p>Вы получаете готовые диаграммы, рекомендации и дорожную карту.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
AUDIENCE
|
|
============================================ -->
|
|
<section class="section" id="audience">
|
|
<div class="container">
|
|
<div class="animate-in" style="text-align: center;">
|
|
<div class="section-label" style="justify-content: center;">Кому подходит</div>
|
|
<h2 class="section-title">Ваш случай?</h2>
|
|
</div>
|
|
<div class="audience-grid">
|
|
<div class="audience-card animate-in">
|
|
<span class="audience-icon">🏢</span>
|
|
<h3>Владелец бизнеса</h3>
|
|
<p>Хотите видеть структуру компании на одном экране. Понимать, где теряются деньги и время.</p>
|
|
</div>
|
|
<div class="audience-card animate-in">
|
|
<span class="audience-icon">💻</span>
|
|
<h3>IT-команда</h3>
|
|
<p>Нужна документация, которую можно читать, а не игнорировать. Быстрый онбординг новичков.</p>
|
|
</div>
|
|
<div class="audience-card animate-in">
|
|
<span class="audience-icon">📈</span>
|
|
<h3>Консультант / агентство</h3>
|
|
<p>Нужна база для ТЗ. Понятная визуализация для клиента. Основа для автоматизации.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
PRICING
|
|
============================================ -->
|
|
<section class="section section-alt" id="pricing">
|
|
<div class="container">
|
|
<div class="animate-in" style="text-align: center;">
|
|
<div class="section-label" style="justify-content: center;">Стоимость</div>
|
|
<h2 class="section-title">Пакеты услуг</h2>
|
|
<p class="section-subtitle" style="margin: 0 auto;">
|
|
Выберите подходящий уровень. Или обсудите индивидуальный проект.
|
|
</p>
|
|
</div>
|
|
<div class="pricing-grid">
|
|
<div class="pricing-card animate-in">
|
|
<div class="pricing-tier">Старт</div>
|
|
<div class="pricing-name">Диагностика</div>
|
|
<div class="pricing-price">30 000 ₽</div>
|
|
<ul class="pricing-features">
|
|
<li>Аудит 1-2 процессов</li>
|
|
<li>1 диаграмма ДРАКОН</li>
|
|
<li>Бриф по выводам</li>
|
|
<li>Срок: 2-3 дня</li>
|
|
</ul>
|
|
<a href="#contact" class="pricing-btn pricing-btn-secondary">Выбрать</a>
|
|
</div>
|
|
<div class="pricing-card featured animate-in">
|
|
<div class="pricing-tier">Бизнес</div>
|
|
<div class="pricing-name">Визуализация</div>
|
|
<div class="pricing-price">120 000 ₽</div>
|
|
<ul class="pricing-features">
|
|
<li>Аудит всех ключевых процессов</li>
|
|
<li>До 10 диаграмм ДРАКОН</li>
|
|
<li>Рекомендации по оптимизации</li>
|
|
<li>Презентация для команды</li>
|
|
<li>Срок: 2-3 недели</li>
|
|
</ul>
|
|
<a href="#contact" class="pricing-btn pricing-btn-primary">Выбрать</a>
|
|
</div>
|
|
<div class="pricing-card animate-in">
|
|
<div class="pricing-tier">Комплекс</div>
|
|
<div class="pricing-name">Архитектура</div>
|
|
<div class="pricing-price">от 250 000 ₽</div>
|
|
<ul class="pricing-features">
|
|
<li>Полная визуализация системы</li>
|
|
<li>Неограниченные диаграммы</li>
|
|
<li>Архитектура сервиса / воронки</li>
|
|
<li>Дорожная карта</li>
|
|
<li>Сопровождение 1 месяц</li>
|
|
</ul>
|
|
<a href="#contact" class="pricing-btn pricing-btn-secondary">Обсудить</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
FAQ
|
|
============================================ -->
|
|
<section class="section faq" id="faq">
|
|
<div class="container">
|
|
<div class="animate-in" style="text-align: center;">
|
|
<div class="section-label" style="justify-content: center;">Вопросы</div>
|
|
<h2 class="section-title">Частые вопросы</h2>
|
|
</div>
|
|
<div class="faq-list">
|
|
<div class="faq-item animate-in">
|
|
<button class="faq-question">
|
|
Что такое ДРАКОН простыми словами?
|
|
<span class="faq-icon">+</span>
|
|
</button>
|
|
<div class="faq-answer">
|
|
<p>Это язык визуальных схем, который делает сложные процессы понятными за секунду. Бросил взгляд — понял идею. Создан для космического корабля «Буран», сегодня используется в медицине, разработке и бизнесе.</p>
|
|
</div>
|
|
</div>
|
|
<div class="faq-item animate-in">
|
|
<button class="faq-question">
|
|
Это нужно только программистам?
|
|
<span class="faq-icon">+</span>
|
|
</button>
|
|
<div class="faq-answer">
|
|
<p>Нет, это даже не им. Это для владельцев бизнеса, которые хотят видеть структуру своей компании. Диаграмма ДРАКОН понятна всем — от бухгалтера до гендиректора. Текста минимум, смысла — максимум.</p>
|
|
</div>
|
|
</div>
|
|
<div class="faq-item animate-in">
|
|
<button class="faq-question">
|
|
Сколько времени занимает?
|
|
<span class="faq-icon">+</span>
|
|
</button>
|
|
<div class="faq-answer">
|
|
<p>Диагностика — 2-3 дня. Полная визуализация ключевых процессов — 2-3 недели. Всё зависит от сложности вашего бизнеса. На брифинге определяем точные сроки.</p>
|
|
</div>
|
|
</div>
|
|
<div class="faq-item animate-in">
|
|
<button class="faq-question">
|
|
В каком формате я получу результат?
|
|
<span class="faq-icon">+</span>
|
|
</button>
|
|
<div class="faq-answer">
|
|
<p>Готовые диаграммы в формате, который можно показать команде и клиентам. PDF, SVG, а также исходные файлы для редактирования. Плюс презентация с выводами и рекомендациями.</p>
|
|
</div>
|
|
</div>
|
|
<div class="faq-item animate-in">
|
|
<button class="faq-question">
|
|
Как связаться?
|
|
<span class="faq-icon">+</span>
|
|
</button>
|
|
<div class="faq-answer">
|
|
<p>Лучше всего — написать в Telegram или на почту. На брифинге бесплатно обсудим ваш проект и скажем, поможет ли ДРАКОН в вашем случае. Без обязательств.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
CTA
|
|
============================================ -->
|
|
<section class="cta-section" id="contact">
|
|
<div class="container cta-inner">
|
|
<div class="animate-in">
|
|
<div class="section-label" style="justify-content: center;">Начнём?</div>
|
|
<h2 class="section-title">Готовы превратить хаос<br>в алгоритмы?</h2>
|
|
<p class="section-subtitle" style="margin: 0 auto;">
|
|
Напишите мне — бесплатно обсудим ваш проект на брифинге. Покажу, как ДРАКОН поможет именно вам.
|
|
</p>
|
|
<div class="cta-actions">
|
|
<a href="https://t.me/" class="btn btn-primary" target="_blank" rel="noopener">
|
|
Написать в Telegram →
|
|
</a>
|
|
<a href="mailto:hello@algoritm.space" class="btn btn-secondary">
|
|
hello@algoritm.space
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- ============================================
|
|
FOOTER
|
|
============================================ -->
|
|
<footer class="footer">
|
|
<div class="container footer-inner">
|
|
<div class="footer-copy">
|
|
© 2025 algoritm.space — Визуальные алгоритмы для бизнеса
|
|
</div>
|
|
<ul class="footer-links">
|
|
<li><a href="#drakon">Что такое ДРАКОН</a></li>
|
|
<li><a href="#services">Услуги</a></li>
|
|
<li><a href="#pricing">Стоимость</a></li>
|
|
<li><a href="#contact">Контакт</a></li>
|
|
</ul>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- ============================================
|
|
SCRIPTS
|
|
============================================ -->
|
|
<script>
|
|
// ---- Scroll animations (Intersection Observer) ----
|
|
const observer = new IntersectionObserver((entries) => {
|
|
entries.forEach((entry) => {
|
|
if (entry.isIntersecting) {
|
|
entry.target.classList.add('visible');
|
|
}
|
|
});
|
|
}, { threshold: 0.1, rootMargin: '0px 0px -50px 0px' });
|
|
|
|
document.querySelectorAll('.animate-in').forEach((el) => observer.observe(el));
|
|
|
|
// ---- Nav scroll state ----
|
|
const nav = document.getElementById('nav');
|
|
window.addEventListener('scroll', () => {
|
|
nav.classList.toggle('scrolled', window.scrollY > 50);
|
|
});
|
|
|
|
// ---- FAQ accordion ----
|
|
document.querySelectorAll('.faq-question').forEach((btn) => {
|
|
btn.addEventListener('click', () => {
|
|
const item = btn.parentElement;
|
|
const isOpen = item.classList.contains('open');
|
|
document.querySelectorAll('.faq-item').forEach((i) => i.classList.remove('open'));
|
|
if (!isOpen) item.classList.add('open');
|
|
});
|
|
});
|
|
|
|
// ---- Smooth scroll for anchor links ----
|
|
document.querySelectorAll('a[href^="#"]').forEach((a) => {
|
|
a.addEventListener('click', (e) => {
|
|
const target = document.querySelector(a.getAttribute('href'));
|
|
if (target) {
|
|
e.preventDefault();
|
|
target.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
}
|
|
});
|
|
});
|
|
|
|
// ============================================
|
|
// DRAKON DIAGRAM — DrakonWidget (view mode)
|
|
// ============================================
|
|
// DrakonWidget node types: end, action, question, branch, insertion, address,
|
|
// select, case, loopbegin, loopend, parbegin, parend, duration
|
|
// Flow direction: entry branch (branchId:0) → ... → end (terminator)
|
|
|
|
function initDrakonDiagram() {
|
|
// Business process diagram — client onboarding flow
|
|
var diagram = {
|
|
name: "Наш процесс",
|
|
items: {
|
|
// Entry point (arrow icon)
|
|
"1": {
|
|
type: "branch",
|
|
branchId: 0,
|
|
one: "2"
|
|
},
|
|
// Step 1
|
|
"2": {
|
|
type: "action",
|
|
one: "3",
|
|
content: "Брифинг клиента"
|
|
},
|
|
// Step 2
|
|
"3": {
|
|
type: "action",
|
|
one: "4",
|
|
content: "Аудит процессов"
|
|
},
|
|
// Decision
|
|
"4": {
|
|
type: "question",
|
|
one: "5",
|
|
no: "6",
|
|
content: "Понятно?"
|
|
},
|
|
// Yes path — proceed
|
|
"5": {
|
|
type: "action",
|
|
one: "7",
|
|
content: "Создание схем ДРАКОН"
|
|
},
|
|
// No path — clarify
|
|
"6": {
|
|
type: "action",
|
|
one: "7",
|
|
content: "Уточняем процесс"
|
|
},
|
|
// Merge
|
|
"7": {
|
|
type: "action",
|
|
one: "8",
|
|
content: "Согласование"
|
|
},
|
|
// End — terminator
|
|
"8": {
|
|
type: "end"
|
|
}
|
|
}
|
|
};
|
|
|
|
// Minimal view-only configuration
|
|
var config = {
|
|
startEditContent: function () { /* read-only */ },
|
|
showContextMenu: function () { /* read-only */ },
|
|
canSelect: false,
|
|
maxWidth: 320,
|
|
theme: {
|
|
lineWidth: 2,
|
|
borderWidth: 0,
|
|
background: "#ffffff",
|
|
iconBorder: "#d1d5db",
|
|
iconBack: "#ffffff",
|
|
iconRadius: 6,
|
|
shadowBlur: 4,
|
|
shadowColor: "rgba(0, 0, 0, 0.06)",
|
|
color: "#111827",
|
|
lines: "#6b7280",
|
|
backText: "#16a34a",
|
|
font: "14px Inter, sans-serif",
|
|
headerFont: "bold 15px Inter, sans-serif",
|
|
yes: "Да",
|
|
no: "Нет"
|
|
}
|
|
};
|
|
|
|
// View-only edit sender
|
|
var sender = {
|
|
stop: function () { },
|
|
pushEdit: function () { /* read-only */ }
|
|
};
|
|
|
|
// Build widget
|
|
var drakonCanvas = document.getElementById('drakon-canvas');
|
|
var drakon = createDrakonWidget();
|
|
var WIDGET_W = 560;
|
|
var WIDGET_H = 420;
|
|
|
|
function rebuildWidget() {
|
|
drakonCanvas.innerHTML = '';
|
|
var widgetEl = drakon.render(WIDGET_W, WIDGET_H, config);
|
|
drakonCanvas.appendChild(widgetEl);
|
|
}
|
|
|
|
// Initial render
|
|
rebuildWidget();
|
|
|
|
// Load diagram
|
|
drakon.setDiagram(
|
|
'business-process',
|
|
diagram,
|
|
sender,
|
|
false // readOnly
|
|
);
|
|
|
|
// Redraw after layout pass
|
|
setTimeout(function () {
|
|
rebuildWidget();
|
|
drakon.setDiagram(
|
|
'business-process',
|
|
diagram,
|
|
sender,
|
|
false
|
|
);
|
|
}, 200);
|
|
|
|
// Handle resize
|
|
var resizeObserver = new ResizeObserver(function () {
|
|
rebuildWidget();
|
|
drakon.setDiagram(
|
|
'business-process',
|
|
diagram,
|
|
sender,
|
|
false
|
|
);
|
|
});
|
|
resizeObserver.observe(drakonCanvas);
|
|
}
|
|
|
|
// Initialize on load
|
|
if (typeof createDrakonWidget === 'function') {
|
|
initDrakonDiagram();
|
|
} else {
|
|
// Fallback if CDN is slow
|
|
window.addEventListener('load', function () {
|
|
if (typeof createDrakonWidget === 'function') {
|
|
initDrakonDiagram();
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|