-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject2.css
296 lines (232 loc) · 4.98 KB
/
Project2.css
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
* {
padding: 0;
margin: 0;
font-family: 'Amaranth', sans-serif;
}
html{
scroll-behavior: smooth;
}
/* draw borders of each bar before to know the size of each section */
/* if you want before image to be set at that parent size only make parent position relative */
/* NAVBAR */
.navbar {
display: flex;
position: sticky;
top: 0;
left: 0;
/* position: relative; */
height: 75px;
align-items: center;
}
.logo img {
height: 70px;
width: 70px;
margin: 2px 10px;
}
.navbar ul {
display: block;
margin: auto;
display: flex;
}
.navbar ul li {
list-style: none;
}
.navbar ul li a {
text-decoration: none;
padding: 0px 29px;
color: white;
font-size: .9rem;
font-weight: bolder;
}
.navbar ul li a:hover {
background-color: white;
color: black;
border-radius: 18px;
padding: 4px 18px;
}
.navbar::before {
content: "";
position: absolute;
background-color: black;
height: 100%;
width: 100%;
top: 0;
left: 0;
z-index: -1;
opacity: .5;
}
/* MAIN BODY */
.container {
height: 460px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
}
.container h2 {
text-align: center;
padding: 12px 8px;
}
.container p {
text-align: center;
padding: 18px 216px;
}
.bts {
padding: 6px 10px;
border: none;
border-radius: 23px;
font-size: .8rem;
color: black;
}
.bts:hover {
background-color: black;
color: white;
cursor: pointer;
}
/* to solve this image issue you are keep talking about, if image is getting destroyed every time in responsive kuch aur vaise kuch aur set the height in pixel */
.container::before {
content: "";
position: absolute;
background: url("./backgroundimg/spaghetti-1932466.jpg") no-repeat center center/cover;
top: 0;
left: 0;
height: 537px;
width: 100%;
z-index: -1;
opacity: .8;
}
/* SERVICES SECTION */
#services h1 {
text-align: center;
font-size: 1.5rem;
margin-top: 10px;
}
#services .item {
display: flex;
justify-content: space-evenly;
align-items: center;
margin: 34px;
}
#services .box {
margin: 3px 54px;
border-radius: 23px;
padding: 3px 9px;
height: 320px;
background-color: rgb(241, 232, 219);
box-shadow: 9px 10px 8px rgb(241, 232, 219);
}
#services .box img {
height: 130px;
width: 200px;
display: block;
margin: auto;
padding: 18px 1px;
}
#services .box h3 {
text-align: center;
}
#services .box p {
text-align: center;
margin-top: 4px;
}
/* CLIENTS SECTION */
#clients {
position: relative;
height: 300px;
}
#clients h2 {
text-align: center;
}
.jobs {
display: flex;
justify-content: space-evenly;
margin-top: 69px;
flex-wrap: wrap;
}
.jobs img {
height: 100px;
width: 100px;
}
#clients::before {
content: "";
position: absolute;
background: url("./backgroundimg/wheat-865152.jpg") no-repeat center center/cover;
height: 100%;
width: 100%;
z-index: -1;
opacity: .6;
}
/* CONTACT */
#contact {
position: relative;
height: 450px;
}
#contact h2 {
text-align: center;
color: rgb(42, 33, 33);
}
.filler {
display: flex;
justify-content: center;
}
.fill {
margin: 22px 4px;
}
.fill input {
padding-right: 200px;
padding-top: 5px;
padding-bottom: 3px;
padding-left: 7px;
border-radius: 18px;
border: none;
}
.fill textarea {
padding-right: 129px;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 7px;
border-radius: 18px;
border: none;
}
.fill input[type="submit"] {
padding-right: 12px;
padding-top: 9px;
padding-bottom: 7px;
padding-left: 12px;
border-radius: 18px;
border: none;
font-size: .8rem;
display: block;
margin: auto;
cursor: pointer;
}
.fill input[type="submit"]:hover {
background-color: grey;
color: black;
}
#contact::before {
content: "";
position: absolute;
background: url("./backgroundimg/computer-2048166.jpg") no-repeat center center/cover;
height: 100%;
width: 100%;
z-index: -1;
opacity: .7;
}
/* END */
.end {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
background-color: rgb(64, 57, 57);
color: white;
height: 60px;
}
/* height dedi aur flex direction column kra responsive ke liye ya vaise bhi to agr flex direction column krke */
/* size zyada aa raha hua to bahr nikl jega isliye size do hi mt , fr vo apne app adjust krlega */
/* agr :before selector mei flex direction column krne wala ye scene ho raha hai to uske parent ko koi size mt do */
/* :before depend hi saara parent pe krta , tum uski position relative rkho bs vo main hai , aur parent ki height */
/* hatake agr tum flex direction column kroge to chahe tumhari cheeze badh bhi jaye column wise vo uske andr hi rahegi
/* because humne height nhi di bhai */