-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
252 lines (242 loc) · 12.1 KB
/
index.html
File metadata and controls
252 lines (242 loc) · 12.1 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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Python String Operations - Interactive Learning</title>
<link rel="stylesheet" href="css/styles.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500&display=swap"
rel="stylesheet">
</head>
<body>
<!-- Navigation -->
<nav class="navbar">
<div class="nav-container">
<div class="nav-brand">
<img src="images/XsBa6XqIMKRJ.png" alt="Python Logo" class="nav-logo">
<span class="nav-title">Python String Operations</span>
</div>
<div class="nav-menu" id="nav-menu">
<a href="#home" class="nav-link active" data-section="home">
<i class="fas fa-home"></i> Home
</a>
<a href="#basics" class="nav-link" data-section="basics">
<i class="fas fa-play-circle"></i> Basics
</a>
<a href="#operations" class="nav-link" data-section="operations">
<i class="fas fa-cogs"></i> Operations
</a>
<a href="#methods" class="nav-link" data-section="methods">
<i class="fas fa-tools"></i> Methods
</a>
<a href="#practice" class="nav-link" data-section="practice">
<i class="fas fa-dumbbell"></i> Practice
</a>
<a href="#reference" class="nav-link" data-section="reference">
<i class="fas fa-book"></i> Reference
</a>
<a href="#about" class="nav-link" data-section="about">
<i class="fas fa-info-circle"></i> About
</a>
</div>
<div class="nav-toggle" id="nav-toggle">
<span class="bar"></span>
<span class="bar"></span>
<span class="bar"></span>
</div>
</div>
</nav>
<!-- Progress Bar -->
<div class="progress-container">
<div class="progress-bar" id="progress-bar"></div>
</div>
<!-- Main Content -->
<main class="main-content">
<!-- Home Section -->
<section id="home" class="section active">
<div class="hero">
<div class="hero-content">
<div class="hero-text">
<h1 class="hero-title">
Master Python String Operations
<span class="highlight">Interactively</span>
</h1>
<p class="hero-description">
Dive deep into Python's powerful string manipulation capabilities with interactive examples,
animations, and comprehensive exercises designed to make learning engaging and effective.
</p>
<div class="hero-stats">
<div class="stat">
<div class="stat-number">50+</div>
<div class="stat-label">String Methods</div>
</div>
<div class="stat">
<div class="stat-number">100+</div>
<div class="stat-label">Interactive Examples</div>
</div>
<div class="stat">
<div class="stat-number">200+</div>
<div class="stat-label">Practice Questions</div>
</div>
</div>
<div class="hero-buttons">
<button class="btn btn-primary" data-section="basics">
<i class="fas fa-rocket"></i> Start Learning
</button>
<button class="btn btn-secondary" data-section="reference">
<i class="fas fa-book-open"></i> Quick Reference
</button>
</div>
</div>
<div class="hero-visual">
<div class="code-preview">
<div class="code-header">
<div class="code-dots">
<span class="dot red"></span>
<span class="dot yellow"></span>
<span class="dot green"></span>
</div>
<span class="code-title">string_operations.py</span>
</div>
<div class="code-content">
<div class="code-line">
<span class="line-number">1</span>
<span class="code-text">
<span class="keyword">text</span> = <span class="string">"Hello, Python!"</span>
</span>
</div>
<div class="code-line">
<span class="line-number">2</span>
<span class="code-text">
<span class="keyword">print</span>(<span class="variable">text</span>.<span
class="method">upper</span>())
</span>
</div>
<div class="code-line">
<span class="line-number">3</span>
<span class="code-text">
<span class="keyword">print</span>(<span class="variable">text</span>.<span
class="method">replace</span>(<span class="string">"Python"</span>, <span
class="string">"World"</span>))
</span>
</div>
<div class="code-line">
<span class="line-number">4</span>
<span class="code-text">
<span class="keyword">print</span>(<span class="variable">text</span>[<span
class="number">0</span>:<span class="number">5</span>])
</span>
</div>
</div>
<div class="code-output">
<div class="output-line typing-animation">HELLO, PYTHON!</div>
<div class="output-line typing-animation" style="animation-delay: 1s;">Hello, World!
</div>
<div class="output-line typing-animation" style="animation-delay: 2s;">Hello</div>
</div>
</div>
</div>
</div>
</div>
<!-- Features Section -->
<div class="features">
<div class="container">
<h2 class="section-title">Why Learn String Operations?</h2>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-database"></i>
</div>
<h3>Data Processing</h3>
<p>Clean, validate, and transform text data from various sources like files, APIs, and user
input.</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-globe"></i>
</div>
<h3>Web Development</h3>
<p>Build dynamic web applications with proper text formatting, validation, and content
generation.</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-chart-line"></i>
</div>
<h3>Data Analysis</h3>
<p>Extract insights from textual data using string manipulation techniques in data science
projects.</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<i class="fas fa-robot"></i>
</div>
<h3>Automation</h3>
<p>Create powerful scripts that process text files, generate reports, and automate
repetitive tasks.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Other sections will be loaded dynamically -->
<section id="basics" class="section"></section>
<section id="operations" class="section"></section>
<section id="methods" class="section"></section>
<section id="practice" class="section"></section>
<section id="reference" class="section"></section>
<section id="about" class="section"></section>
</main>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer-content">
<div class="footer-section">
<h3>Created by</h3>
<p class="creator-name">Krutarth Raychura</p>
<p class="creator-title">Python Educator & Developer</p>
</div>
<div class="footer-section">
<h3>Learning Resources</h3>
<ul>
<li><a href="#basics">String Basics</a></li>
<li><a href="#methods">String Methods</a></li>
<li><a href="#practice">Practice Exercises</a></li>
<li><a href="#reference">Quick Reference</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Connect</h3>
<div class="social-links">
<a href="#" class="social-link"><i class="fab fa-github"></i></a>
<a href="#" class="social-link"><i class="fab fa-linkedin"></i></a>
<a href="#" class="social-link"><i class="fab fa-twitter"></i></a>
<a href="#" class="social-link"><i class="fab fa-youtube"></i></a>
</div>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 Krutarth Raychura. All rights reserved. | Made with ❤️ for Python learners</p>
</div>
</div>
</footer>
<!-- Loading Screen -->
<div class="loading-screen" id="loading-screen">
<div class="loading-content">
<div class="loading-logo">
<img src="images/XsBa6XqIMKRJ.png" alt="Python Logo">
</div>
<div class="loading-text">Loading Python String Operations...</div>
<div class="loading-bar">
<div class="loading-progress"></div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="js/main.js"></script>
<script src="js/animations.js"></script>
<script src="js/interactive.js"></script>
</body>
</html>