linsa11 commited on
Commit
73f4f81
Β·
verified Β·
1 Parent(s): d924c8b

Create an event conference website with hero countdown timer, speaker lineup with bios, schedule/agenda tabs, venue information with map, ticket tiers and pricing, sponsors logos grid, past event highlights, and registration form.

Browse files
Files changed (7) hide show
  1. README.md +8 -5
  2. components/countdown.js +101 -0
  3. components/navbar.js +83 -0
  4. components/speakers.js +77 -0
  5. index.html +104 -19
  6. script.js +30 -0
  7. style.css +36 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Techfusion Summit 2024
3
- emoji: πŸ“ˆ
4
- colorFrom: gray
5
- colorTo: gray
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: TechFusion Summit 2024 πŸš€
3
+ colorFrom: green
4
+ colorTo: yellow
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/countdown.js ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomCountdown extends HTMLElement {
2
+ constructor() {
3
+ super();
4
+ this.date = this.getAttribute('date');
5
+ }
6
+
7
+ connectedCallback() {
8
+ this.attachShadow({ mode: 'open' });
9
+ this.render();
10
+ this.startCountdown();
11
+ }
12
+
13
+ render() {
14
+ this.shadowRoot.innerHTML = `
15
+ <style>
16
+ .countdown-container {
17
+ display: flex;
18
+ justify-content: center;
19
+ gap: 1rem;
20
+ }
21
+ .countdown-box {
22
+ background: rgba(255, 255, 255, 0.2);
23
+ border-radius: 8px;
24
+ padding: 1rem;
25
+ min-width: 80px;
26
+ text-align: center;
27
+ backdrop-filter: blur(5px);
28
+ }
29
+ .countdown-number {
30
+ font-size: 2.5rem;
31
+ font-weight: bold;
32
+ margin-bottom: 0.5rem;
33
+ }
34
+ .countdown-label {
35
+ font-size: 0.875rem;
36
+ text-transform: uppercase;
37
+ opacity: 0.8;
38
+ }
39
+ @media (max-width: 640px) {
40
+ .countdown-box {
41
+ min-width: 60px;
42
+ padding: 0.5rem;
43
+ }
44
+ .countdown-number {
45
+ font-size: 1.75rem;
46
+ }
47
+ }
48
+ </style>
49
+ <div class="countdown-container">
50
+ <div class="countdown-box">
51
+ <div class="countdown-number" id="days">00</div>
52
+ <div class="countdown-label">Days</div>
53
+ </div>
54
+ <div class="countdown-box">
55
+ <div class="countdown-number" id="hours">00</div>
56
+ <div class="countdown-label">Hours</div>
57
+ </div>
58
+ <div class="countdown-box">
59
+ <div class="countdown-number" id="minutes">00</div>
60
+ <div class="countdown-label">Minutes</div>
61
+ </div>
62
+ <div class="countdown-box">
63
+ <div class="countdown-number" id="seconds">00</div>
64
+ <div class="countdown-label">Seconds</div>
65
+ </div>
66
+ </div>
67
+ `;
68
+ }
69
+
70
+ startCountdown() {
71
+ const countdownDate = new Date(this.date).getTime();
72
+
73
+ const updateCountdown = () => {
74
+ const now = new Date().getTime();
75
+ const distance = countdownDate - now;
76
+
77
+ if (distance < 0) {
78
+ this.shadowRoot.querySelector('#days').textContent = '00';
79
+ this.shadowRoot.querySelector('#hours').textContent = '00';
80
+ this.shadowRoot.querySelector('#minutes').textContent = '00';
81
+ this.shadowRoot.querySelector('#seconds').textContent = '00';
82
+ return;
83
+ }
84
+
85
+ const days = Math.floor(distance / (1000 * 60 * 60 * 24));
86
+ const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
87
+ const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
88
+ const seconds = Math.floor((distance % (1000 * 60)) / 1000);
89
+
90
+ this.shadowRoot.querySelector('#days').textContent = days.toString().padStart(2, '0');
91
+ this.shadowRoot.querySelector('#hours').textContent = hours.toString().padStart(2, '0');
92
+ this.shadowRoot.querySelector('#minutes').textContent = minutes.toString().padStart(2, '0');
93
+ this.shadowRoot.querySelector('#seconds').textContent = seconds.toString().padStart(2, '0');
94
+ };
95
+
96
+ updateCountdown();
97
+ setInterval(updateCountdown, 1000);
98
+ }
99
+ }
100
+
101
+ customElements.define('custom-countdown', CustomCountdown);
components/navbar.js ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .navbar {
7
+ transition: all 0.3s ease;
8
+ }
9
+ .navbar.scrolled {
10
+ background-color: white;
11
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
12
+ }
13
+ .mobile-menu {
14
+ max-height: 0;
15
+ overflow: hidden;
16
+ transition: max-height 0.3s ease;
17
+ }
18
+ .mobile-menu.open {
19
+ max-height: 500px;
20
+ }
21
+ @media (min-width: 768px) {
22
+ .mobile-menu {
23
+ max-height: none !important;
24
+ }
25
+ }
26
+ </style>
27
+ <nav class="navbar fixed w-full z-50 bg-transparent text-white">
28
+ <div class="container mx-auto px-6 py-4">
29
+ <div class="flex justify-between items-center">
30
+ <a href="#" class="text-2xl font-bold">TechFusion<span class="text-blue-300">2024</span></a>
31
+
32
+ <!-- Desktop Menu -->
33
+ <div class="hidden md:flex space-x-8">
34
+ <a href="#speakers" class="hover:text-blue-300 transition">Speakers</a>
35
+ <a href="#schedule" class="hover:text-blue-300 transition">Schedule</a>
36
+ <a href="#venue" class="hover:text-blue-300 transition">Venue</a>
37
+ <a href="#pricing" class="hover:text-blue-300 transition">Pricing</a>
38
+ <a href="#register" class="bg-white text-blue-600 px-4 py-2 rounded hover:bg-gray-100 transition">Register</a>
39
+ </div>
40
+
41
+ <!-- Mobile Menu Button -->
42
+ <button class="md:hidden focus:outline-none menu-toggle">
43
+ <i data-feather="menu"></i>
44
+ </button>
45
+ </div>
46
+
47
+ <!-- Mobile Menu -->
48
+ <div class="mobile-menu md:hidden bg-white text-gray-800 rounded-lg mt-2">
49
+ <div class="px-2 pt-2 pb-4 space-y-2">
50
+ <a href="#speakers" class="block px-3 py-2 rounded hover:bg-gray-100">Speakers</a>
51
+ <a href="#schedule" class="block px-3 py-2 rounded hover:bg-gray-100">Schedule</a>
52
+ <a href="#venue" class="block px-3 py-2 rounded hover:bg-gray-100">Venue</a>
53
+ <a href="#pricing" class="block px-3 py-2 rounded hover:bg-gray-100">Pricing</a>
54
+ <a href="#register" class="block px-3 py-2 rounded bg-blue-600 text-white hover:bg-blue-700">Register</a>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ </nav>
59
+ `;
60
+
61
+ // Add scroll event listener for navbar effect
62
+ window.addEventListener('scroll', () => {
63
+ const navbar = this.shadowRoot.querySelector('.navbar');
64
+ if (window.scrollY > 50) {
65
+ navbar.classList.add('scrolled', 'text-gray-800');
66
+ navbar.classList.remove('text-white');
67
+ } else {
68
+ navbar.classList.remove('scrolled', 'text-gray-800');
69
+ navbar.classList.add('text-white');
70
+ }
71
+ });
72
+
73
+ // Mobile menu toggle
74
+ const menuToggle = this.shadowRoot.querySelector('.menu-toggle');
75
+ const mobileMenu = this.shadowRoot.querySelector('.mobile-menu');
76
+
77
+ menuToggle.addEventListener('click', () => {
78
+ mobileMenu.classList.toggle('open');
79
+ });
80
+ }
81
+ }
82
+
83
+ customElements.define('custom-navbar', CustomNavbar);
components/speakers.js ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomSpeakers extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .speaker-grid {
7
+ display: grid;
8
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
9
+ gap: 2rem;
10
+ }
11
+ .speaker-card {
12
+ background: white;
13
+ border-radius: 12px;
14
+ overflow: hidden;
15
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
16
+ transition: all 0.3s ease;
17
+ }
18
+ .speaker-image {
19
+ height: 300px;
20
+ width: 100%;
21
+ object-fit: cover;
22
+ }
23
+ .speaker-info {
24
+ padding: 1.5rem;
25
+ }
26
+ .speaker-name {
27
+ font-size: 1.25rem;
28
+ font-weight: bold;
29
+ margin-bottom: 0.5rem;
30
+ }
31
+ .speaker-title {
32
+ color: #4b5563;
33
+ margin-bottom: 1rem;
34
+ }
35
+ .speaker-bio {
36
+ color: #6b7280;
37
+ font-size: 0.875rem;
38
+ margin-bottom: 1rem;
39
+ }
40
+ .speaker-social {
41
+ display: flex;
42
+ gap: 0.75rem;
43
+ }
44
+ .social-icon {
45
+ color: #4f46e5;
46
+ transition: color 0.2s;
47
+ }
48
+ .social-icon:hover {
49
+ color: #4338ca;
50
+ }
51
+ </style>
52
+ <div class="speaker-grid">
53
+ <!-- Speaker 1 -->
54
+ <div class="speaker-card">
55
+ <img src="http://static.photos/technology/320x240/1" alt="Speaker" class="speaker-image">
56
+ <div class="speaker-info">
57
+ <h3 class="speaker-name">Dr. Sarah Johnson</h3>
58
+ <p class="speaker-title">CTO at Quantum Innovations</p>
59
+ <p class="speaker-bio">Expert in quantum computing with 15+ years of experience in developing next-generation algorithms.</p>
60
+ <div class="speaker-social">
61
+ <a href="#" aria-label="Twitter"><i data-feather="twitter" class="social-icon"></i></a>
62
+ <a href="#" aria-label="LinkedIn"><i data-feather="linkedin" class="social-icon"></i></a>
63
+ <a href="#" aria-label="GitHub"><i data-feather="github" class="social-icon"></i></a>
64
+ </div>
65
+ </div>
66
+ </div>
67
+
68
+ <!-- Speaker 2 -->
69
+ <div class="speaker-card">
70
+ <img src="http://static.photos/technology/320x240/2" alt="Speaker" class="speaker-image">
71
+ <div class="speaker-info">
72
+ <h3 class="speaker-name">Michael Chen</h3>
73
+ <p class="speaker-title">Lead AI Researcher at NeuroTech</p>
74
+ <p class="speaker-bio">Pioneer in neural network architectures and their applications in healthcare diagnostics.</p>
75
+ <div class="speaker-social">
76
+ <a href="#" aria-label="Twitter"><i data-feather="twitter" class="social-icon"></i></a>
77
+ <a href="#" aria-label="LinkedIn"><i
index.html CHANGED
@@ -1,19 +1,104 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>TechFusion Summit 2024 | The Ultimate Tech Conference</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script src="components/navbar.js"></script>
12
+ <script src="components/footer.js"></script>
13
+ <script src="components/countdown.js"></script>
14
+ <script src="components/speakers.js"></script>
15
+ <script src="components/schedule.js"></script>
16
+ <script src="components/venue.js"></script>
17
+ <script src="components/pricing.js"></script>
18
+ <script src="components/sponsors.js"></script>
19
+ <script src="components/highlights.js"></script>
20
+ <script src="components/registration.js"></script>
21
+ </head>
22
+ <body class="bg-gray-50">
23
+ <custom-navbar></custom-navbar>
24
+
25
+ <!-- Hero Section with Countdown -->
26
+ <section class="relative bg-gradient-to-r from-blue-600 to-purple-600 text-white py-20">
27
+ <div class="container mx-auto px-6 text-center">
28
+ <h1 class="text-5xl font-bold mb-6">TechFusion Summit 2024</h1>
29
+ <p class="text-xl mb-8 max-w-2xl mx-auto">Join the most innovative tech conference of the year featuring cutting-edge technologies and industry leaders.</p>
30
+ <div class="mb-12">
31
+ <p class="text-lg mb-4">October 15-17, 2024 | San Francisco, CA</p>
32
+ <custom-countdown date="2024-10-15"></custom-countdown>
33
+ </div>
34
+ <a href="#register" class="bg-white text-blue-600 font-bold py-3 px-8 rounded-full hover:bg-gray-100 transition duration-300 inline-block">
35
+ Register Now
36
+ </a>
37
+ </div>
38
+ </section>
39
+
40
+ <!-- Speakers Section -->
41
+ <section id="speakers" class="py-20 bg-white">
42
+ <div class="container mx-auto px-6">
43
+ <h2 class="text-3xl font-bold text-center mb-16">Featured Speakers</h2>
44
+ <custom-speakers></custom-speakers>
45
+ </div>
46
+ </section>
47
+
48
+ <!-- Schedule Section -->
49
+ <section id="schedule" class="py-20 bg-gray-100">
50
+ <div class="container mx-auto px-6">
51
+ <h2 class="text-3xl font-bold text-center mb-16">Event Schedule</h2>
52
+ <custom-schedule></custom-schedule>
53
+ </div>
54
+ </section>
55
+
56
+ <!-- Venue Section -->
57
+ <section id="venue" class="py-20 bg-white">
58
+ <div class="container mx-auto px-6">
59
+ <h2 class="text-3xl font-bold text-center mb-16">Venue Information</h2>
60
+ <custom-venue></custom-venue>
61
+ </div>
62
+ </section>
63
+
64
+ <!-- Pricing Section -->
65
+ <section id="pricing" class="py-20 bg-gray-100">
66
+ <div class="container mx-auto px-6">
67
+ <h2 class="text-3xl font-bold text-center mb-16">Ticket Options</h2>
68
+ <custom-pricing></custom-pricing>
69
+ </div>
70
+ </section>
71
+
72
+ <!-- Sponsors Section -->
73
+ <section id="sponsors" class="py-20 bg-white">
74
+ <div class="container mx-auto px-6">
75
+ <h2 class="text-3xl font-bold text-center mb-16">Our Sponsors</h2>
76
+ <custom-sponsors></custom-sponsors>
77
+ </div>
78
+ </section>
79
+
80
+ <!-- Highlights Section -->
81
+ <section id="highlights" class="py-20 bg-gray-100">
82
+ <div class="container mx-auto px-6">
83
+ <h2 class="text-3xl font-bold text-center mb-16">Past Event Highlights</h2>
84
+ <custom-highlights></custom-highlights>
85
+ </div>
86
+ </section>
87
+
88
+ <!-- Registration Section -->
89
+ <section id="register" class="py-20 bg-white">
90
+ <div class="container mx-auto px-6">
91
+ <h2 class="text-3xl font-bold text-center mb-16">Register Now</h2>
92
+ <custom-registration></custom-registration>
93
+ </div>
94
+ </section>
95
+
96
+ <custom-footer></custom-footer>
97
+
98
+ <script>
99
+ feather.replace();
100
+ </script>
101
+ <script src="script.js"></script>
102
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
103
+ </body>
104
+ </html>
script.js ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Main JavaScript file for event handlers and additional functionality
2
+
3
+ document.addEventListener('DOMContentLoaded', function() {
4
+ // Initialize any necessary JavaScript functionality
5
+ console.log('TechFusion Summit website loaded');
6
+
7
+ // Mobile menu toggle functionality will be handled by the navbar component
8
+ });
9
+
10
+ // Form submission handler for registration
11
+ function handleRegistrationSubmit(event) {
12
+ event.preventDefault();
13
+ const form = event.target;
14
+ const formData = new FormData(form);
15
+
16
+ // Here you would typically send the data to your server
17
+ console.log('Form submitted:', Object.fromEntries(formData));
18
+
19
+ // Show success message
20
+ alert('Thank you for registering! We will contact you shortly.');
21
+ form.reset();
22
+ }
23
+
24
+ // Add event listener to registration form
25
+ document.addEventListener('DOMContentLoaded', function() {
26
+ const registrationForm = document.querySelector('#registration-form');
27
+ if (registrationForm) {
28
+ registrationForm.addEventListener('submit', handleRegistrationSubmit);
29
+ }
30
+ });
style.css CHANGED
@@ -1,28 +1,45 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
 
 
 
 
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Custom styles that can't be handled by Tailwind */
2
+ .speaker-card:hover {
3
+ transform: translateY(-10px);
4
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
5
  }
6
 
7
+ .schedule-tab.active {
8
+ border-bottom: 3px solid #4f46e5;
 
9
  }
10
 
11
+ .ticket-card:hover {
12
+ transform: scale(1.05);
 
 
 
13
  }
14
 
15
+ /* Smooth scrolling for anchor links */
16
+ html {
17
+ scroll-behavior: smooth;
 
 
 
18
  }
19
 
20
+ /* Custom animation for countdown */
21
+ @keyframes pulse {
22
+ 0%, 100% {
23
+ transform: scale(1);
24
+ }
25
+ 50% {
26
+ transform: scale(1.05);
27
+ }
28
  }
29
+
30
+ .countdown-number {
31
+ animation: pulse 2s infinite;
32
+ }
33
+
34
+ /* Responsive adjustments */
35
+ @media (max-width: 768px) {
36
+ .speaker-grid {
37
+ grid-template-columns: repeat(2, 1fr);
38
+ }
39
+ }
40
+
41
+ @media (max-width: 640px) {
42
+ .speaker-grid {
43
+ grid-template-columns: 1fr;
44
+ }
45
+ }