1 Commits

Author SHA1 Message Date
b4c84de06d feat: add interactive welcome page 2025-08-16 10:49:48 +05:30
6 changed files with 243 additions and 343 deletions

View File

@ -1 +0,0 @@
# Welcome to Git Training Hub

1
Readme.md Normal file
View File

@ -0,0 +1 @@
#Welcome to Git Training Hub

View File

@ -1,31 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tech Thursday Demo</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<div class="container">
<div class="welcome-box">
<div class="logo">
<i class="fas fa-code-branch"></i>
</div>
<h2 class="title">Welcome to Git Training Hub !</h2>
<p class="subtitle">Master version control and collaboration with our hands-on, interactive Git training sessions designed for all skill levels.</p>
<div class="cta-buttons">
<button class="btn primary">Get Started</button>
<button class="btn secondary">Learn More</button>
</div>
</div>
<div class="floating-shapes">
<div class="shape shape-1"></div>
<div class="shape shape-2"></div>
<div class="shape shape-3"></div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>

View File

@ -1,76 +0,0 @@
// Add smooth scroll to buttons
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Add hover effect to buttons
const a = [1, 2, 3];
const buttons = document.querySelectorAll('.btn');
buttons.forEach(button => {
button.addEventListener('mouseenter', function() {
this.style.transform = 'translateY(-3px)';
this.style.boxShadow = '0 8px 20px rgba(0, 0, 0, 0.2)';
});
button.addEventListener('mouseleave', function() {
this.style.transform = 'translateY(0)';
this.style.boxShadow = '0 5px 15px rgba(0, 0, 0, 0.1)';
});
});
// Add click effect to buttons
buttons.forEach(button => {
button.addEventListener('mousedown', function() {
this.style.transform = 'translateY(1px)';
});
button.addEventListener('mouseup', function() {
this.style.transform = 'translateY(-3px)';
});
});
// Add floating animation to shapes
const shapes = document.querySelectorAll('.shape');
shapes.forEach((shape, index) => {
// Randomize initial position and animation
const randomX = Math.random() * 20 - 10;
const randomY = Math.random() * 20 - 10;
const randomDuration = 15 + Math.random() * 10;
const randomDelay = Math.random() * 5;
shape.style.transform = `translate(${randomX}px, ${randomY}px)`;
shape.style.animation = `float ${randomDuration}s infinite ease-in-out ${randomDelay}s`;
});
// Add parallax effect on mouse move
document.addEventListener('mousemove', (e) => {
const x = (window.innerWidth / 2 - e.pageX) / 20;
const y = (window.innerHeight / 2 - e.pageY) / 20;
document.querySelector('.welcome-box').style.transform = `translate(${x * 0.2}px, ${y * 0.2}px)`;
shapes.forEach((shape, index) => {
const speed = (index + 1) * 0.5;
shape.style.transform = `translate(${x * speed}px, ${y * speed}px)`;
});
});
// Add scroll reveal animation
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate');
}
});
}, {
threshold: 0.1
});
document.querySelectorAll('.welcome-box > *').forEach((el) => {
observer.observe(el);
});

View File

