feat: add PWA support for mobile installation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@@ -0,0 +1,5 @@
|
||||
# Скопируйте этот файл в .env и укажите ваши данные от Telegram бота
|
||||
VITE_TG_BOT_TOKEN="8797771145:AAFenFqVF9QG2afC3tVcXeVE1fMfMAYnCzU"
|
||||
VITE_TG_CHAT_ID="78171403"
|
||||
VITE_SUPABASE_URL=https://magrumsifwlstasgencj.supabase.co
|
||||
VITE_SUPABASE_ANON_KEY=sb_publishable_Zi3u9S5220J0yrktExYecQ_Y7ttrti1
|
||||
@@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@@ -0,0 +1,32 @@
|
||||
# CLAUDE.md
|
||||
|
||||
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
npm run dev # Start dev server with HMR (Vite)
|
||||
npm run build # Production build to dist/
|
||||
npm run preview # Preview production build locally
|
||||
npm run lint # ESLint check
|
||||
```
|
||||
|
||||
No test suite is configured.
|
||||
|
||||
## Project Overview
|
||||
|
||||
Russian-language landing page for a ballistic window film (бронирование стекол) company. Single-page marketing site with a lead capture form that posts to a Telegram bot.
|
||||
|
||||
## Architecture
|
||||
|
||||
Single-page React 19 app with Vite, no routing. `App.jsx` composes all sections in vertical order: `Navbar → Hero → PhysicsOfSafety → UseCases → TrustBar → Comparison → Estimator → LeadForm → Footer`.
|
||||
|
||||
**Key patterns:**
|
||||
- All styling is inline `style={{}}` props — there are no CSS modules or Tailwind classes. The only utility classes are defined in `src/index.css`: `.glass-panel`, `.btn-primary`, `.btn-outline`, `.container`, `.text-accent-blue/yellow/orange`.
|
||||
- Animations use `framer-motion` (`motion.*` components with `whileInView`, `whileHover`, `whileTap`).
|
||||
- Icons come from `lucide-react`.
|
||||
- CSS custom properties (set in `:root` in `index.css`) define the design tokens — use these for any new color or spacing values.
|
||||
|
||||
**Lead form integration:** `LeadForm.jsx` reads `VITE_TG_BOT_TOKEN` and `VITE_TG_CHAT_ID` from `.env` and POSTs to the Telegram Bot API. Copy `.env.example` to `.env` to configure locally.
|
||||
|
||||
**Estimator:** `Estimator.jsx` calculates cost client-side based on film thickness (200µm = 2000 ₽/m², 300µm = 3000 ₽/m²) and glazing area. The `windows` slider state exists but is not used in the cost formula.
|
||||
@@ -0,0 +1,16 @@
|
||||
# React + Vite
|
||||
|
||||
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
||||
|
||||
Currently, two official plugins are available:
|
||||
|
||||
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs)
|
||||
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/)
|
||||
|
||||
## React Compiler
|
||||
|
||||
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
||||
|
||||
## Expanding the ESLint configuration
|
||||
|
||||
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
|
||||
@@ -0,0 +1,21 @@
|
||||
import js from '@eslint/js'
|
||||
import globals from 'globals'
|
||||
import reactHooks from 'eslint-plugin-react-hooks'
|
||||
import reactRefresh from 'eslint-plugin-react-refresh'
|
||||
import { defineConfig, globalIgnores } from 'eslint/config'
|
||||
|
||||
export default defineConfig([
|
||||
globalIgnores(['dist']),
|
||||
{
|
||||
files: ['**/*.{js,jsx}'],
|
||||
extends: [
|
||||
js.configs.recommended,
|
||||
reactHooks.configs.flat.recommended,
|
||||
reactRefresh.configs.vite,
|
||||
],
|
||||
languageOptions: {
|
||||
globals: globals.browser,
|
||||
parserOptions: { ecmaFeatures: { jsx: true } },
|
||||
},
|
||||
},
|
||||
])
|
||||
@@ -0,0 +1,20 @@
|
||||
<!doctype html>
|
||||
<html lang="ru">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<meta name="theme-color" content="#4361EE" />
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
||||
<meta name="apple-mobile-web-app-title" content="Осколкам" />
|
||||
<meta name="description" content="Панель управления — бронирование стекол" />
|
||||
<title>Осколкам.Нет</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.jsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -30,6 +30,7 @@
|
||||
"@testing-library/user-event": "^14.6.1",
|
||||
"@types/react": "^19.2.14",
|
||||
"@types/react-dom": "^19.2.3",
|
||||
"@vite-pwa/assets-generator": "^1.0.2",
|
||||
"@vitejs/plugin-react": "^6.0.1",
|
||||
"eslint": "^10.2.1",
|
||||
"eslint-plugin-react-hooks": "^7.1.1",
|
||||
@@ -37,6 +38,7 @@
|
||||
"globals": "^17.5.0",
|
||||
"jsdom": "^29.1.1",
|
||||
"vite": "^8.0.10",
|
||||
"vite-plugin-pwa": "^1.3.0",
|
||||
"vitest": "^4.1.5"
|
||||
}
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 9.3 KiB |
@@ -0,0 +1,24 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<symbol id="bluesky-icon" viewBox="0 0 16 17">
|
||||
<g clip-path="url(#bluesky-clip)"><path fill="#08060d" d="M7.75 7.735c-.693-1.348-2.58-3.86-4.334-5.097-1.68-1.187-2.32-.981-2.74-.79C.188 2.065.1 2.812.1 3.251s.241 3.602.398 4.13c.52 1.744 2.367 2.333 4.07 2.145-2.495.37-4.71 1.278-1.805 4.512 3.196 3.309 4.38-.71 4.987-2.746.608 2.036 1.307 5.91 4.93 2.746 2.72-2.746.747-4.143-1.747-4.512 1.702.189 3.55-.4 4.07-2.145.156-.528.397-3.691.397-4.13s-.088-1.186-.575-1.406c-.42-.19-1.06-.395-2.741.79-1.755 1.24-3.64 3.752-4.334 5.099"/></g>
|
||||
<defs><clipPath id="bluesky-clip"><path fill="#fff" d="M.1.85h15.3v15.3H.1z"/></clipPath></defs>
|
||||
</symbol>
|
||||
<symbol id="discord-icon" viewBox="0 0 20 19">
|
||||
<path fill="#08060d" d="M16.224 3.768a14.5 14.5 0 0 0-3.67-1.153c-.158.286-.343.67-.47.976a13.5 13.5 0 0 0-4.067 0c-.128-.306-.317-.69-.476-.976A14.4 14.4 0 0 0 3.868 3.77C1.546 7.28.916 10.703 1.231 14.077a14.7 14.7 0 0 0 4.5 2.306q.545-.748.965-1.587a9.5 9.5 0 0 1-1.518-.74q.191-.14.372-.293c2.927 1.369 6.107 1.369 8.999 0q.183.152.372.294-.723.437-1.52.74.418.838.963 1.588a14.6 14.6 0 0 0 4.504-2.308c.37-3.911-.63-7.302-2.644-10.309m-9.13 8.234c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.894 0 1.614.82 1.599 1.82.001 1-.705 1.82-1.6 1.82m5.91 0c-.878 0-1.599-.82-1.599-1.82 0-.998.705-1.82 1.6-1.82.893 0 1.614.82 1.599 1.82 0 1-.706 1.82-1.6 1.82"/>
|
||||
</symbol>
|
||||
<symbol id="documentation-icon" viewBox="0 0 21 20">
|
||||
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="m15.5 13.333 1.533 1.322c.645.555.967.833.967 1.178s-.322.623-.967 1.179L15.5 18.333m-3.333-5-1.534 1.322c-.644.555-.966.833-.966 1.178s.322.623.966 1.179l1.534 1.321"/>
|
||||
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M17.167 10.836v-4.32c0-1.41 0-2.117-.224-2.68-.359-.906-1.118-1.621-2.08-1.96-.599-.21-1.349-.21-2.848-.21-2.623 0-3.935 0-4.983.369-1.684.591-3.013 1.842-3.641 3.428C3 6.449 3 7.684 3 10.154v2.122c0 2.558 0 3.838.706 4.726q.306.383.713.671c.76.536 1.79.64 3.581.66"/>
|
||||
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M3 10a2.78 2.78 0 0 1 2.778-2.778c.555 0 1.209.097 1.748-.047.48-.129.854-.503.982-.982.145-.54.048-1.194.048-1.749a2.78 2.78 0 0 1 2.777-2.777"/>
|
||||
</symbol>
|
||||
<symbol id="github-icon" viewBox="0 0 19 19">
|
||||
<path fill="#08060d" fill-rule="evenodd" d="M9.356 1.85C5.05 1.85 1.57 5.356 1.57 9.694a7.84 7.84 0 0 0 5.324 7.44c.387.079.528-.168.528-.376 0-.182-.013-.805-.013-1.454-2.165.467-2.616-.935-2.616-.935-.349-.91-.864-1.143-.864-1.143-.71-.48.051-.48.051-.48.787.051 1.2.805 1.2.805.695 1.194 1.817.857 2.268.649.064-.507.27-.857.49-1.052-1.728-.182-3.545-.857-3.545-3.87 0-.857.31-1.558.8-2.104-.078-.195-.349-1 .077-2.078 0 0 .657-.208 2.14.805a7.5 7.5 0 0 1 1.946-.26c.657 0 1.328.092 1.946.26 1.483-1.013 2.14-.805 2.14-.805.426 1.078.155 1.883.078 2.078.502.546.799 1.247.799 2.104 0 3.013-1.818 3.675-3.558 3.87.284.247.528.714.528 1.454 0 1.052-.012 1.896-.012 2.156 0 .208.142.455.528.377a7.84 7.84 0 0 0 5.324-7.441c.013-4.338-3.48-7.844-7.773-7.844" clip-rule="evenodd"/>
|
||||
</symbol>
|
||||
<symbol id="social-icon" viewBox="0 0 20 20">
|
||||
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M12.5 6.667a4.167 4.167 0 1 0-8.334 0 4.167 4.167 0 0 0 8.334 0"/>
|
||||
<path fill="none" stroke="#aa3bff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.35" d="M2.5 16.667a5.833 5.833 0 0 1 8.75-5.053m3.837.474.513 1.035c.07.144.257.282.414.309l.93.155c.596.1.736.536.307.965l-.723.73a.64.64 0 0 0-.152.531l.207.903c.164.715-.213.991-.84.618l-.872-.52a.63.63 0 0 0-.577 0l-.872.52c-.624.373-1.003.094-.84-.618l.207-.903a.64.64 0 0 0-.152-.532l-.723-.729c-.426-.43-.289-.864.306-.964l.93-.156a.64.64 0 0 0 .412-.31l.513-1.034c.28-.562.735-.562 1.012 0"/>
|
||||
</symbol>
|
||||
<symbol id="x-icon" viewBox="0 0 19 19">
|
||||
<path fill="#08060d" fill-rule="evenodd" d="M1.893 1.98c.052.072 1.245 1.769 2.653 3.77l2.892 4.114c.183.261.333.48.333.486s-.068.089-.152.183l-.522.593-.765.867-3.597 4.087c-.375.426-.734.834-.798.905a1 1 0 0 0-.118.148c0 .01.236.017.664.017h.663l.729-.83c.4-.457.796-.906.879-.999a692 692 0 0 0 1.794-2.038c.034-.037.301-.34.594-.675l.551-.624.345-.392a7 7 0 0 1 .34-.374c.006 0 .93 1.306 2.052 2.903l2.084 2.965.045.063h2.275c1.87 0 2.273-.003 2.266-.021-.008-.02-1.098-1.572-3.894-5.547-2.013-2.862-2.28-3.246-2.273-3.266.008-.019.282-.332 2.085-2.38l2-2.274 1.567-1.782c.022-.028-.016-.03-.65-.03h-.674l-.3.342a871 871 0 0 1-1.782 2.025c-.067.075-.405.458-.75.852a100 100 0 0 1-.803.91c-.148.172-.299.344-.99 1.127-.304.343-.32.358-.345.327-.015-.019-.904-1.282-1.976-2.808L6.365 1.85H1.8zm1.782.91 8.078 11.294c.772 1.08 1.413 1.973 1.425 1.984.016.017.241.02 1.05.017l1.03-.004-2.694-3.766L7.796 5.75 5.722 2.852l-1.039-.004-1.039-.004z" clip-rule="evenodd"/>
|
||||
</symbol>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 4.2 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 807 B |
@@ -0,0 +1,119 @@
|
||||
import React from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import { XCircle, CheckCircle } from 'lucide-react';
|
||||
|
||||
const Comparison = () => {
|
||||
return (
|
||||
<section style={{ backgroundColor: 'var(--bg-light)' }}>
|
||||
<div className="container">
|
||||
<div style={{ textAlign: 'center', marginBottom: '80px' }}>
|
||||
<motion.h2
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6 }}
|
||||
viewport={{ once: true }}
|
||||
style={{ fontSize: '3.5rem', marginBottom: '20px' }}
|
||||
>
|
||||
ПРЕИМУЩЕСТВА <span className="text-accent-blue">Осколкам.Нет</span>
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 0.2 }}
|
||||
viewport={{ once: true }}
|
||||
style={{ color: 'var(--text-muted)', fontSize: '1.3rem', maxWidth: '800px', margin: '0 auto' }}
|
||||
>
|
||||
Сравнительный анализ структурной целостности при высокоэнергетическом кинетическом воздействии.
|
||||
</motion.p>
|
||||
</div>
|
||||
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(320px, 1fr))', gap: '40px' }}>
|
||||
|
||||
{/* Standard Glass */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, x: -50 }}
|
||||
whileInView={{ opacity: 1, x: 0 }}
|
||||
transition={{ duration: 0.6, type: "spring" }}
|
||||
viewport={{ once: true }}
|
||||
className="glass-panel"
|
||||
style={{
|
||||
padding: '50px',
|
||||
borderTop: '5px solid #ef4444',
|
||||
background: 'linear-gradient(to bottom, rgba(239, 68, 68, 0.03), transparent)'
|
||||
}}
|
||||
>
|
||||
<h3 style={{ fontSize: '2.2rem', marginBottom: '35px', color: '#ef4444' }}>Обычное стекло</h3>
|
||||
|
||||
<ul style={{ listStyle: 'none', padding: 0, display: 'flex', flexDirection: 'column', gap: '25px' }}>
|
||||
<motion.li whileHover={{ x: 10 }} style={{ display: 'flex', gap: '20px', alignItems: 'flex-start', transition: 'all 0.2s' }}>
|
||||
<XCircle color="#ef4444" size={28} style={{ flexShrink: 0 }} />
|
||||
<div>
|
||||
<h4 style={{ fontSize: '1.2rem', marginBottom: '8px', color: 'var(--text-main)' }}>Смертоносные осколки</h4>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1rem', lineHeight: '1.5' }}>Мгновенно разбивается, образуя острые, быстро летящие фрагменты.</p>
|
||||
</div>
|
||||
</motion.li>
|
||||
<motion.li whileHover={{ x: 10 }} style={{ display: 'flex', gap: '20px', alignItems: 'flex-start', transition: 'all 0.2s' }}>
|
||||
<XCircle color="#ef4444" size={28} style={{ flexShrink: 0 }} />
|
||||
<div>
|
||||
<h4 style={{ fontSize: '1.2rem', marginBottom: '8px', color: 'var(--text-main)' }}>Нулевая защита от взрыва</h4>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1rem', lineHeight: '1.5' }}>Ударные волны беспрепятственно проникают внутрь помещения.</p>
|
||||
</div>
|
||||
</motion.li>
|
||||
<motion.li whileHover={{ x: 10 }} style={{ display: 'flex', gap: '20px', alignItems: 'flex-start', transition: 'all 0.2s' }}>
|
||||
<XCircle color="#ef4444" size={28} style={{ flexShrink: 0 }} />
|
||||
<div>
|
||||
<h4 style={{ fontSize: '1.2rem', marginBottom: '8px', color: 'var(--text-main)' }}>Прорыв периметра</h4>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1rem', lineHeight: '1.5' }}>Обеспечивает мгновенный доступ злоумышленникам после разрушения.</p>
|
||||
</div>
|
||||
</motion.li>
|
||||
</ul>
|
||||
</motion.div>
|
||||
|
||||
{/* Armored Glass */}
|
||||
<motion.div
|
||||
initial={{ opacity: 0, x: 50 }}
|
||||
whileInView={{ opacity: 1, x: 0 }}
|
||||
transition={{ duration: 0.6, type: "spring", delay: 0.2 }}
|
||||
viewport={{ once: true }}
|
||||
className="glass-panel"
|
||||
style={{
|
||||
padding: '50px',
|
||||
borderTop: '5px solid var(--accent-blue)',
|
||||
background: 'linear-gradient(to bottom, rgba(14, 165, 233, 0.05), transparent)',
|
||||
boxShadow: '0 10px 40px rgba(14, 165, 233, 0.1)'
|
||||
}}
|
||||
>
|
||||
<h3 style={{ fontSize: '2.2rem', marginBottom: '35px', color: 'var(--accent-blue)' }}>Система Осколкам.Нет</h3>
|
||||
|
||||
<ul style={{ listStyle: 'none', padding: 0, display: 'flex', flexDirection: 'column', gap: '25px' }}>
|
||||
<motion.li whileHover={{ x: 10 }} style={{ display: 'flex', gap: '20px', alignItems: 'flex-start', transition: 'all 0.2s' }}>
|
||||
<CheckCircle className="text-accent-blue" size={28} style={{ flexShrink: 0 }} />
|
||||
<div>
|
||||
<h4 style={{ fontSize: '1.2rem', marginBottom: '8px', color: 'var(--text-main)' }}>Полное удержание осколков</h4>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1rem', lineHeight: '1.5' }}>Осколки остаются надежно зафиксированными на полимерной матрице. Нет разлетающихся фрагментов.</p>
|
||||
</div>
|
||||
</motion.li>
|
||||
<motion.li whileHover={{ x: 10 }} style={{ display: 'flex', gap: '20px', alignItems: 'flex-start', transition: 'all 0.2s' }}>
|
||||
<CheckCircle className="text-accent-blue" size={28} style={{ flexShrink: 0 }} />
|
||||
<div>
|
||||
<h4 style={{ fontSize: '1.2rem', marginBottom: '8px', color: 'var(--text-main)' }}>Нейтрализация ударной волны</h4>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1rem', lineHeight: '1.5' }}>Эффективно поглощает и рассеивает экстремальную кинетическую энергию.</p>
|
||||
</div>
|
||||
</motion.li>
|
||||
<motion.li whileHover={{ x: 10 }} style={{ display: 'flex', gap: '20px', alignItems: 'flex-start', transition: 'all 0.2s' }}>
|
||||
<CheckCircle className="text-accent-blue" size={28} style={{ flexShrink: 0 }} />
|
||||
<div>
|
||||
<h4 style={{ fontSize: '1.2rem', marginBottom: '8px', color: 'var(--text-main)' }}>Непрерывный периметр</h4>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1rem', lineHeight: '1.5' }}>Сохраняет структурную целостность окна, предотвращая несанкционированное проникновение.</p>
|
||||
</div>
|
||||
</motion.li>
|
||||
</ul>
|
||||
</motion.div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default Comparison;
|
||||
@@ -0,0 +1,85 @@
|
||||
import React from 'react';
|
||||
import { Shield, Phone, Mail, MapPin } from 'lucide-react';
|
||||
import { motion } from 'framer-motion';
|
||||
|
||||
const Footer = () => {
|
||||
return (
|
||||
<footer style={{ backgroundColor: 'var(--bg-lighter)', padding: '80px 0 30px 0', borderTop: '1px solid var(--border-light)' }}>
|
||||
<div className="container">
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(280px, 1fr))', gap: '50px', marginBottom: '60px' }}>
|
||||
|
||||
<div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '10px', marginBottom: '25px' }}>
|
||||
<img src="/oskolkam.png" alt="Осколкам.Нет" style={{ height: '36px', objectFit: 'contain' }} />
|
||||
<span style={{ fontFamily: 'var(--font-heading)', fontSize: '1.4rem', fontWeight: 800, letterSpacing: '1px', color: 'var(--text-main)' }}>
|
||||
Осколкам.<span className="text-accent-blue">Нет</span>
|
||||
</span>
|
||||
</div>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1rem', lineHeight: '1.8' }}>
|
||||
Передовые системы поглощения кинетической энергии и смягчения последствий взрывов для объектов с повышенным риском. Защита активов, обеспечение непрерывности работы.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4 style={{ color: 'var(--text-main)', marginBottom: '25px', fontSize: '1.2rem', fontWeight: 700 }}>Круглосуточный диспетчерский центр</h4>
|
||||
{/* ИЗМЕНИТЬ КОНТАКТНЫЕ ДАННЫЕ ЗДЕСЬ (Телефон и Email) */}
|
||||
<ul style={{ listStyle: 'none', padding: 0, display: 'flex', flexDirection: 'column', gap: '18px' }}>
|
||||
<li style={{ display: 'flex', alignItems: 'center', gap: '12px', color: 'var(--text-muted)' }}>
|
||||
<Phone size={20} className="text-accent-orange" />
|
||||
<span style={{ fontWeight: 600 }}>8 (800) 555-DEFENSE</span>
|
||||
</li>
|
||||
<li style={{ display: 'flex', alignItems: 'center', gap: '12px', color: 'var(--text-muted)' }}>
|
||||
<Mail size={20} className="text-accent-blue" />
|
||||
<span style={{ fontWeight: 600 }}>ops@oskolkam.net</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4 style={{ color: 'var(--text-main)', marginBottom: '25px', fontSize: '1.2rem', fontWeight: 700 }}>Зона обслуживания</h4>
|
||||
<div style={{ display: 'flex', alignItems: 'flex-start', gap: '12px', color: 'var(--text-muted)' }}>
|
||||
<MapPin size={22} className="text-accent-orange" style={{ flexShrink: 0, marginTop: '2px' }} />
|
||||
<div>
|
||||
<p style={{ marginBottom: '8px', fontWeight: 600, color: 'var(--text-main)' }}>Возможности глобального развертывания.</p>
|
||||
<p style={{ fontSize: '0.95rem', lineHeight: '1.6' }}>Работаем по всей территории РФ и в странах СНГ. Возможен выезд спецбригады в любую точку.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div style={{
|
||||
marginBottom: '40px',
|
||||
padding: '20px 25px',
|
||||
backgroundColor: 'rgba(234, 88, 12, 0.05)',
|
||||
borderLeft: '4px solid var(--accent-orange)',
|
||||
borderRadius: '6px'
|
||||
}}>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '0.95rem', margin: 0, lineHeight: '1.6' }}>
|
||||
<strong style={{ color: 'var(--accent-orange)' }}>Важное уведомление:</strong> Мы не можем гарантировать 100% защиту от прямого прилета БПЛА или крупнокалиберных снарядов. Основная задача наших бронирующих пленок — критически снизить риск поражения разлетающимися осколками стекла и частично погасить энергию ударной волны.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div style={{
|
||||
borderTop: '1px solid var(--border-light)',
|
||||
paddingTop: '30px',
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
flexWrap: 'wrap',
|
||||
gap: '20px',
|
||||
color: 'var(--text-muted)',
|
||||
fontSize: '0.95rem'
|
||||
}}>
|
||||
<p>© {new Date().getFullYear()} Осколкам.Нет. Все права защищены.</p>
|
||||
<div style={{ display: 'flex', gap: '30px' }}>
|
||||
<motion.a whileHover={{ color: 'var(--accent-blue)' }} href="#" style={{ transition: 'color 0.3s ease' }}>Политика конфиденциальности</motion.a>
|
||||
<motion.a whileHover={{ color: 'var(--accent-blue)' }} href="#" style={{ transition: 'color 0.3s ease' }}>Условия предоставления услуг</motion.a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
||||
export default Footer;
|
||||
@@ -0,0 +1,130 @@
|
||||
import React from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import { ShieldAlert, ArrowRight } from 'lucide-react';
|
||||
|
||||
const Hero = () => {
|
||||
return (
|
||||
<section
|
||||
style={{
|
||||
minHeight: '100vh',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
position: 'relative',
|
||||
paddingTop: '80px',
|
||||
overflow: 'hidden'
|
||||
}}
|
||||
>
|
||||
{/* Background Visuals for Light Theme */}
|
||||
<div
|
||||
style={{
|
||||
position: 'absolute',
|
||||
top: 0, left: 0, right: 0, bottom: 0,
|
||||
backgroundImage: 'url("https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop")',
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
opacity: 0.15, /* Lighter opacity */
|
||||
zIndex: -1,
|
||||
}}
|
||||
/>
|
||||
<div
|
||||
style={{
|
||||
position: 'absolute',
|
||||
top: 0, left: 0, right: 0, bottom: 0,
|
||||
background: 'linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.7) 100%)',
|
||||
zIndex: -1,
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* Animated Background Elements */}
|
||||
<motion.div
|
||||
animate={{
|
||||
scale: [1, 1.2, 1],
|
||||
opacity: [0.1, 0.2, 0.1]
|
||||
}}
|
||||
transition={{ duration: 8, repeat: Infinity, ease: "easeInOut" }}
|
||||
style={{
|
||||
position: 'absolute',
|
||||
top: '20%', right: '10%',
|
||||
width: '400px', height: '400px',
|
||||
borderRadius: '50%',
|
||||
background: 'radial-gradient(circle, var(--accent-blue) 0%, transparent 70%)',
|
||||
filter: 'blur(60px)',
|
||||
zIndex: -1
|
||||
}}
|
||||
/>
|
||||
|
||||
<div className="container" style={{ position: 'relative', zIndex: 1 }}>
|
||||
<div style={{ maxWidth: '850px' }}>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: -20 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.8, type: "spring" }}
|
||||
style={{
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
gap: '12px',
|
||||
padding: '10px 20px',
|
||||
background: 'rgba(14, 165, 233, 0.1)',
|
||||
border: '1px solid rgba(14, 165, 233, 0.3)',
|
||||
borderRadius: '50px',
|
||||
marginBottom: '35px',
|
||||
boxShadow: '0 4px 15px rgba(14, 165, 233, 0.1)'
|
||||
}}
|
||||
>
|
||||
<ShieldAlert size={20} className="text-accent-blue" />
|
||||
<span className="text-accent-blue" style={{ fontWeight: 700, letterSpacing: '1.5px', fontSize: '0.9rem', textTransform: 'uppercase' }}>
|
||||
Защита военного класса
|
||||
</span>
|
||||
</motion.div>
|
||||
|
||||
<motion.h1
|
||||
initial={{ opacity: 0, x: -50 }}
|
||||
animate={{ opacity: 1, x: 0 }}
|
||||
transition={{ duration: 0.8, delay: 0.2, type: "spring" }}
|
||||
style={{
|
||||
fontSize: '4.8rem',
|
||||
lineHeight: 1.05,
|
||||
marginBottom: '30px',
|
||||
color: 'var(--text-main)',
|
||||
textShadow: '0 10px 30px rgba(15, 23, 42, 0.05)'
|
||||
}}
|
||||
>
|
||||
ПРЕВРАТИТЕ ВАШИ ОКНА В <span className="text-accent-blue">ЗАЩИТНЫЙ ЩИТ</span>.
|
||||
</motion.h1>
|
||||
|
||||
<motion.p
|
||||
initial={{ opacity: 0, x: -50 }}
|
||||
animate={{ opacity: 1, x: 0 }}
|
||||
transition={{ duration: 0.8, delay: 0.4, type: "spring" }}
|
||||
style={{
|
||||
fontSize: '1.5rem',
|
||||
color: 'var(--text-muted)',
|
||||
marginBottom: '45px',
|
||||
maxWidth: '700px',
|
||||
fontWeight: 400
|
||||
}}
|
||||
>
|
||||
Промышленные бронирующие пленки, разработанные для максимального поглощения кинетической энергии: защита от взрывных волн и ударов дронов.
|
||||
</motion.p>
|
||||
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 30 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.8, delay: 0.6, type: "spring" }}
|
||||
style={{ display: 'flex', gap: '25px', flexWrap: 'wrap' }}
|
||||
>
|
||||
<a href="#estimator" className="btn-primary" style={{ display: 'flex', alignItems: 'center', gap: '10px' }}>
|
||||
<span>Рассчитать стоимость</span>
|
||||
<ArrowRight size={20} />
|
||||
</a>
|
||||
<a href="#technology" className="btn-outline" style={{ display: 'inline-block' }}>
|
||||
Смотреть характеристики
|
||||
</a>
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default Hero;
|
||||
@@ -0,0 +1,76 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Shield, PhoneCall } from 'lucide-react';
|
||||
import { motion } from 'framer-motion';
|
||||
|
||||
const Navbar = () => {
|
||||
const [scrolled, setScrolled] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const handleScroll = () => {
|
||||
setScrolled(window.scrollY > 50);
|
||||
};
|
||||
window.addEventListener('scroll', handleScroll);
|
||||
return () => window.removeEventListener('scroll', handleScroll);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<motion.nav
|
||||
initial={{ y: -100 }}
|
||||
animate={{ y: 0 }}
|
||||
transition={{ duration: 0.6, type: "spring", bounce: 0.2 }}
|
||||
style={{
|
||||
position: 'fixed',
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
zIndex: 1000,
|
||||
padding: scrolled ? '15px 0' : '25px 0',
|
||||
transition: 'all 0.4s ease',
|
||||
borderBottom: scrolled ? '1px solid var(--glass-border)' : '1px solid transparent',
|
||||
backgroundColor: scrolled ? 'var(--glass-bg)' : 'transparent',
|
||||
backdropFilter: scrolled ? 'blur(16px)' : 'none',
|
||||
boxShadow: scrolled ? 'var(--glass-shadow)' : 'none',
|
||||
}}
|
||||
>
|
||||
<div className="container" style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<motion.div
|
||||
whileHover={{ scale: 1.05 }}
|
||||
style={{ display: 'flex', alignItems: 'center', gap: '10px', cursor: 'pointer' }}
|
||||
>
|
||||
<img src="/oskolkam.png" alt="Осколкам.Нет" style={{ height: '40px', objectFit: 'contain' }} />
|
||||
<span style={{ fontFamily: 'var(--font-heading)', fontSize: '1.6rem', fontWeight: 800, letterSpacing: '1px', color: 'var(--text-main)' }}>
|
||||
Осколкам.<span className="text-accent-blue">Нет</span>
|
||||
</span>
|
||||
</motion.div>
|
||||
|
||||
<div style={{ display: 'flex', gap: '35px', alignItems: 'center' }}>
|
||||
<motion.a whileHover={{ y: -2, color: 'var(--accent-blue)' }} href="#technology" style={{ fontWeight: 600, fontSize: '0.95rem', transition: 'color 0.3s ease' }}>Технологии</motion.a>
|
||||
<motion.a whileHover={{ y: -2, color: 'var(--accent-blue)' }} href="#applications" style={{ fontWeight: 600, fontSize: '0.95rem', transition: 'color 0.3s ease' }}>Применение</motion.a>
|
||||
<motion.a whileHover={{ y: -2, color: 'var(--accent-blue)' }} href="#estimator" style={{ fontWeight: 600, fontSize: '0.95rem', transition: 'color 0.3s ease' }}>Калькулятор</motion.a>
|
||||
|
||||
{/* ИЗМЕНИТЬ НОМЕР ДЛЯ СВЯЗИ ЗДЕСЬ (атрибут href и текст ниже) */}
|
||||
<motion.a
|
||||
whileHover={{ scale: 1.05 }}
|
||||
whileTap={{ scale: 0.95 }}
|
||||
href="tel:112"
|
||||
className="btn-outline"
|
||||
style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: '10px',
|
||||
padding: '10px 24px',
|
||||
fontSize: '0.9rem',
|
||||
borderColor: 'var(--accent-orange)',
|
||||
color: 'var(--accent-orange)'
|
||||
}}
|
||||
>
|
||||
<PhoneCall size={18} />
|
||||
<span>Экстренный вызов</span>
|
||||
</motion.a>
|
||||
</div>
|
||||
</div>
|
||||
</motion.nav>
|
||||
);
|
||||
};
|
||||
|
||||
export default Navbar;
|
||||
@@ -0,0 +1,150 @@
|
||||
import React from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import { Layers, Zap, ShieldCheck } from 'lucide-react';
|
||||
|
||||
const PhysicsOfSafety = () => {
|
||||
const containerVariants = {
|
||||
hidden: { opacity: 0 },
|
||||
visible: {
|
||||
opacity: 1,
|
||||
transition: { staggerChildren: 0.2 }
|
||||
}
|
||||
};
|
||||
|
||||
const itemVariants = {
|
||||
hidden: { x: 50, opacity: 0 },
|
||||
visible: { x: 0, opacity: 1, transition: { duration: 0.6, type: "spring" } }
|
||||
};
|
||||
|
||||
return (
|
||||
<section id="technology" style={{ backgroundColor: 'var(--bg-lighter)', position: 'relative' }}>
|
||||
<div className="container">
|
||||
<div style={{ textAlign: 'center', marginBottom: '80px' }}>
|
||||
<motion.h2
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6 }}
|
||||
viewport={{ once: true }}
|
||||
style={{ fontSize: '3.5rem', marginBottom: '20px' }}
|
||||
>
|
||||
ФИЗИКА <span className="text-accent-blue">БЕЗОПАСНОСТИ</span>
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 0.2 }}
|
||||
viewport={{ once: true }}
|
||||
style={{ color: 'var(--text-muted)', fontSize: '1.3rem', maxWidth: '800px', margin: '0 auto' }}
|
||||
>
|
||||
Наша запатентованная многослойная полимерная структура поглощает кинетическую энергию, нейтрализует взрывные волны и предотвращает катастрофическое разрушение стекла.
|
||||
</motion.p>
|
||||
</div>
|
||||
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(350px, 1fr))', gap: '60px', alignItems: 'center' }}>
|
||||
|
||||
{/* Visual Animation Block */}
|
||||
<div style={{ position: 'relative', height: '500px', display: 'flex', justifyContent: 'center', alignItems: 'center', perspective: '1000px' }}>
|
||||
<motion.div
|
||||
initial={{ rotateX: 60, rotateZ: -45 }}
|
||||
whileInView={{ rotateX: 60, rotateZ: 315 }}
|
||||
transition={{ duration: 25, repeat: Infinity, ease: "linear" }}
|
||||
viewport={{ once: true }}
|
||||
style={{ position: 'relative', width: '280px', height: '280px', transformStyle: 'preserve-3d' }}
|
||||
>
|
||||
{/* Layer 1: Glass */}
|
||||
<motion.div style={{
|
||||
position: 'absolute', width: '100%', height: '100%',
|
||||
background: 'rgba(14, 165, 233, 0.05)',
|
||||
border: '2px solid rgba(14, 165, 233, 0.3)',
|
||||
boxShadow: 'inset 0 0 30px rgba(14, 165, 233, 0.1)',
|
||||
backdropFilter: 'blur(4px)',
|
||||
transform: 'translateZ(0px)',
|
||||
display: 'flex', justifyContent: 'center', alignItems: 'center',
|
||||
color: 'var(--accent-blue)', fontWeight: '700', letterSpacing: '1px'
|
||||
}}>
|
||||
БАЗОВОЕ СТЕКЛО
|
||||
</motion.div>
|
||||
|
||||
{/* Layer 2: Adhesive */}
|
||||
<motion.div
|
||||
initial={{ transform: 'translateZ(0px)', opacity: 0 }}
|
||||
whileInView={{ transform: 'translateZ(50px)', opacity: 1 }}
|
||||
transition={{ duration: 1.2, delay: 0.5, type: "spring" }}
|
||||
viewport={{ margin: "-100px" }}
|
||||
style={{
|
||||
position: 'absolute', width: '100%', height: '100%',
|
||||
background: 'rgba(234, 88, 12, 0.05)',
|
||||
border: '2px dashed var(--accent-orange)',
|
||||
backdropFilter: 'blur(2px)',
|
||||
display: 'flex', justifyContent: 'center', alignItems: 'center',
|
||||
color: 'var(--accent-orange)', fontWeight: '700', letterSpacing: '1px'
|
||||
}}>
|
||||
ПОГЛОЩЕНИЕ ЭНЕРГИИ
|
||||
</motion.div>
|
||||
|
||||
{/* Layer 3: Polymer Film */}
|
||||
<motion.div
|
||||
initial={{ transform: 'translateZ(0px)', opacity: 0 }}
|
||||
whileInView={{ transform: 'translateZ(100px)', opacity: 1 }}
|
||||
transition={{ duration: 1.2, delay: 1, type: "spring" }}
|
||||
viewport={{ margin: "-100px" }}
|
||||
style={{
|
||||
position: 'absolute', width: '100%', height: '100%',
|
||||
background: 'rgba(245, 158, 11, 0.1)',
|
||||
border: '3px solid var(--accent-yellow)',
|
||||
boxShadow: '0 0 40px rgba(245, 158, 11, 0.2)',
|
||||
backdropFilter: 'blur(1px)',
|
||||
display: 'flex', justifyContent: 'center', alignItems: 'center',
|
||||
color: 'var(--accent-yellow)', fontWeight: '800', letterSpacing: '2px'
|
||||
}}>
|
||||
БРОНЕПОЛИМЕР
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
{/* Features Text */}
|
||||
<motion.div
|
||||
variants={containerVariants}
|
||||
initial="hidden"
|
||||
whileInView="visible"
|
||||
viewport={{ once: true, margin: "-100px" }}
|
||||
style={{ display: 'flex', flexDirection: 'column', gap: '25px' }}
|
||||
>
|
||||
<motion.div variants={itemVariants} className="glass-panel" style={{ padding: '35px', display: 'flex', gap: '25px', transition: 'all 0.3s' }}>
|
||||
<div style={{ background: 'rgba(245, 158, 11, 0.15)', padding: '18px', borderRadius: '50%', height: 'fit-content' }}>
|
||||
<Zap className="text-accent-yellow" size={28} />
|
||||
</div>
|
||||
<div>
|
||||
<h3 style={{ fontSize: '1.5rem', marginBottom: '10px', color: 'var(--text-main)' }}>Кинетическое рассеивание</h3>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1.05rem', lineHeight: '1.6' }}>При ударе ударная волна мгновенно распределяется по всей площади поверхности пленки, радикально снижая локальное давление.</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
<motion.div variants={itemVariants} className="glass-panel" style={{ padding: '35px', display: 'flex', gap: '25px', transition: 'all 0.3s' }}>
|
||||
<div style={{ background: 'rgba(234, 88, 12, 0.15)', padding: '18px', borderRadius: '50%', height: 'fit-content' }}>
|
||||
<Layers className="text-accent-orange" size={28} />
|
||||
</div>
|
||||
<div>
|
||||
<h3 style={{ fontSize: '1.5rem', marginBottom: '10px', color: 'var(--text-main)' }}>Микрослойная технология</h3>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1.05rem', lineHeight: '1.6' }}>Разработана с использованием десятков чередующихся микроскопических слоев полиэстера, скрепленных высокопрочными акриловыми адгезивами.</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
|
||||
<motion.div variants={itemVariants} className="glass-panel" style={{ padding: '35px', display: 'flex', gap: '25px', transition: 'all 0.3s' }}>
|
||||
<div style={{ background: 'rgba(14, 165, 233, 0.15)', padding: '18px', borderRadius: '50%', height: 'fit-content' }}>
|
||||
<ShieldCheck className="text-accent-blue" size={28} />
|
||||
</div>
|
||||
<div>
|
||||
<h3 style={{ fontSize: '1.5rem', marginBottom: '10px', color: 'var(--text-main)' }}>Удержание осколков</h3>
|
||||
<p style={{ color: 'var(--text-muted)', fontSize: '1.05rem', lineHeight: '1.6' }}>Даже при полном разрушении стеклянного полотна, смертоносные осколки остаются прочно закрепленными на эластичной матрице.</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
</motion.div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default PhysicsOfSafety;
|
||||
@@ -0,0 +1,53 @@
|
||||
import React from 'react';
|
||||
import { ShieldCheck, CheckCircle2, Award, FileBadge } from 'lucide-react';
|
||||
import { motion } from 'framer-motion';
|
||||
|
||||
const TrustBar = () => {
|
||||
const standards = [
|
||||
{ icon: <Award size={36} className="text-accent-blue" />, title: 'ISO 9001:2015', sub: 'Менеджмент качества' },
|
||||
{ icon: <ShieldCheck size={36} className="text-accent-orange" />, title: 'Класс А1/А2/А3', sub: 'Ударопрочность' },
|
||||
{ icon: <CheckCircle2 size={36} className="text-accent-blue" />, title: 'ГОСТ 30826-2014', sub: 'Защитное остекление' },
|
||||
{ icon: <FileBadge size={36} className="text-accent-orange" />, title: 'EN 356', sub: 'Европейский стандарт' }
|
||||
];
|
||||
|
||||
return (
|
||||
<section style={{ padding: '70px 0', borderTop: '1px solid var(--border-light)', borderBottom: '1px solid var(--border-light)', background: 'var(--bg-lighter)' }}>
|
||||
<div className="container">
|
||||
<div style={{ textAlign: 'center', marginBottom: '50px' }}>
|
||||
<motion.h3
|
||||
initial={{ opacity: 0 }}
|
||||
whileInView={{ opacity: 1 }}
|
||||
viewport={{ once: true }}
|
||||
style={{ fontSize: '1.3rem', color: 'var(--text-muted)', letterSpacing: '2px', textTransform: 'uppercase', fontWeight: '700' }}
|
||||
>
|
||||
СЕРТИФИЦИРОВАНО ПО МЕЖДУНАРОДНЫМ СТАНДАРТАМ БЕЗОПАСНОСТИ
|
||||
</motion.h3>
|
||||
</div>
|
||||
|
||||
<div style={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'center', gap: '50px' }}>
|
||||
{standards.map((std, index) => (
|
||||
<motion.div
|
||||
key={index}
|
||||
initial={{ opacity: 0, scale: 0.8 }}
|
||||
whileInView={{ opacity: 1, scale: 1 }}
|
||||
transition={{ duration: 0.5, delay: index * 0.1, type: "spring" }}
|
||||
whileHover={{ y: -5 }}
|
||||
viewport={{ once: true }}
|
||||
style={{ display: 'flex', alignItems: 'center', gap: '20px', minWidth: '220px', background: 'var(--bg-light)', padding: '20px', borderRadius: '12px', boxShadow: '0 4px 15px rgba(15,23,42,0.03)', border: '1px solid var(--border-light)' }}
|
||||
>
|
||||
<div style={{ padding: '12px', background: 'rgba(255,255,255,1)', borderRadius: '50%', boxShadow: '0 2px 10px rgba(15,23,42,0.05)' }}>
|
||||
{std.icon}
|
||||
</div>
|
||||
<div>
|
||||
<h4 style={{ fontWeight: 800, margin: 0, fontSize: '1.2rem', color: 'var(--text-main)' }}>{std.title}</h4>
|
||||
<span style={{ fontSize: '0.9rem', color: 'var(--text-muted)', textTransform: 'uppercase', fontWeight: '500' }}>{std.sub}</span>
|
||||
</div>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default TrustBar;
|
||||
@@ -0,0 +1,119 @@
|
||||
import React from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import { Factory, Building2, Home, Power } from 'lucide-react';
|
||||
|
||||
const UseCases = () => {
|
||||
const cases = [
|
||||
{
|
||||
title: 'Критическая инфраструктура',
|
||||
icon: <Power size={56} className="text-accent-blue" />,
|
||||
desc: 'Защита электростанций, подстанций и центров обработки данных от саботажа и атак дронов с полезной нагрузкой.',
|
||||
bgImg: 'https://images.unsplash.com/photo-1544439160-c3d5963f1ecf?q=80&w=1000&auto=format&fit=crop'
|
||||
},
|
||||
{
|
||||
title: 'Промышленные объекты',
|
||||
icon: <Factory size={56} className="text-accent-orange" />,
|
||||
desc: 'Снижение рисков внутренних взрывов и внешних кинетических угроз в производственных помещениях.',
|
||||
bgImg: 'https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=1000&auto=format&fit=crop'
|
||||
},
|
||||
{
|
||||
title: 'Коммерческие штаб-квартиры',
|
||||
icon: <Building2 size={56} className="text-accent-yellow" />,
|
||||
desc: 'Защита корпоративных активов и кабинетов руководства от промышленного шпионажа, взлома и вандализма.',
|
||||
bgImg: 'https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1000&auto=format&fit=crop'
|
||||
},
|
||||
{
|
||||
title: 'Частные дома и квартиры',
|
||||
icon: <Home size={56} className="text-accent-blue" />,
|
||||
desc: 'Периметральная безопасность для частной недвижимости. Защита оконных проемов в квартирах, загородных домах и паник-комнатах.',
|
||||
bgImg: 'https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=1000&auto=format&fit=crop'
|
||||
}
|
||||
];
|
||||
|
||||
return (
|
||||
<section id="applications" style={{ position: 'relative', backgroundColor: 'var(--bg-light)' }}>
|
||||
<div className="container">
|
||||
<div style={{ textAlign: 'center', marginBottom: '80px' }}>
|
||||
<motion.h2
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6 }}
|
||||
viewport={{ once: true }}
|
||||
style={{ fontSize: '3.5rem', marginBottom: '20px' }}
|
||||
>
|
||||
ЗОНЫ <span className="text-accent-orange">ПРИМЕНЕНИЯ</span>
|
||||
</motion.h2>
|
||||
<motion.p
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.6, delay: 0.2 }}
|
||||
viewport={{ once: true }}
|
||||
style={{ color: 'var(--text-muted)', fontSize: '1.3rem', maxWidth: '800px', margin: '0 auto' }}
|
||||
>
|
||||
Масштабируемые протоколы защиты, разработанные для различных условий эксплуатации и уровней угроз.
|
||||
</motion.p>
|
||||
</div>
|
||||
|
||||
<div style={{
|
||||
display: 'grid',
|
||||
gridTemplateColumns: 'repeat(auto-fit, minmax(280px, 1fr))',
|
||||
gap: '40px'
|
||||
}}>
|
||||
{cases.map((useCase, index) => (
|
||||
<motion.div
|
||||
key={index}
|
||||
initial={{ opacity: 0, y: 50, scale: 0.95 }}
|
||||
whileInView={{ opacity: 1, y: 0, scale: 1 }}
|
||||
transition={{ duration: 0.6, delay: index * 0.15, type: "spring" }}
|
||||
viewport={{ once: true, margin: "-50px" }}
|
||||
className="glass-panel"
|
||||
style={{
|
||||
position: 'relative',
|
||||
overflow: 'hidden',
|
||||
padding: '50px 35px',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
gap: '25px',
|
||||
minHeight: '420px',
|
||||
cursor: 'pointer'
|
||||
}}
|
||||
whileHover={{
|
||||
y: -15,
|
||||
boxShadow: '0 20px 40px rgba(15, 23, 42, 0.12)'
|
||||
}}
|
||||
>
|
||||
{/* Background Image with Lighter Overlay */}
|
||||
<motion.div
|
||||
style={{
|
||||
position: 'absolute',
|
||||
top: 0, left: 0, right: 0, bottom: 0,
|
||||
backgroundImage: `url(${useCase.bgImg})`,
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
opacity: 0.05,
|
||||
zIndex: 0
|
||||
}}
|
||||
whileHover={{ opacity: 0.15, scale: 1.05 }}
|
||||
transition={{ duration: 0.4 }}
|
||||
/>
|
||||
|
||||
<div style={{ position: 'relative', zIndex: 1, height: '100%', display: 'flex', flexDirection: 'column' }}>
|
||||
<motion.div
|
||||
initial={{ scale: 1 }}
|
||||
whileHover={{ scale: 1.1, rotate: 5 }}
|
||||
style={{ marginBottom: '25px', display: 'inline-block' }}
|
||||
>
|
||||
{useCase.icon}
|
||||
</motion.div>
|
||||
<h3 style={{ fontSize: '1.6rem', marginBottom: '15px', color: 'var(--text-main)' }}>{useCase.title}</h3>
|
||||
<p style={{ color: 'var(--text-muted)', lineHeight: '1.7', fontSize: '1.05rem', marginTop: 'auto' }}>{useCase.desc}</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default UseCases;
|
||||
@@ -0,0 +1,13 @@
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { registerSW } from 'virtual:pwa-register'
|
||||
import './index.css'
|
||||
import App from './App.jsx'
|
||||
|
||||
registerSW({ immediate: true })
|
||||
|
||||
createRoot(document.getElementById('root')).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
v2.98.2
|
||||
@@ -0,0 +1 @@
|
||||
v2.189.0
|
||||
@@ -0,0 +1 @@
|
||||
{"ref":"magrumsifwlstasgencj","name":"houseassassin's Project","organization_id":"hlvxojmdqcbacdeiwwjc","organization_slug":"hlvxojmdqcbacdeiwwjc"}
|
||||
@@ -0,0 +1 @@
|
||||
postgresql://postgres.magrumsifwlstasgencj@aws-0-eu-west-1.pooler.supabase.com:5432/postgres
|
||||
@@ -0,0 +1 @@
|
||||
17.6.1.113
|
||||
@@ -0,0 +1 @@
|
||||
magrumsifwlstasgencj
|
||||
@@ -0,0 +1 @@
|
||||
v14.5
|
||||
@@ -0,0 +1 @@
|
||||
operation-ergonomics
|
||||
@@ -0,0 +1 @@
|
||||
v1.54.0
|
||||
@@ -1,8 +1,42 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
plugins: [
|
||||
react(),
|
||||
VitePWA({
|
||||
registerType: 'autoUpdate',
|
||||
includeAssets: ['favicon.svg', 'favicon.ico', 'apple-touch-icon-180x180.png'],
|
||||
manifest: {
|
||||
name: 'Осколкам.Нет',
|
||||
short_name: 'Осколкам',
|
||||
description: 'Панель управления — бронирование стекол',
|
||||
theme_color: '#4361EE',
|
||||
background_color: '#F5F7FA',
|
||||
display: 'standalone',
|
||||
start_url: '/admin/kanban',
|
||||
scope: '/',
|
||||
orientation: 'portrait-primary',
|
||||
icons: [
|
||||
{ src: 'pwa-64x64.png', sizes: '64x64', type: 'image/png' },
|
||||
{ src: 'pwa-192x192.png', sizes: '192x192', type: 'image/png' },
|
||||
{ src: 'pwa-512x512.png', sizes: '512x512', type: 'image/png' },
|
||||
{ src: 'maskable-icon-512x512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' },
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}'],
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: /^https:\/\/fonts\.googleapis\.com\/.*/i,
|
||||
handler: 'CacheFirst',
|
||||
options: { cacheName: 'google-fonts-cache', expiration: { maxEntries: 10, maxAgeSeconds: 60 * 60 * 24 * 365 } },
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
test: {
|
||||
environment: 'jsdom',
|
||||
globals: true,
|
||||
|
||||