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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Coding Club - RVCE</title>
|
| 7 |
+
<style>
|
| 8 |
+
* {
|
| 9 |
+
margin: 0;
|
| 10 |
+
padding: 0;
|
| 11 |
+
box-sizing: border-box;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
body {
|
| 15 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 16 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 17 |
+
min-height: 100vh;
|
| 18 |
+
overflow-x: hidden;
|
| 19 |
+
cursor: default;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.container {
|
| 23 |
+
max-width: 1200px;
|
| 24 |
+
margin: 0 auto;
|
| 25 |
+
padding: 40px 20px;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
/* Header Section */
|
| 29 |
+
.header {
|
| 30 |
+
text-align: center;
|
| 31 |
+
color: white;
|
| 32 |
+
margin-bottom: 60px;
|
| 33 |
+
animation: fadeInDown 1s ease-out;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.header h1 {
|
| 37 |
+
font-size: 4rem;
|
| 38 |
+
font-weight: 800;
|
| 39 |
+
margin-bottom: 10px;
|
| 40 |
+
text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
| 41 |
+
letter-spacing: -1px;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.header .subtitle {
|
| 45 |
+
font-size: 1.5rem;
|
| 46 |
+
opacity: 0.95;
|
| 47 |
+
font-weight: 300;
|
| 48 |
+
letter-spacing: 1px;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.divider {
|
| 52 |
+
width: 100px;
|
| 53 |
+
height: 4px;
|
| 54 |
+
background: white;
|
| 55 |
+
margin: 30px auto;
|
| 56 |
+
border-radius: 2px;
|
| 57 |
+
animation: expandWidth 1s ease-out 0.5s both;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
/* Tech Stack Section */
|
| 61 |
+
.tech-stack-section {
|
| 62 |
+
background: rgba(255, 255, 255, 0.95);
|
| 63 |
+
border-radius: 30px;
|
| 64 |
+
padding: 50px 40px;
|
| 65 |
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
| 66 |
+
animation: fadeInUp 1s ease-out 0.3s both;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.tech-stack-section h2 {
|
| 70 |
+
text-align: center;
|
| 71 |
+
font-size: 2.5rem;
|
| 72 |
+
color: #333;
|
| 73 |
+
margin-bottom: 20px;
|
| 74 |
+
font-weight: 700;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
.tech-stack-section .description {
|
| 78 |
+
text-align: center;
|
| 79 |
+
color: #666;
|
| 80 |
+
font-size: 1.1rem;
|
| 81 |
+
margin-bottom: 50px;
|
| 82 |
+
max-width: 700px;
|
| 83 |
+
margin-left: auto;
|
| 84 |
+
margin-right: auto;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
/* 3D Interactive Tech Stack Grid */
|
| 88 |
+
.tech-grid {
|
| 89 |
+
display: grid;
|
| 90 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 91 |
+
gap: 30px;
|
| 92 |
+
perspective: 1000px;
|
| 93 |
+
margin-bottom: 40px;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.tech-card {
|
| 97 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 98 |
+
border-radius: 20px;
|
| 99 |
+
padding: 40px 20px;
|
| 100 |
+
text-align: center;
|
| 101 |
+
color: white;
|
| 102 |
+
transition: all 0.3s ease;
|
| 103 |
+
transform-style: preserve-3d;
|
| 104 |
+
cursor: pointer;
|
| 105 |
+
position: relative;
|
| 106 |
+
overflow: hidden;
|
| 107 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.tech-card::before {
|
| 111 |
+
content: '';
|
| 112 |
+
position: absolute;
|
| 113 |
+
top: 0;
|
| 114 |
+
left: 0;
|
| 115 |
+
right: 0;
|
| 116 |
+
bottom: 0;
|
| 117 |
+
background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
|
| 118 |
+
opacity: 0;
|
| 119 |
+
transition: opacity 0.3s ease;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.tech-card:hover::before {
|
| 123 |
+
opacity: 1;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
.tech-card:hover {
|
| 127 |
+
transform: translateY(-10px) scale(1.05);
|
| 128 |
+
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.tech-icon {
|
| 132 |
+
font-size: 4rem;
|
| 133 |
+
margin-bottom: 20px;
|
| 134 |
+
display: inline-block;
|
| 135 |
+
transition: transform 0.3s ease;
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
.tech-card:hover .tech-icon {
|
| 139 |
+
transform: rotateY(360deg) scale(1.2);
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
.tech-name {
|
| 143 |
+
font-size: 1.5rem;
|
| 144 |
+
font-weight: 700;
|
| 145 |
+
margin-bottom: 10px;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
.tech-description {
|
| 149 |
+
font-size: 0.9rem;
|
| 150 |
+
opacity: 0.9;
|
| 151 |
+
line-height: 1.5;
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
/* Color variants for different tech */
|
| 155 |
+
.tech-card.pytorch {
|
| 156 |
+
background: linear-gradient(135deg, #EE4C2C 0%, #FF6B45 100%);
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
.tech-card.tensorflow {
|
| 160 |
+
background: linear-gradient(135deg, #FF6F00 0%, #FF8F00 100%);
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
.tech-card.numpy {
|
| 164 |
+
background: linear-gradient(135deg, #013243 0%, #4DABCF 100%);
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
.tech-card.pandas {
|
| 168 |
+
background: linear-gradient(135deg, #150458 0%, #3B0A78 100%);
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
.tech-card.jax {
|
| 172 |
+
background: linear-gradient(135deg, #5E4FA2 0%, #8C6BB1 100%);
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
.tech-card.cuda {
|
| 176 |
+
background: linear-gradient(135deg, #76B900 0%, #8ED100 100%);
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
/* Stats Section */
|
| 180 |
+
.stats-section {
|
| 181 |
+
display: grid;
|
| 182 |
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
| 183 |
+
gap: 20px;
|
| 184 |
+
margin-top: 50px;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
.stat-card {
|
| 188 |
+
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
| 189 |
+
padding: 30px;
|
| 190 |
+
border-radius: 15px;
|
| 191 |
+
text-align: center;
|
| 192 |
+
color: white;
|
| 193 |
+
transition: transform 0.3s ease;
|
| 194 |
+
}
|
| 195 |
+
|
| 196 |
+
.stat-card:hover {
|
| 197 |
+
transform: translateY(-5px);
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
.stat-number {
|
| 201 |
+
font-size: 3rem;
|
| 202 |
+
font-weight: 800;
|
| 203 |
+
margin-bottom: 10px;
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
.stat-label {
|
| 207 |
+
font-size: 1rem;
|
| 208 |
+
opacity: 0.9;
|
| 209 |
+
text-transform: uppercase;
|
| 210 |
+
letter-spacing: 1px;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
/* Floating Animation */
|
| 214 |
+
@keyframes float {
|
| 215 |
+
0%, 100% { transform: translateY(0px); }
|
| 216 |
+
50% { transform: translateY(-20px); }
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
.floating {
|
| 220 |
+
animation: float 3s ease-in-out infinite;
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
/* Fade In Animations */
|
| 224 |
+
@keyframes fadeInDown {
|
| 225 |
+
from {
|
| 226 |
+
opacity: 0;
|
| 227 |
+
transform: translateY(-50px);
|
| 228 |
+
}
|
| 229 |
+
to {
|
| 230 |
+
opacity: 1;
|
| 231 |
+
transform: translateY(0);
|
| 232 |
+
}
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
@keyframes fadeInUp {
|
| 236 |
+
from {
|
| 237 |
+
opacity: 0;
|
| 238 |
+
transform: translateY(50px);
|
| 239 |
+
}
|
| 240 |
+
to {
|
| 241 |
+
opacity: 1;
|
| 242 |
+
transform: translateY(0);
|
| 243 |
+
}
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
@keyframes expandWidth {
|
| 247 |
+
from {
|
| 248 |
+
width: 0;
|
| 249 |
+
}
|
| 250 |
+
to {
|
| 251 |
+
width: 100px;
|
| 252 |
+
}
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
/* Footer */
|
| 256 |
+
.footer {
|
| 257 |
+
text-align: center;
|
| 258 |
+
color: white;
|
| 259 |
+
margin-top: 60px;
|
| 260 |
+
padding: 30px;
|
| 261 |
+
font-size: 1rem;
|
| 262 |
+
opacity: 0.9;
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
.footer a {
|
| 266 |
+
color: white;
|
| 267 |
+
text-decoration: none;
|
| 268 |
+
font-weight: 600;
|
| 269 |
+
border-bottom: 2px solid white;
|
| 270 |
+
transition: opacity 0.3s ease;
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
.footer a:hover {
|
| 274 |
+
opacity: 0.7;
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
/* Responsive Design */
|
| 278 |
+
@media (max-width: 768px) {
|
| 279 |
+
.header h1 {
|
| 280 |
+
font-size: 2.5rem;
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
.header .subtitle {
|
| 284 |
+
font-size: 1.2rem;
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
.tech-stack-section {
|
| 288 |
+
padding: 30px 20px;
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
.tech-grid {
|
| 292 |
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
| 293 |
+
gap: 20px;
|
| 294 |
+
}
|
| 295 |
+
}
|
| 296 |
+
</style>
|
| 297 |
+
</head>
|
| 298 |
+
<body>
|
| 299 |
+
<div class="container">
|
| 300 |
+
<!-- Header -->
|
| 301 |
+
<div class="header">
|
| 302 |
+
<h1 class="floating">💻 Coding Club - RVCE</h1>
|
| 303 |
+
<div class="divider"></div>
|
| 304 |
+
<p class="subtitle">Building the Future, One Line of Code at a Time</p>
|
| 305 |
+
</div>
|
| 306 |
+
|
| 307 |
+
<!-- Tech Stack Section -->
|
| 308 |
+
<div class="tech-stack-section">
|
| 309 |
+
<h2>🚀 Our Tech Stack</h2>
|
| 310 |
+
<p class="description">
|
| 311 |
+
Hover over each technology to interact with it! We leverage cutting-edge frameworks and tools to build innovative AI and ML solutions.
|
| 312 |
+
</p>
|
| 313 |
+
|
| 314 |
+
<div class="tech-grid" id="techGrid">
|
| 315 |
+
<div class="tech-card pytorch" data-tilt>
|
| 316 |
+
<div class="tech-icon">🔥</div>
|
| 317 |
+
<div class="tech-name">PyTorch</div>
|
| 318 |
+
<div class="tech-description">Deep Learning Framework</div>
|
| 319 |
+
</div>
|
| 320 |
+
|
| 321 |
+
<div class="tech-card tensorflow" data-tilt>
|
| 322 |
+
<div class="tech-icon">🧠</div>
|
| 323 |
+
<div class="tech-name">TensorFlow</div>
|
| 324 |
+
<div class="tech-description">ML Platform</div>
|
| 325 |
+
</div>
|
| 326 |
+
|
| 327 |
+
<div class="tech-card numpy" data-tilt>
|
| 328 |
+
<div class="tech-icon">🔢</div>
|
| 329 |
+
<div class="tech-name">NumPy</div>
|
| 330 |
+
<div class="tech-description">Numerical Computing</div>
|
| 331 |
+
</div>
|
| 332 |
+
|
| 333 |
+
<div class="tech-card pandas" data-tilt>
|
| 334 |
+
<div class="tech-icon">🐼</div>
|
| 335 |
+
<div class="tech-name">Pandas</div>
|
| 336 |
+
<div class="tech-description">Data Analysis</div>
|
| 337 |
+
</div>
|
| 338 |
+
|
| 339 |
+
<div class="tech-card jax" data-tilt>
|
| 340 |
+
<div class="tech-icon">⚡</div>
|
| 341 |
+
<div class="tech-name">JAX</div>
|
| 342 |
+
<div class="tech-description">High-Performance ML</div>
|
| 343 |
+
</div>
|
| 344 |
+
|
| 345 |
+
<div class="tech-card cuda" data-tilt>
|
| 346 |
+
<div class="tech-icon">🎮</div>
|
| 347 |
+
<div class="tech-name">CUDA</div>
|
| 348 |
+
<div class="tech-description">GPU Acceleration</div>
|
| 349 |
+
</div>
|
| 350 |
+
</div>
|
| 351 |
+
|
| 352 |
+
<!-- Stats Section -->
|
| 353 |
+
<div class="stats-section">
|
| 354 |
+
<div class="stat-card">
|
| 355 |
+
<div class="stat-number">150+</div>
|
| 356 |
+
<div class="stat-label">Members</div>
|
| 357 |
+
</div>
|
| 358 |
+
<div class="stat-card">
|
| 359 |
+
<div class="stat-number">25+</div>
|
| 360 |
+
<div class="stat-label">Projects</div>
|
| 361 |
+
</div>
|
| 362 |
+
<div class="stat-card">
|
| 363 |
+
<div class="stat-number">50+</div>
|
| 364 |
+
<div class="stat-label">Workshops</div>
|
| 365 |
+
</div>
|
| 366 |
+
<div class="stat-card">
|
| 367 |
+
<div class="stat-number">10+</div>
|
| 368 |
+
<div class="stat-label">Hackathons</div>
|
| 369 |
+
</div>
|
| 370 |
+
</div>
|
| 371 |
+
</div>
|
| 372 |
+
|
| 373 |
+
<!-- Footer -->
|
| 374 |
+
<div class="footer">
|
| 375 |
+
<p>🎓 RV College of Engineering | Bengaluru, Karnataka</p>
|
| 376 |
+
<p style="margin-top: 15px;">
|
| 377 |
+
<a href="https://github.com/TheCodingClub-RVCE" target="_blank">GitHub</a> •
|
| 378 |
+
<a href="https://huggingface.co/TheCodingClub-RVCE" target="_blank">Hugging Face</a>
|
| 379 |
+
</p>
|
| 380 |
+
</div>
|
| 381 |
+
</div>
|
| 382 |
+
|
| 383 |
+
<script>
|
| 384 |
+
// 3D Tilt Effect on Mouse Move
|
| 385 |
+
const cards = document.querySelectorAll('[data-tilt]');
|
| 386 |
+
|
| 387 |
+
cards.forEach(card => {
|
| 388 |
+
card.addEventListener('mousemove', handleTilt);
|
| 389 |
+
card.addEventListener('mouseleave', resetTilt);
|
| 390 |
+
});
|
| 391 |
+
|
| 392 |
+
function handleTilt(e) {
|
| 393 |
+
const card = e.currentTarget;
|
| 394 |
+
const rect = card.getBoundingClientRect();
|
| 395 |
+
const x = e.clientX - rect.left;
|
| 396 |
+
const y = e.clientY - rect.top;
|
| 397 |
+
|
| 398 |
+
const centerX = rect.width / 2;
|
| 399 |
+
const centerY = rect.height / 2;
|
| 400 |
+
|
| 401 |
+
const rotateX = (y - centerY) / 10;
|
| 402 |
+
const rotateY = (centerX - x) / 10;
|
| 403 |
+
|
| 404 |
+
card.style.transform = `
|
| 405 |
+
perspective(1000px)
|
| 406 |
+
rotateX(${rotateX}deg)
|
| 407 |
+
rotateY(${rotateY}deg)
|
| 408 |
+
scale3d(1.05, 1.05, 1.05)
|
| 409 |
+
`;
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
function resetTilt(e) {
|
| 413 |
+
const card = e.currentTarget;
|
| 414 |
+
card.style.transform = `
|
| 415 |
+
perspective(1000px)
|
| 416 |
+
rotateX(0deg)
|
| 417 |
+
rotateY(0deg)
|
| 418 |
+
scale3d(1, 1, 1)
|
| 419 |
+
`;
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
// Add subtle parallax effect to header on scroll
|
| 423 |
+
window.addEventListener('scroll', () => {
|
| 424 |
+
const header = document.querySelector('.header');
|
| 425 |
+
const scrolled = window.pageYOffset;
|
| 426 |
+
header.style.transform = `translateY(${scrolled * 0.5}px)`;
|
| 427 |
+
header.style.opacity = 1 - (scrolled / 500);
|
| 428 |
+
});
|
| 429 |
+
|
| 430 |
+
// Animate stats on scroll into view
|
| 431 |
+
const observerOptions = {
|
| 432 |
+
threshold: 0.5,
|
| 433 |
+
rootMargin: '0px'
|
| 434 |
+
};
|
| 435 |
+
|
| 436 |
+
const observer = new IntersectionObserver((entries) => {
|
| 437 |
+
entries.forEach(entry => {
|
| 438 |
+
if (entry.isIntersecting) {
|
| 439 |
+
entry.target.style.animation = 'fadeInUp 0.6s ease-out forwards';
|
| 440 |
+
}
|
| 441 |
+
});
|
| 442 |
+
}, observerOptions);
|
| 443 |
+
|
| 444 |
+
document.querySelectorAll('.stat-card').forEach(card => {
|
| 445 |
+
observer.observe(card);
|
| 446 |
+
});
|
| 447 |
+
|
| 448 |
+
// Add click effect to cards
|
| 449 |
+
cards.forEach(card => {
|
| 450 |
+
card.addEventListener('click', function() {
|
| 451 |
+
this.style.animation = 'none';
|
| 452 |
+
setTimeout(() => {
|
| 453 |
+
this.style.animation = 'float 3s ease-in-out infinite';
|
| 454 |
+
}, 10);
|
| 455 |
+
});
|
| 456 |
+
});
|
| 457 |
+
</script>
|
| 458 |
+
</body>
|
| 459 |
+
</html>
|