-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
197 lines (165 loc) · 5.89 KB
/
Copy pathstyle.css
File metadata and controls
197 lines (165 loc) · 5.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
/* --- Переменные для удобной смены цветов --- */
:root {
--color-bg: #0B0213; /* Глубокий темно-фиолетовый */
--color-primary: #A855F7; /* Яркий фиолетовый */
--color-secondary: #6366F1; /* Индиго/Синий */
--color-text: #E0E0E0; /* Светлый текст */
--color-text-darker: #A0A0A0; /* Более темный текст (для параграфов) */
}
/* --- Базовые стили --- */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--color-bg);
color: var(--color-text);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 40px 20px;
/* Эффект "сияния" на фоне */
background-image: radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.15), transparent 40%),
radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.15), transparent 40%);
overflow-x: hidden; /* Убираем горизонтальный скролл от анимаций */
}
.container {
width: 100%;
max-width: 1000px;
text-align: center;
}
/* --- Секция 1: Главный экран (Hero) --- */
.hero {
/* Анимация появления при загрузке */
animation: fadeInSlideUp 0.8s ease-out;
}
.hero h1 {
font-size: clamp(2.5rem, 6vw, 4rem); /* Адаптивный размер шрифта */
font-weight: 700;
color: #FFFFFF;
/* Градиентный текст */
background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 1rem;
}
.hero .subtitle {
font-size: clamp(1rem, 2.5vw, 1.25rem);
color: var(--color-text-darker);
line-height: 1.6;
margin-bottom: 2.5rem;
/* Анимация появления */
animation: fadeInSlideUp 0.8s ease-out 0.2s;
animation-fill-mode: backwards; /* Чтобы не "прыгало" до начала анимации */
}
.cta-button {
display: inline-block;
padding: 16px 36px;
font-size: 1.1rem;
font-weight: 600;
color: #FFFFFF;
text-decoration: none;
border: none;
border-radius: 50px; /* Форма "пилюли" */
/* Градиентный фон */
background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
/* Мягкая тень (свечение) */
box-shadow: 0 5px 20px rgba(168, 85, 247, 0.3);
transition: all 0.3s ease;
/* Анимация появления */
animation: fadeInSlideUp 0.8s ease-out 0.4s;
animation-fill-mode: backwards;
}
.cta-button:hover {
/* Анимация при наведении */
transform: translateY(-3px) scale(1.05);
box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}
.cta-button:active {
transform: translateY(-1px) scale(1.02);
}
/* --- Секция 2: Преимущества (Features) --- */
.features-grid {
display: grid;
/* Адаптивная сетка: 1-3 колонки в зависимости от ширины экрана */
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-top: 5rem;
}
.feature-card {
/* Эффект "стекла" (Glassmorphism) */
background: rgba(255, 255, 255, 0.03); /* Полупрозрачный фон */
border: 1px solid rgba(255, 255, 255, 0.1); /* Легкая рамка */
backdrop-filter: blur(10px); /* Размытие фона */
border-radius: 16px;
padding: 2rem;
text-align: left;
position: relative; /* Для градиентной рамки */
overflow: hidden; /* Для градиентной рамки */
/* Начальное состояние для анимации (скрыто) */
opacity: 0;
transform: translateY(30px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Видимое состояние (добавляется через JS) */
.feature-card.is-visible {
opacity: 1;
transform: translateY(0);
}
/* Градиентная рамка при наведении (как в вашем примере) */
.feature-card::before {
content: '';
position: absolute;
inset: -2px; /* Чуть больше, чем сама карточка */
background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
z-index: -1;
border-radius: 18px;
opacity: 0;
transition: opacity 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px); /* Легкий "подъем" */
}
.feature-card:hover::before {
opacity: 1; /* Показываем градиентную рамку */
}
.feature-icon {
width: 50px;
height: 50px;
margin-bottom: 1.5rem;
/* Градиент для иконки */
color: var(--color-primary);
filter: drop-shadow(0 0 10px var(--color-primary));
}
.feature-card h3 {
font-size: 1.4rem;
color: #FFFFFF;
margin-bottom: 0.5rem;
}
.feature-card p {
color: var(--color-text-darker);
line-height: 1.6;
}
/* --- Подвал --- */
footer {
margin-top: 5rem;
color: #777;
font-size: 0.9rem;
/* Анимация появления */
animation: fadeInSlideUp 1s ease-out 0.6s;
animation-fill-mode: backwards;
}
/* --- Ключевые кадры для анимаций --- */
@keyframes fadeInSlideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}