-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
357 lines (326 loc) · 10.2 KB
/
index.html
File metadata and controls
357 lines (326 loc) · 10.2 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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!DOCTYPE html>
<html>
<head>
<title>Programming Website</title>
<style>
body {
background-color: black;
color: white;
font-family: Arial, sans-serif;
font-size: 16px;
text-align: center;
}
.navbar {
background-color: #333;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.navbar-logo {
color: white;
text-decoration: none;
font-size: 24px;
font-weight: bold;
}
.navbar-links {
display: flex;
justify-content: center;
align-items: center;
}
.navbar-links a {
color: white;
text-decoration: none;
margin-right: 10px;
transition: color 0.3s ease;
font-size: 18px;
position: relative;
}
.navbar-links a:hover {
color: rgba(255, 255, 255, 0.7);
}
.navbar-links a:before {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -2px;
left: 50%;
background-color: white;
visibility: hidden;
transform: translateX(-50%);
transition: all 0.3s ease;
}
.navbar-links a:hover:before {
visibility: visible;
width: 100%;
transform: translateX(-50%);
}
.navbar-login {
background-color: white;
color: black;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
}
.navbar-login:hover {
background-color: rgba(255, 255, 255, 0.7);
color: black;
}
.programming-text,
.highlighted-text {
font-family: 'Courier New', monospace;
}
.programming-text {
color: #ffcc00; /* Adjust the color for programmer, coder, developer */
font-weight: bold;
}
.highlighted-text {
color: #00ffcc; /* Adjust the color for Krishss Codes! */
font-size: 24px; /* Increase the font size for emphasis */
font-weight: bold;
}
.about-us {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 20px;
}
.about-details {
width: 50%;
text-align: left;
}
.about-text {
margin-bottom: 20px;
}
.about-image {
width: 50%;
}
.post-cards {
display: flex;
justify-content: center;
align-items: flex-start;
flex-wrap: wrap;
padding: 20px;
}
.post-card {
width: 300px;
height: 300px;
background-color: #333;
border-radius: 5px;
margin: 10px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: transform 0.3s ease;
}
.post-card:hover {
transform: scale(1.05);
}
.post-card a {
color: white;
text-decoration: none;
font-size: 18px;
font-weight: bold;
}
.contact-us {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 20px;
}
.contact-details {
width: 50%;
text-align: left;
}
.contact-form {
width: 50%;
text-align: left;
}
.contact-form input,
.contact-form textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: none;
background-color: 333;
color: white;
}
.contact-form button {
padding: 10px 20px;
border: none;
background-color: white;
color: black;
cursor: pointer;
transition: background-color 0.3s ease;
}
.contact-form button:hover {
background-color: rgba(255, 255, 255, 0.7);
}
#scrollTopBtn {
position: fixed;
bottom: 20px;
right: 20px;
opacity: 0;
transition: opacity 0.3s ease;
background-color: #333;
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 4px;
cursor: pointer;
}
#scrollTopBtn:hover {
background-color: #555;
}
#scrollTopBtn.visible {
opacity: 1;
}
footer {
background-color: #222;
color: #fff;
padding: 20px;
text-align: center;
font-family: monospace;
}
.footer-content {
font-size: 14px;
opacity: 0.8;
}
.footer-content::before,
.footer-content::after {
content: "";
display: block;
height: 1px;
background-color: #fff;
margin: 10px 0;
}
.footer-content::before {
width: 50px;
margin-right: 10px;
display: inline-block;
vertical-align: middle;
}
.footer-content::after {
width: 50px;
margin-left: 10px;
display: inline-block;
vertical-align: middle;
}
</style>
</head>
<body>
<div class="navbar">
<a href="#" class="navbar-logo">Logo</a>
<div class="navbar-links">
<a href="#" style="font-size: 18px;">Home</a>
<a href="#" style="font-size: 18px;">About Us</a>
<a href="#" style="font-size: 18px;">Posts</a>
<a href="#" style="font-size: 18px;">Contact</a>
</div>
<a href="#" class="navbar-login">Login</a>
</div>
<!-- Add this div below the navbar and above the about section -->
<div id="welcome-message"></div>
<div class="about-us">
<div class="about-details">
<h2>About Us</h2>
<div class="about-text">
<p>Hello I'm Krishna, currently I'm in 12th Class and I love to code. Here I post the content related to
python mostly.
</p>
<p>I am a passionate coder and I love to contribute to open source projects.</p>
</div>
<p><strong>Email:</strong> krishsssinghsoni@gmail.com</p>
<p><strong>Phone:</strong> Not available</p>
<p><strong>Address:</strong> Lucknow</p>
</div>
<div class="about-image">
<img src="image.jpg" alt="About Us Image">
</div>
</div>
<div class="post-cards">
<div class="post-card">
<a href="surveypython.html" target="_blank"><h5 > Source Code of Survey using Python </h5>
<p style="font-size: 10px; ">A cheeky survey using python. If you click "Yes," it gives you a nice message.
But if you click "No," it tries to dodge your cursor like a game of cat and mouse.
Is it a prank survey? 😜</p></a>
</div>
<div class="post-cards">
<div class="post-card">
<a href="Survey.html" target="_blank"><h5 > Web Survey </h5>
<p style="font-size: 10px; ">A cheeky survey. If you click "Yes," it gives you a nice message.
But if you click "No," it tries to dodge your cursor like a game of cat and mouse.
Is it a prank survey? 😜</p></a>
</div>
<!--<div class="post-card">
<a href="Atm.html" target="_blank"><h5 >ATM Machine Simulations<br> Python Project</h5>
<p style="font-size: 10px; ">This project is a simulation of an ATM machine<br> implemented
in Python using MySQL as the database.</p></a>-->
</div>
<div class="post-card">
<a href="Format Strings.html" target="_blank"><h5 >Format Strings</h5><br>
<p style="font-size: 10px;">Take a overview on diffrent types of String Formatings </p> </a>
</div>
<div class="post-card">
<a href="image.avif" target="_blank">Post 3</a>
</div>
</div>
<div class="contact-us">
<div class="contact-details">
<h2>Contact Us</h2>
<p>For any inquiries or support, please contact us using the details below:</p>
<p><strong>Email:</strong> krishsssinghsoni@gmail.com</p>
<p><strong>Phone:</strong> N/A</p>
<p><strong>Youtube Channel:</strong>http://www.youtube.com/@krishsscodes </p>
<p><strong>Address:</strong> Luknow, Uttar Pradesh, India</p>
</div>
<div class="contact-form">
<h2>Contact Form</h2>
<form>
<input type="text" name="name" placeholder="Your Name" required>
<input type="email" name="email" placeholder="Your Email" required>
<textarea name="message" placeholder="Your Message" required></textarea>
<button type="submit">Submit</button>
</form>
</div>
</div>
<button id="scrollTopBtn">Scroll to Top</button>
<footer>
<div class="footer-content">
All rights reserved © Krishss Codes
</div>
</footer>
<script>
// Function to set and display the welcome message
function displayWelcomeMessage() {
var currentDate = new Date();
var currentHour = currentDate.getHours();
// Customize the welcome message based on the time of the day
var welcomeMessage;
if (currentHour < 12) {
welcomeMessage = "Good morning, <span class='programming-text'>programmer</span>!<br>Welcome to <span class='highlighted-text'>Krishss Codes!</span>";
} else if (currentHour < 18) {
welcomeMessage = "Good afternoon, <span class='programming-text'>coder</span>!<br>Welcome to <span class='highlighted-text'>Krishss Codes!</span>";
} else {
welcomeMessage = "Good evening, <span class='programming-text'>developer</span>!<br>Welcome to <span class='highlighted-text'>Krishss Codes!</span>";
}
// Insert the welcome message into the div with the id "welcome-message"
document.getElementById("welcome-message").innerHTML = "<p>" + welcomeMessage + "</p>";
}
// Call the function to display the welcome message when the page loads
window.onload = displayWelcomeMessage;
const scrollTopBtn = document.getElementById('scrollTopBtn');
window.addEventListener('scroll', () => {
scrollTopBtn.classList.toggle('visible', window.scrollY > 100);
});
scrollTopBtn.addEventListener('click', () => {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
</script>
</body>
</html>