Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
163 lines (144 loc) · 4.11 KB
/
Copy pathindex.html
File metadata and controls
163 lines (144 loc) · 4.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML&CSS</title>
<style>
*{
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
body{
margin:0;
}
.nav{
background-color: #333;
color: white;
padding: 15px 30px;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav h1{
margin: 0px;
font-size: 24px;
cursor: pointer;
}
.nav ul{
list-style-type: none;
display: flex;
}
.nav ul li{
margin: 0 15px;
cursor: pointer;
}
.hero{
background-image: url(https://images.unsplash.com/photo-1737279721259-a83de7016fae?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHwxMTJ8fHxlbnwwfHx8fHw%3D);
background-size: cover;
background-position: center;
height: 500px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
color: white;
}
.hero h2{
font-size: 36px;
margin-bottom: 20px;
}
.hero-btn{
display: flex;
gap: 20px;
}
.card-section{
display: flex;
gap: 2px;
justify-content: center;
padding: 60px 20px;
background-color: #b5b5b5;
}
.card{
background-color: white;
border-radius: 10px;
border: 1px solid #ccc;
padding: 20px;
width: 300px;
height: 300px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
text-align: center;
}
button{
padding:12px 25px;
border:none;
background:#000;
color:white;
border-radius:8px;
cursor:pointer;
transition:.3s;
}
button:hover{
background:orange;
}
.card img{
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 10px;
}
.card h3{
margin-top: 10px;
}
.card p{
color: #666;
font-size: 14px;
}
</style>
</head>
<body>
<div class="nav">
<h1>my website</h1>
<div>
<ul>
<li>Home</li>
<li>About</li>
<li>Contact</li>
<li>Services</li>
</ul>
</div>
</div>
<div class="hero">
<h2> Welcome To our SSite</h2>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores, ex!</p>
<div class="hero-btn">
<button>Learn more</button><br>
<button>Contact</button>
</div>
</div><br>
<div class="card-section">
<div class="card">
<img src="https://images.unsplash.com/photo-1781902834597-25a42a64b3c9?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHwzM3x8fGVufDB8fHx8fA%3D%3D" alt="card image">
<h3>Card Title</h3>
<p>lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores, ex!</p>
</div>
<div class="card two">
<img src="https://plus.unsplash.com/premium_photo-1782407145081-ad2787457fc6?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHw1OHx8fGVufDB8fHx8fA%3D%3D" alt="card image">
<h3>Card Title</h3>
<p>lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores, ex!</p>
</div>
<div class="card three">
<img src="https://images.unsplash.com/photo-1781989521161-13b33619cfcb?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxmZWF0dXJlZC1waG90b3MtZmVlZHw2Mnx8fGVufDB8fHx8fA%3D%3D" alt="card image">
<h3>Card Title</h3>
<p>lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores, ex!</p>
</div>
</div>
<div calss="footer" style=" background-color: #333;
color: white;
text-align: center;
padding: 20px 0;">
© 2026 My Website. All rights reserved.
</div>
</body>
</html>