Gestionnaire d'événements universitaires
Gestionnaire d'événements universitaires
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EventEase - College Event Manager</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary-color: #6366f1;
--secondary-color: #f43f5e;
--accent-color: #06d6a0;
--dark-bg: #0f172a;
--light-bg: #f8fafc;
--text-light: #e2e8f0;
--text-dark: #334155;
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-border: rgba(255, 255, 255, 0.2);
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
line-height: 1.6;
color: var(--text-light);
overflow-x: hidden;
scroll-behavior: smooth;
}
/* Animated Background */
.bg-animation {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
z-index: -2;
}
.bg-animation::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%,
transparent 50%),
radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%,
transparent 50%),
radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%,
transparent 50%);
animation: backgroundShift 20s ease-in-out infinite;
}
@keyframes backgroundShift {
0%, 100% { transform: rotate(0deg) scale(1); }
33% { transform: rotate(5deg) scale(1.1); }
66% { transform: rotate(-3deg) scale(0.95); }
}
/* Floating Particles */
.particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}
.particle {
position: absolute;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
animation: float 15s infinite ease-in-out;
}
@keyframes float {
0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
10% { opacity: 1; }
90% { opacity: 1; }
100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
/* Navigation */
nav {
position: fixed;
top: 20px;
left: 50%;
transform: translateX(-50%);
background: var(--glass-bg);
backdrop-filter: blur(20px);
border: 1px solid var(--glass-border);
border-radius: 50px;
padding: 15px 30px;
z-index: 1000;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 40px;
}
nav ul {
display: flex;
list-style: none;
gap: 30px;
}
nav a {
color: var(--text-light);
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
position: relative;
padding: 8px 16px;
border-radius: 25px;
}
nav a:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateY(-2px);
}
nav [Link] {
background: linear-gradient(45deg, var(--primary-color), var(--
secondary-color));
color: white;
}
.auth-buttons {
display: flex;
gap: 10px;
}
.auth-btn {
padding: 8px 20px;
border-radius: 25px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
border: none;
font-size: 0.9rem;
}
.login-btn {
background: transparent;
color: var(--text-light);
border: 1px solid var(--glass-border);
}
.signup-btn {
background: linear-gradient(45deg, var(--primary-color), var(--
secondary-color));
color: white;
}
.auth-btn:hover {
transform: translateY(-2px);
}
/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
position: relative;
padding: 0 20px;
}
.hero-content h1 {
font-size: clamp(3rem, 8vw, 6rem);
font-weight: 800;
background: linear-gradient(45deg, #fff, #a78bfa, #fbbf24);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 20px;
animation: titleSlide 1s ease-out;
}
@keyframes titleSlide {
from { opacity: 0; transform: translateY(50px); }
to { opacity: 1; transform: translateY(0); }
}
.hero-content p {
font-size: 1.5rem;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 40px;
animation: fadeInUp 1s ease-out 0.3s both;
}
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
.cta-buttons {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
animation: fadeInUp 1s ease-out 0.6s both;
}
.btn {
padding: 15px 30px;
border: none;
border-radius: 50px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-block;
position: relative;
overflow: hidden;
}
.btn-primary {
background: linear-gradient(45deg, var(--primary-color), var(--
secondary-color));
color: white;
box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}
.btn-secondary {
background: var(--glass-bg);
color: var(--text-light);
border: 2px solid var(--glass-border);
backdrop-filter: blur(10px);
}
.btn:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
/* Section Styles */
section {
padding: 100px 0;
position: relative;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.section-title {
text-align: center;
font-size: 3rem;
font-weight: 700;
margin-bottom: 60px;
background: linear-gradient(45deg, var(--primary-color), var(--accent-
color));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Events Section */
.events {
background: rgba(15, 23, 42, 0.3);
backdrop-filter: blur(20px);
min-height: 100vh;
}
.events-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 30px;
margin-top: 50px;
}
.event-card {
background: var(--glass-bg);
backdrop-filter: blur(20px);
border: 1px solid var(--glass-border);
border-radius: 20px;
overflow: hidden;
transition: all 0.3s ease;
position: relative;
}
.event-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.event-image {
height: 250px;
background-size: cover;
background-position: center;
position: relative;
}
.event-badge {
position: absolute;
top: 15px;
right: 15px;
background: linear-gradient(45deg, var(--primary-color), var(--
secondary-color));
color: white;
padding: 8px 16px;
border-radius: 25px;
font-size: 0.85rem;
font-weight: 600;
}
.event-content {
padding: 30px;
}
.event-content h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: var(--text-light);
}
.event-meta {
display: flex;
flex-direction: column;
gap: 10px;
margin-bottom: 15px;
color: rgba(255, 255, 255, 0.7);
font-size: 0.95rem;
}
.event-meta-item {
display: flex;
align-items: center;
gap: 8px;
}
.event-content p {
color: rgba(255, 255, 255, 0.7);
margin-bottom: 20px;
}
.event-tech {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 20px;
}
.tech-tag {
background: rgba(99, 102, 241, 0.2);
color: var(--primary-color);
padding: 4px 12px;
border-radius: 15px;
font-size: 0.8rem;
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
z-index: 2000;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.[Link] {
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background: var(--glass-bg);
backdrop-filter: blur(20px);
border: 1px solid var(--glass-border);
border-radius: 20px;
padding: 40px;
max-width: 500px;
width: 90%;
max-height: 90vh;
overflow-y: auto;
position: relative;
animation: slideUp 0.3s ease;
}
@keyframes slideUp {
from { transform: translateY(50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.modal-close {
position: absolute;
top: 20px;
right: 20px;
background: rgba(255, 255, 255, 0.1);
border: none;
color: var(--text-light);
font-size: 1.5rem;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
}
.modal-close:hover {
background: var(--secondary-color);
transform: rotate(90deg);
}
.modal-title {
font-size: 2rem;
margin-bottom: 30px;
background: linear-gradient(45deg, var(--primary-color), var(--accent-
color));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
color: var(--text-light);
font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 15px 20px;
background: var(--glass-bg);
backdrop-filter: blur(10px);
border: 1px solid var(--glass-border);
border-radius: 15px;
color: var(--text-light);
font-size: 1rem;
transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.form-group textarea {
resize: vertical;
min-height: 100px;
}
.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
margin-top: 15px;
}
.checkbox-group input[type="checkbox"] {
width: auto;
cursor: pointer;
}
/* Footer */
footer {
text-align: center;
padding: 40px 0;
background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(20px);
color: rgba(255, 255, 255, 0.6);
}
/* Page Transitions */
.page {
display: none;
}
.[Link] {
display: block;
}
/* Responsive Design */
@media (max-width: 768px) {
nav {
flex-direction: column;
gap: 15px;
padding: 15px 20px;
}
nav ul {
gap: 15px;
}
nav a {
padding: 6px 12px;
font-size: 0.9rem;
}
.hero-content h1 {
font-size: 3rem;
}
.events-grid {
grid-template-columns: 1fr;
}
.section-title {
font-size: 2rem;
}
.modal-content {
padding: 30px 20px;
}
}
/* Scroll animations */
.fade-in {
opacity: 0;
transform: translateY(30px);
transition: all 0.6s ease;
}
.[Link] {
opacity: 1;
transform: translateY(0);
}
/* Interests Page */
.interests-section {
min-height: 100vh;
padding-top: 120px;
}
.interests-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 40px;
}
.interest-card {
background: var(--glass-bg);
backdrop-filter: blur(20px);
border: 2px solid var(--glass-border);
border-radius: 20px;
padding: 30px;
text-align: center;
cursor: pointer;
transition: all 0.3s ease;
}
.interest-card:hover {
transform: translateY(-10px);
border-color: var(--primary-color);
box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}
.[Link] {
background: linear-gradient(45deg, var(--primary-color), var(--
secondary-color));
border-color: transparent;
}
.interest-icon {
font-size: 3rem;
margin-bottom: 15px;
}
.interest-card h3 {
font-size: 1.3rem;
margin-bottom: 10px;
}
.interest-card p {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.7);
}
.[Link] p {
color: rgba(255, 255, 255, 0.9);
}
</style>
</head>
<body>
<!-- Animated Background -->
<div class="bg-animation"></div>
<script>
// Page Navigation
function switchPage(pageName) {
[Link]();
[Link]('.page').forEach(page =>
[Link]('active'));
[Link](pageName).[Link]('active');
[Link]('.nav-link').forEach(link =>
[Link]('active'));
[Link](`[data-page="$
{pageName}"]`).[Link]('active');
[Link]('.nav-link').forEach(link => {
[Link]('click', (e) => {
[Link]();
const page = [Link]('data-page');
switchPage(page);
});
});
// Modal Functions
function openModal(modalId) {
[Link](modalId).[Link]('active');
[Link] = 'hidden';
}
function closeModal(modalId) {
[Link](modalId).[Link]('active');
[Link] = 'auto';
}
// Registration Modal
function openRegistrationModal(eventName, eventDate, eventTime) {
[Link]('modalEventName').textContent = eventName;
[Link]('modalEventDate').textContent = '📅 ' +
eventDate;
[Link]('modalEventTime').textContent = '⏰ ' +
eventTime;
openModal('registrationModal');
}
// Form Handlers
function handleLogin(e) {
[Link]();
const btn = [Link]('button[type="submit"]');
const originalText = [Link];
setTimeout(() => {
[Link] = 'Login Successful! ✓';
[Link] = 'linear-gradient(45deg, #10b981, #059669)';
setTimeout(() => {
closeModal('loginModal');
[Link] = originalText;
[Link] = '1';
[Link] = '';
[Link]();
alert('Welcome back! You are now logged in.');
}, 1500);
}, 1500);
}
function handleSignup(e) {
[Link]();
const btn = [Link]('button[type="submit"]');
const originalText = [Link];
setTimeout(() => {
[Link] = 'Account Created! ✓';
[Link] = 'linear-gradient(45deg, #10b981, #059669)';
setTimeout(() => {
closeModal('signupModal');
[Link] = originalText;
[Link] = '1';
[Link] = '';
[Link]();
alert('Account created successfully! Please login to
continue.');
openModal('loginModal');
}, 1500);
}, 1500);
}
function handleRegistration(e) {
[Link]();
const btn = [Link]('button[type="submit"]');
const originalText = [Link];
[Link] = 'Processing...';
[Link] = '0.7';
setTimeout(() => {
[Link] = 'Registration Successful! ✓';
[Link] = 'linear-gradient(45deg, #10b981, #059669)';
setTimeout(() => {
closeModal('registrationModal');
[Link] = originalText;
[Link] = '1';
[Link] = '';
[Link]();
alert('🎉 Registration successful! You will receive a
confirmation email shortly with event details and reminders.');
}, 1500);
}, 1500);
}
// Interests Selection
function toggleInterest(card) {
[Link]('selected');
}
function saveInterests() {
const selectedInterests = [Link]('.interest-
[Link]');
if ([Link] === 0) {
alert('Please select at least one interest category');
return;
}
[Link] = `${size}px`;
[Link] = `${size}px`;
[Link] = `${left}px`;
[Link] = `${animationDuration}s`;
[Link] = `${delay}s`;
[Link](particle);
}
}
// Scroll Animations
function animateOnScroll() {
const elements = [Link]('.fade-in');
[Link](element => {
const elementTop = [Link]().top;
const elementVisible = 150;
[Link]('mouseleave', () => {
[Link] = '';
});
});
[Link]('.bg-animation').[Link] =
`linear-gradient(135deg, hsl(${hue}, 70%, 60%) 0%, hsl(${hue + 40},
65%, 55%) 100%)`;
}
// Initialize
[Link]('load', () => {
createParticles();
});
[Link]('scroll', () => {
animateOnScroll();
updateBackgroundOnScroll();
});
[Link]('resize', () => {
[Link]('particles').innerHTML = '';
createParticles();
});
// Keyboard shortcuts
[Link]('keydown', (e) => {
if ([Link] === 'Escape') {
[Link]('.[Link]').forEach(modal => {
closeModal([Link]);
});
}
});
</script>
<script type="module">
import { db } from "./[Link]";
import { collection, getDocs } from
"[Link]
loadEvents();
</script>
</body>
</html>