create-template-html-css 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -0
- package/README.md +111 -1
- package/bin/cli.js +20 -3
- package/package.json +13 -8
- package/src/generator.js +1 -1
- package/src/inserter.js +1 -1
- package/templates/animated-card/index.html +85 -0
- package/templates/animated-card/script.js +37 -0
- package/templates/animated-card/style.css +254 -0
- package/templates/dashboard-grid/index.html +247 -0
- package/templates/dashboard-grid/script.js +157 -0
- package/templates/dashboard-grid/style.css +558 -0
- package/templates/fade-gallery/index.html +134 -0
- package/templates/fade-gallery/script.js +123 -0
- package/templates/fade-gallery/style.css +309 -0
- package/templates/grid-layout/index.html +164 -0
- package/templates/grid-layout/script.js +75 -0
- package/templates/grid-layout/style.css +452 -0
- package/templates/masonry-grid/index.html +196 -0
- package/templates/masonry-grid/script.js +122 -0
- package/templates/masonry-grid/style.css +259 -0
- package/templates/spinner/index.html +56 -0
- package/templates/spinner/script.js +22 -0
- package/templates/spinner/style.css +207 -0
- package/templates/typing-effect/index.html +58 -0
- package/templates/typing-effect/script.js +247 -0
- package/templates/typing-effect/style.css +253 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>{{name}} - Typing Effect Component</title>
|
|
7
|
+
<link rel="stylesheet" href="style.css">
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div class="container">
|
|
11
|
+
<!-- Hero Section with Typing Effect -->
|
|
12
|
+
<section class="hero-section">
|
|
13
|
+
<h1 class="main-title">Welcome to <span class="gradient-text">Amazing</span></h1>
|
|
14
|
+
<p class="typing-text" id="typingText"></p>
|
|
15
|
+
<div class="cursor"></div>
|
|
16
|
+
</section>
|
|
17
|
+
|
|
18
|
+
<!-- Multiple Typing Examples -->
|
|
19
|
+
<section class="examples-section">
|
|
20
|
+
<h2>Typing Animation Examples</h2>
|
|
21
|
+
|
|
22
|
+
<div class="example-card">
|
|
23
|
+
<h3>Simple Typing</h3>
|
|
24
|
+
<p class="typed" data-text="This text appears letter by letter..."></p>
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<div class="example-card">
|
|
28
|
+
<h3>Multiple Lines</h3>
|
|
29
|
+
<div class="multi-line-typed">
|
|
30
|
+
<p class="typed-line" data-text="First line appears first..." data-delay="0"></p>
|
|
31
|
+
<p class="typed-line" data-text="Then the second line..." data-delay="2000"></p>
|
|
32
|
+
<p class="typed-line" data-text="And finally the third!" data-delay="4000"></p>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div class="example-card">
|
|
37
|
+
<h3>Rotating Text</h3>
|
|
38
|
+
<p class="rotating-container">
|
|
39
|
+
I am <span class="rotating-text" id="rotatingText"></span>
|
|
40
|
+
</p>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div class="example-card highlight">
|
|
44
|
+
<h3>Code Typing Effect</h3>
|
|
45
|
+
<pre class="code-block"><code id="codeTyping"></code></pre>
|
|
46
|
+
</div>
|
|
47
|
+
</section>
|
|
48
|
+
|
|
49
|
+
<!-- Action Buttons -->
|
|
50
|
+
<section class="action-section">
|
|
51
|
+
<button class="btn btn-primary" id="restartBtn">Restart Animations</button>
|
|
52
|
+
<button class="btn btn-secondary" id="pauseBtn">Pause</button>
|
|
53
|
+
</section>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<script src="script.js"></script>
|
|
57
|
+
</body>
|
|
58
|
+
</html>
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
// Typing Effect Component JavaScript
|
|
2
|
+
|
|
3
|
+
class TypeWriter {
|
|
4
|
+
constructor(element, text, speed = 100, deleteSpeed = 50) {
|
|
5
|
+
this.element = element;
|
|
6
|
+
this.text = text;
|
|
7
|
+
this.speed = speed;
|
|
8
|
+
this.deleteSpeed = deleteSpeed;
|
|
9
|
+
this.index = 0;
|
|
10
|
+
this.isDeleting = false;
|
|
11
|
+
this.isPaused = false;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type() {
|
|
15
|
+
if (this.isPaused) return;
|
|
16
|
+
|
|
17
|
+
const current = this.text.substring(0, this.index);
|
|
18
|
+
this.element.textContent = current;
|
|
19
|
+
|
|
20
|
+
if (!this.isDeleting && this.index < this.text.length) {
|
|
21
|
+
this.index++;
|
|
22
|
+
setTimeout(() => this.type(), this.speed);
|
|
23
|
+
} else if (this.isDeleting && this.index > 0) {
|
|
24
|
+
this.index--;
|
|
25
|
+
setTimeout(() => this.type(), this.deleteSpeed);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
start() {
|
|
30
|
+
this.type();
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
pause() {
|
|
34
|
+
this.isPaused = true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
resume() {
|
|
38
|
+
this.isPaused = false;
|
|
39
|
+
this.type();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
reset() {
|
|
43
|
+
this.index = 0;
|
|
44
|
+
this.isDeleting = false;
|
|
45
|
+
this.element.textContent = '';
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Main typing text with multiple phrases
|
|
50
|
+
const mainPhrases = [
|
|
51
|
+
"We create stunning animations...",
|
|
52
|
+
"We build modern websites...",
|
|
53
|
+
"We design beautiful interfaces...",
|
|
54
|
+
"We bring ideas to life..."
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
let mainPhraseIndex = 0;
|
|
58
|
+
let mainTyping = null;
|
|
59
|
+
let isPaused = false;
|
|
60
|
+
|
|
61
|
+
function typeMainText() {
|
|
62
|
+
if (isPaused) return;
|
|
63
|
+
|
|
64
|
+
const element = document.getElementById('typingText');
|
|
65
|
+
const text = mainPhrases[mainPhraseIndex];
|
|
66
|
+
|
|
67
|
+
let index = 0;
|
|
68
|
+
element.textContent = '';
|
|
69
|
+
|
|
70
|
+
function typeChar() {
|
|
71
|
+
if (isPaused) return;
|
|
72
|
+
|
|
73
|
+
if (index < text.length) {
|
|
74
|
+
element.textContent += text.charAt(index);
|
|
75
|
+
index++;
|
|
76
|
+
setTimeout(typeChar, 80);
|
|
77
|
+
} else {
|
|
78
|
+
setTimeout(deleteText, 2000);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function deleteText() {
|
|
83
|
+
if (isPaused) return;
|
|
84
|
+
|
|
85
|
+
if (index > 0) {
|
|
86
|
+
element.textContent = text.substring(0, index - 1);
|
|
87
|
+
index--;
|
|
88
|
+
setTimeout(deleteText, 40);
|
|
89
|
+
} else {
|
|
90
|
+
mainPhraseIndex = (mainPhraseIndex + 1) % mainPhrases.length;
|
|
91
|
+
setTimeout(typeMainText, 500);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
typeChar();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Simple typing for example cards
|
|
99
|
+
function typeSimpleText(element, text, speed = 100) {
|
|
100
|
+
let index = 0;
|
|
101
|
+
element.textContent = '';
|
|
102
|
+
|
|
103
|
+
function type() {
|
|
104
|
+
if (isPaused) return;
|
|
105
|
+
|
|
106
|
+
if (index < text.length) {
|
|
107
|
+
element.textContent += text.charAt(index);
|
|
108
|
+
index++;
|
|
109
|
+
setTimeout(type, speed);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
type();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Rotating text effect
|
|
117
|
+
const rotatingWords = ["a Developer", "a Designer", "Creative", "Innovative", "Passionate"];
|
|
118
|
+
let rotatingIndex = 0;
|
|
119
|
+
|
|
120
|
+
function rotateText() {
|
|
121
|
+
if (isPaused) return;
|
|
122
|
+
|
|
123
|
+
const element = document.getElementById('rotatingText');
|
|
124
|
+
const word = rotatingWords[rotatingIndex];
|
|
125
|
+
|
|
126
|
+
let index = 0;
|
|
127
|
+
element.textContent = '';
|
|
128
|
+
|
|
129
|
+
function typeWord() {
|
|
130
|
+
if (isPaused) return;
|
|
131
|
+
|
|
132
|
+
if (index < word.length) {
|
|
133
|
+
element.textContent += word.charAt(index);
|
|
134
|
+
index++;
|
|
135
|
+
setTimeout(typeWord, 100);
|
|
136
|
+
} else {
|
|
137
|
+
setTimeout(deleteWord, 2000);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function deleteWord() {
|
|
142
|
+
if (isPaused) return;
|
|
143
|
+
|
|
144
|
+
if (index > 0) {
|
|
145
|
+
element.textContent = word.substring(0, index - 1);
|
|
146
|
+
index--;
|
|
147
|
+
setTimeout(deleteWord, 50);
|
|
148
|
+
} else {
|
|
149
|
+
rotatingIndex = (rotatingIndex + 1) % rotatingWords.length;
|
|
150
|
+
setTimeout(rotateText, 500);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
typeWord();
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Code typing effect
|
|
158
|
+
const codeText = `function createAnimation() {
|
|
159
|
+
const element = document.querySelector('.box');
|
|
160
|
+
element.style.animation = 'fadeIn 1s ease';
|
|
161
|
+
console.log('Animation started!');
|
|
162
|
+
}`;
|
|
163
|
+
|
|
164
|
+
function typeCode() {
|
|
165
|
+
if (isPaused) return;
|
|
166
|
+
|
|
167
|
+
const element = document.getElementById('codeTyping');
|
|
168
|
+
let index = 0;
|
|
169
|
+
element.textContent = '';
|
|
170
|
+
|
|
171
|
+
function type() {
|
|
172
|
+
if (isPaused) return;
|
|
173
|
+
|
|
174
|
+
if (index < codeText.length) {
|
|
175
|
+
element.textContent += codeText.charAt(index);
|
|
176
|
+
index++;
|
|
177
|
+
setTimeout(type, 50);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
type();
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// Initialize all typing effects
|
|
185
|
+
function initializeTyping() {
|
|
186
|
+
// Main typing text
|
|
187
|
+
typeMainText();
|
|
188
|
+
|
|
189
|
+
// Simple typing examples
|
|
190
|
+
const simpleTyped = document.querySelector('.typed');
|
|
191
|
+
if (simpleTyped) {
|
|
192
|
+
const text = simpleTyped.getAttribute('data-text');
|
|
193
|
+
setTimeout(() => typeSimpleText(simpleTyped, text), 500);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Multi-line typing
|
|
197
|
+
const typedLines = document.querySelectorAll('.typed-line');
|
|
198
|
+
typedLines.forEach(line => {
|
|
199
|
+
const text = line.getAttribute('data-text');
|
|
200
|
+
const delay = parseInt(line.getAttribute('data-delay')) || 0;
|
|
201
|
+
setTimeout(() => typeSimpleText(line, text, 80), delay);
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
// Rotating text
|
|
205
|
+
setTimeout(rotateText, 1000);
|
|
206
|
+
|
|
207
|
+
// Code typing
|
|
208
|
+
setTimeout(typeCode, 1500);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// Event listeners
|
|
212
|
+
document.addEventListener('DOMContentLoaded', () => {
|
|
213
|
+
initializeTyping();
|
|
214
|
+
|
|
215
|
+
// Restart button
|
|
216
|
+
const restartBtn = document.getElementById('restartBtn');
|
|
217
|
+
if (restartBtn) {
|
|
218
|
+
restartBtn.addEventListener('click', () => {
|
|
219
|
+
isPaused = false;
|
|
220
|
+
mainPhraseIndex = 0;
|
|
221
|
+
rotatingIndex = 0;
|
|
222
|
+
|
|
223
|
+
// Clear all text
|
|
224
|
+
document.getElementById('typingText').textContent = '';
|
|
225
|
+
document.getElementById('rotatingText').textContent = '';
|
|
226
|
+
document.getElementById('codeTyping').textContent = '';
|
|
227
|
+
|
|
228
|
+
document.querySelectorAll('.typed, .typed-line').forEach(el => {
|
|
229
|
+
el.textContent = '';
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
// Restart animations
|
|
233
|
+
initializeTyping();
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Pause button
|
|
238
|
+
const pauseBtn = document.getElementById('pauseBtn');
|
|
239
|
+
if (pauseBtn) {
|
|
240
|
+
pauseBtn.addEventListener('click', () => {
|
|
241
|
+
isPaused = !isPaused;
|
|
242
|
+
pauseBtn.textContent = isPaused ? 'Resume' : 'Pause';
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
|
|
247
|
+
console.log('Typing Effect Component initialized');
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
* {
|
|
2
|
+
margin: 0;
|
|
3
|
+
padding: 0;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
9
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
10
|
+
min-height: 100vh;
|
|
11
|
+
padding: 40px 20px;
|
|
12
|
+
color: #333;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.container {
|
|
16
|
+
max-width: 1100px;
|
|
17
|
+
margin: 0 auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Hero Section */
|
|
21
|
+
.hero-section {
|
|
22
|
+
text-align: center;
|
|
23
|
+
padding: 80px 20px;
|
|
24
|
+
background: white;
|
|
25
|
+
border-radius: 30px;
|
|
26
|
+
box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
|
|
27
|
+
margin-bottom: 50px;
|
|
28
|
+
position: relative;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.hero-section::before {
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 0;
|
|
36
|
+
left: -100%;
|
|
37
|
+
width: 100%;
|
|
38
|
+
height: 100%;
|
|
39
|
+
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
|
|
40
|
+
animation: shine 3s infinite;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@keyframes shine {
|
|
44
|
+
0% {
|
|
45
|
+
left: -100%;
|
|
46
|
+
}
|
|
47
|
+
50%, 100% {
|
|
48
|
+
left: 100%;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.main-title {
|
|
53
|
+
font-size: 3.5rem;
|
|
54
|
+
color: #333;
|
|
55
|
+
margin-bottom: 20px;
|
|
56
|
+
font-weight: 700;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.gradient-text {
|
|
60
|
+
background: linear-gradient(135deg, #667eea, #764ba2);
|
|
61
|
+
-webkit-background-clip: text;
|
|
62
|
+
-webkit-text-fill-color: transparent;
|
|
63
|
+
background-clip: text;
|
|
64
|
+
animation: gradientShift 3s ease infinite;
|
|
65
|
+
background-size: 200% 200%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes gradientShift {
|
|
69
|
+
0%, 100% {
|
|
70
|
+
background-position: 0% 50%;
|
|
71
|
+
}
|
|
72
|
+
50% {
|
|
73
|
+
background-position: 100% 50%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.typing-text {
|
|
78
|
+
font-size: 1.8rem;
|
|
79
|
+
color: #555;
|
|
80
|
+
min-height: 60px;
|
|
81
|
+
display: inline-block;
|
|
82
|
+
position: relative;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.cursor {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
width: 3px;
|
|
88
|
+
height: 30px;
|
|
89
|
+
background: #667eea;
|
|
90
|
+
animation: blink 0.8s infinite;
|
|
91
|
+
margin-left: 5px;
|
|
92
|
+
vertical-align: middle;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes blink {
|
|
96
|
+
0%, 50% {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
51%, 100% {
|
|
100
|
+
opacity: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Examples Section */
|
|
105
|
+
.examples-section {
|
|
106
|
+
margin-bottom: 50px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.examples-section h2 {
|
|
110
|
+
text-align: center;
|
|
111
|
+
color: white;
|
|
112
|
+
font-size: 2.5rem;
|
|
113
|
+
margin-bottom: 40px;
|
|
114
|
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.example-card {
|
|
118
|
+
background: white;
|
|
119
|
+
padding: 40px;
|
|
120
|
+
border-radius: 20px;
|
|
121
|
+
margin-bottom: 30px;
|
|
122
|
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
123
|
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.example-card:hover {
|
|
127
|
+
transform: translateY(-5px);
|
|
128
|
+
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.example-card.highlight {
|
|
132
|
+
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
|
133
|
+
color: white;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.example-card h3 {
|
|
137
|
+
font-size: 1.8rem;
|
|
138
|
+
margin-bottom: 20px;
|
|
139
|
+
color: #333;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.example-card.highlight h3 {
|
|
143
|
+
color: white;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.typed {
|
|
147
|
+
font-size: 1.3rem;
|
|
148
|
+
color: #555;
|
|
149
|
+
min-height: 30px;
|
|
150
|
+
font-weight: 500;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.multi-line-typed {
|
|
154
|
+
margin-top: 10px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.typed-line {
|
|
158
|
+
font-size: 1.2rem;
|
|
159
|
+
color: #555;
|
|
160
|
+
margin: 10px 0;
|
|
161
|
+
min-height: 30px;
|
|
162
|
+
font-weight: 500;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.rotating-container {
|
|
166
|
+
font-size: 1.5rem;
|
|
167
|
+
color: #333;
|
|
168
|
+
font-weight: 600;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.rotating-text {
|
|
172
|
+
color: #667eea;
|
|
173
|
+
font-weight: 700;
|
|
174
|
+
display: inline-block;
|
|
175
|
+
min-width: 200px;
|
|
176
|
+
text-align: left;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Code Block */
|
|
180
|
+
.code-block {
|
|
181
|
+
background: rgba(0, 0, 0, 0.2);
|
|
182
|
+
padding: 25px;
|
|
183
|
+
border-radius: 10px;
|
|
184
|
+
font-family: 'Courier New', monospace;
|
|
185
|
+
font-size: 1.1rem;
|
|
186
|
+
color: white;
|
|
187
|
+
overflow-x: auto;
|
|
188
|
+
line-height: 1.6;
|
|
189
|
+
min-height: 150px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Action Section */
|
|
193
|
+
.action-section {
|
|
194
|
+
text-align: center;
|
|
195
|
+
padding: 30px;
|
|
196
|
+
background: white;
|
|
197
|
+
border-radius: 20px;
|
|
198
|
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.btn {
|
|
202
|
+
padding: 15px 40px;
|
|
203
|
+
margin: 10px;
|
|
204
|
+
border: none;
|
|
205
|
+
border-radius: 30px;
|
|
206
|
+
font-size: 1.1rem;
|
|
207
|
+
font-weight: 600;
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
transition: all 0.3s ease;
|
|
210
|
+
text-transform: uppercase;
|
|
211
|
+
letter-spacing: 1px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.btn-primary {
|
|
215
|
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
216
|
+
color: white;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.btn-primary:hover {
|
|
220
|
+
transform: translateY(-3px);
|
|
221
|
+
box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.btn-secondary {
|
|
225
|
+
background: white;
|
|
226
|
+
color: #667eea;
|
|
227
|
+
border: 2px solid #667eea;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.btn-secondary:hover {
|
|
231
|
+
background: #667eea;
|
|
232
|
+
color: white;
|
|
233
|
+
transform: translateY(-3px);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/* Responsive Design */
|
|
237
|
+
@media (max-width: 768px) {
|
|
238
|
+
.main-title {
|
|
239
|
+
font-size: 2.5rem;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.typing-text {
|
|
243
|
+
font-size: 1.3rem;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.example-card {
|
|
247
|
+
padding: 25px;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.hero-section {
|
|
251
|
+
padding: 50px 20px;
|
|
252
|
+
}
|
|
253
|
+
}
|