-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (90 loc) · 3.45 KB
/
Copy pathindex.html
File metadata and controls
100 lines (90 loc) · 3.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YourBusiness - Landing Page</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="header">
<div class="logo">ElevateWorks </div>
<nav class="navbar" id="navbar">
<a href="#home">Home</a>
<a href="#services">Services</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</nav>
<div class="menu-toggle" id="menu-toggle">☰</div>
</header>
<section class="hero fade-in" id="home">
<div class="hero-content">
<h1>Grow Your Business with Us</h1>
<p>We provide top-notch solutions to take your business to the next level.</p>
<a href="#contact" class="btn">Get Started</a>
</div>
<div class="hero-image">
</div>"
</div>
</section>
<section class="services fade-in" id="services">
<h2>Our Services</h2>
<div class="service-cards">
<div class="card">
<img src="https://via.placeholder.com/300x200" alt="Consulting">
<h3>Consulting</h3>
<p>Expert advice to help you succeed.</p>
</div>
<div class="card">
<img src="https://via.placeholder.com/300x200" alt="Marketing">
<h3>Marketing</h3>
<p>Creative strategies to grow your brand.</p>
</div>
<div class="card">
<img src="https://via.placeholder.com/300x200" alt="Support">
<h3>Support</h3>
<p>Reliable customer support for your needs.</p>
</div>
</div>
</section>
<section class="about fade-in" id="about">
<div class="about-content">
<h2>About Us</h2>
<p>We are a leading business solutions provider committed to your success. Our team is passionate about delivering quality services to help you achieve your goals.</p>
</div>
<div class="about-image">
<img src="https://via.placeholder.com/500x300" alt="About Us">
</div>
</section>
<section class="contact fade-in" id="contact">
<h2>Contact Us</h2>
<form id="contactForm">
<input type="text" id="name" placeholder="Your Name" required>
<input type="email" id="email" placeholder="Your Email" required>
<textarea id="message" placeholder="Your Message" required></textarea>
<button type="submit" class="btn">Send Message</button>
</form>
<p id="formMessage" class="form-message"></p>
</section>
<footer class="footer">
<p>© 2025 ElevateWorks. All Rights Reserved.</p>
</footer>
<script src="script.js">
// Intersection Observer to animate service cards
document.addEventListener('DOMContentLoaded', () => {
const cards = document.querySelectorAll('.card');
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate');
observer.unobserve(entry.target); // Optional: animate only once
}
});
}, { threshold: 0.2 });
cards.forEach(card => {
observer.observe(card);
});
});
</script>
</body>
</html>