@ -1,235 +0,0 @@
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #4a6fa5;
--secondary: #6b4e71;
--accent: #ff6b6b;
--light: #f8f9fa;
--dark: #343a40;
}
body {
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
color: var(--dark);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
}
/* Container and Layout */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
}
/* Welcome Box */
.welcome-box {
background: rgba(255, 255, 255, 0.95);
padding: 3rem 2rem;
border-radius: 20px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 600px;
width: 100%;
position: relative;
z-index: 1;
backdrop-filter: blur(10px);
transform: translateY(20px);
opacity: 0;
animation: fadeInUp 0.8s ease-out forwards;
animation-delay: 0.3s;
}
/* Logo */
.logo {
font-size: 4rem;
margin-bottom: 1.5rem;
color: var(--primary);
transform: scale(0);
animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
animation-delay: 0.5s;
}
/* Typography */
.title {
font-size: 2.5rem;
margin-bottom: 1rem;
color: var(--dark);
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.8s ease-out forwards;
animation-delay: 0.7s;
}
.subtitle {
font-size: 1.2rem;
color: #6c757d;
margin-bottom: 2rem;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.8s ease-out forwards;
animation-delay: 0.9s;
}
/* Buttons */
.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
opacity: 0;
transform: translateY(20px);
animation: fadeInUp 0.8s ease-out forwards;
animation-delay: 1.1s;
}
.btn {
padding: 0.8rem 2rem;
border: none;
border-radius: 50px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
position: relative;
overflow: hidden;
}
.btn.primary {
background: linear-gradient(45deg, var(--primary), var(--secondary));
color: white;
box-shadow: 0 5px 15px rgba(74, 110, 165, 0.4);
}
.btn.secondary {
background: transparent;
color: var(--primary);
border: 2px solid var(--primary);
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
/* Floating Shapes */
.floating-shapes {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}
.shape {
position: absolute;
border-radius: 50%;
background: linear-gradient(45deg, var(--primary), var(--secondary));
opacity: 0.1;
animation: float 15s infinite linear;
}
.shape-1 {
width: 150px;
height: 150px;
top: 10%;
left: 10%;
animation-delay: 0s;
}
.shape-2 {
width: 250px;
height: 250px;
bottom: 10%;
right: 10%;
animation-delay: 5s;
animation-direction: reverse;
}
.shape-3 {
width: 100px;
height: 100px;
top: 50%;
right: 20%;
animation-delay: 10s;
}
/* Keyframe Animations */
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes popIn {
0% {
transform: scale(0);
}
70% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
@keyframes float {
0%, 100% {
transform: translate(0, 0) rotate(0deg);
}
25% {
transform: translate(20px, 20px) rotate(5deg);
}
50% {
transform: translate(0, 40px) rotate(0deg);
}
75% {
transform: translate(-20px, 20px) rotate(-5deg);
}
}
/* Responsive Design */
@media (max-width: 768px) {
.title {
font-size: 2rem;
}
.subtitle {
font-size: 1rem;
}
.cta-buttons {
flex-direction: column;
gap: 0.8rem;
}
.btn {
width: 100%;
}
.shape {
display: none;
}
}

242
welcome.html Normal file
View File

@ -0,0 +1,242 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to Git Training Hub</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
background: linear-gradient(135deg, #1a1a2e, #16213e);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
position: relative;
}
.container {
text-align: center;
color: white;
z-index: 1;
padding: 2rem;
max-width: 900px;
animation: fadeIn 1.5s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
h1 {
font-size: 4rem;
margin-bottom: 1.5rem;
background: linear-gradient(45deg, #00dbde, #fc00ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
from { text-shadow: 0 0 10px rgba(0, 219, 222, 0.5), 0 0 20px rgba(252, 0, 255, 0.3); }
to { text-shadow: 0 0 20px rgba(0, 219, 222, 0.8), 0 0 30px rgba(252, 0, 255, 0.6); }
}
.subtitle {
font-size: 1.5rem;
margin-bottom: 2rem;
color: #a1a1a1;
animation: slideUp 1s ease-out 0.3s both;
}
.cta-button {
display: inline-block;
padding: 1rem 2.5rem;
background: linear-gradient(45deg, #00dbde, #fc00ff);
color: white;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
font-size: 1.2rem;
margin-top: 2rem;
transition: all 0.3s ease;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
animation: pulse 2s infinite;
border: none;
cursor: pointer;
}
.cta-button:hover {
transform: translateY(-3px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.features {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 2rem;
margin: 4rem 0;
animation: fadeIn 1s ease-out 0.6s both;
}
.feature {
background: rgba(255, 255, 255, 0.05);
padding: 2rem;
border-radius: 15px;
width: 250px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.feature i {
font-size: 2.5rem;
margin-bottom: 1rem;
background: linear-gradient(45deg, #00dbde, #fc00ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.feature h3 {
margin-bottom: 1rem;
color: #fff;
}
.feature p {
color: #a1a1a1;
font-size: 0.9rem;
line-height: 1.6;
}
/* Animated Background Elements */
.circle {
position: absolute;
border-radius: 50%;
background: rgba(0, 219, 222, 0.1);
z-index: -1;
animation: float 15s infinite ease-in-out;
}
.circle-1 {
width: 300px;
height: 300px;
top: -150px;
left: -150px;
animation-delay: 0s;
}
.circle-2 {
width: 200px;
height: 200px;
bottom: -100px;
right: -100px;
background: rgba(252, 0, 255, 0.1);
animation-delay: 5s;
}
.circle-3 {
width: 150px;
height: 150px;
top: 20%;
right: 10%;
background: rgba(0, 219, 222, 0.1);
animation-delay: 10s;
}
@keyframes float {
0%, 100% { transform: translate(0, 0) rotate(0deg); }
25% { transform: translate(20px, 20px) rotate(5deg); }
50% { transform: translate(0, 40px) rotate(0deg); }
75% { transform: translate(-20px, 20px) rotate(-5deg); }
}
/* Responsive Design */
@media (max-width: 768px) {
h1 {
font-size: 2.5rem;
}
.subtitle {
font-size: 1.2rem;
}
.features {
flex-direction: column;
align-items: center;
}
.feature {
width: 100%;
max-width: 300px;
}
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<div class="circle circle-1"></div>
<div class="circle circle-2"></div>
<div class="circle circle-3"></div>
<div class="container">
<h1>Welcome to Git Training Hub</h1>
<p class="subtitle">Master Git and version control with our comprehensive training program</p>
<div class="features">
<div class="feature">
<i class="fas fa-code-branch"></i>
<h3>Branching Mastery</h3>
<p>Learn how to effectively use branches for feature development and bug fixes.</p>
</div>
<div class="feature">
<i class="fas fa-users"></i>
<h3>Team Collaboration</h3>
<p>Master collaborative workflows and best practices for team development.</p>
</div>
<div class="feature">
<i class="fas fa-rocket"></i>
<h3>Advanced Techniques</h3>
<p>Dive into advanced Git commands and workflows used by professionals.</p>
</div>
</div>
<a href="login.html" class="cta-button">Get Started</a>
</div>
<script>
// Add some interactive animations
document.addEventListener('mousemove', (e) => {
const container = document.querySelector('.container');
const xAxis = (window.innerWidth / 2 - e.pageX) / 25;
const yAxis = (window.innerHeight / 2 - e.pageY) / 25;
container.style.transform = `rotateY(${xAxis}deg) rotateX(${yAxis}deg)`;
});
// Reset transform when mouse leaves the container
document.querySelector('.container').addEventListener('mouseleave', function() {
this.style.transform = 'rotateY(0) rotateX(0)';
});
</script>
</body>
</html>