-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbusiness.html
More file actions
223 lines (198 loc) · 4.68 KB
/
business.html
File metadata and controls
223 lines (198 loc) · 4.68 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Premium Business Website</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<style type="text/css" media="all">
/* General Styles */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
color: #333;
}
/* Navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}
.logo {
font-size: 24px;
font-weight: bold;
color: #CC4810;
}
.nav-links {
list-style: none;
display: flex;
gap: 20px;
}
.nav-links a {
text-decoration: none;
color: #D1D5E8;
font-weight: bold;
}
.search-bar {
display: flex;
align-items: center;
}
.search-bar input {
padding: 8px;
border: none;
border-radius: 5px;
margin-right: 10px;
}
.search-bar button {
background: none;
border: none;
color: #fff;
cursor: pointer;
}
/* Hero Section */
.hero {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
background: url('e1.jpg') no-repeat center center/cover;
color: #fff;
}
.hero-content h1 {
font-size: 48px;
margin-bottom: 20px;
}
.hero-content p {
font-size: 24px;
margin-bottom: 30px;
}
.btn {
padding: 10px 20px;
background: #ff6f61;
color: #fff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
}
/* Glass Morphism Effect */
.card, .item, form {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 10px;
padding: 20px;
margin: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* Scroll Animation */
section {
padding: 100px 20px;
opacity: 0;
transform: translateY(50px);
transition: opacity 1s, transform 1s;
}
section.visible {
opacity: 1;
transform: translateY(0);
}
/* Footer */
footer {
text-align: center;
padding: 20px;
background: rgba(0, 0, 0, 0.8);
color: #fff;
}
</style>
<body>
<!-- Navbar -->
<nav class="navbar">
<div class="logo">MyBusiness</div>
<ul class="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<div class="search-bar">
<input type="text" placeholder="Search...">
<button><i class="fas fa-search"></i></button>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="hero">
<div class="hero-content">
<h1>Welcome to MyBusiness</h1>
<p>Your success is our priority.</p>
<a href="#services" class="btn">Explore Services</a>
</div>
</section>
<!-- About Section -->
<section id="about" class="about">
<h2>About Us</h2>
<p>We are a premium business dedicated to delivering excellence.</p>
</section>
<!-- Services Section -->
<section id="services" class="services">
<h2>Our Services</h2>
<div class="service-cards">
<div class="card">Service 1</div>
<div class="card">Service 2</div>
<div class="card">Service 3</div>
</div>
</section>
<!-- Portfolio Section -->
<section id="portfolio" class="portfolio">
<h2>Portfolio</h2>
<div class="portfolio-grid">
<div class="item">Project 1</div>
<div class="item">Project 2</div>
<div class="item">Project 3</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="contact">
<h2>Contact Us</h2>
<form>
<input type="text" placeholder="Your Name">
<input type="email" placeholder="Your Email">
<textarea placeholder="Your Message"></textarea>
<button type="submit">Send</button>
</form>
</section>
<!-- Footer -->
<footer>
<p>© 2025 MyBusiness. All rights reserved.</p>
</footer>
<script>
// Scroll Animation
const sections = document.querySelectorAll('section');
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, { threshold: 0.1 });
sections.forEach(section => {
observer.observe(section);
});
// Search Bar Functionality
const searchButton = document.querySelector('.search-bar button');
searchButton.addEventListener('click', () => {
const searchTerm = document.querySelector('.search-bar input').value;
alert(`You searched for: ${searchTerm}`);
});
</script>
</body>
</html>