Skip to content

Commit 1931fe3

Browse files
website fully responsived
1 parent 236b7df commit 1931fe3

File tree

2 files changed

+105
-20
lines changed

2 files changed

+105
-20
lines changed

design 3/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ <h1>VIBRACODE</h1>
2525
<li><a href="#projects">PROJECTS</a></li>
2626
<li><a href="#contact">CONTACT</a></li>
2727
</nav>
28+
<i class="fa-solid fa-bars hamburger-icon"></i>
2829
</div>
2930
</header>
3031

design 3/styles.css

Lines changed: 104 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@
77
scroll-behavior: smooth;
88
}
99

10-
/* header styles */
11-
header{
10+
/* header styles */
11+
12+
header {
1213
background-color: white;
1314
position: sticky;
1415
top: 0;
1516
z-index: 1;
1617
border-bottom: 1px solid rgb(177, 177, 177);
1718
}
19+
header .header-container .hamburger-icon {
20+
display:none;
21+
}
1822
.header-container {
1923
display: flex;
20-
width: 75%;
21-
height: 70px;
24+
max-width: 75%;
25+
min-height: 70px;
2226
margin: auto;
2327
align-items: center;
2428
justify-content: space-between;
@@ -96,10 +100,6 @@ button {
96100

97101
/* about */
98102

99-
.about {
100-
height: 100vh;
101-
overflow: none;
102-
}
103103
.about .about-text {
104104
text-align: center;
105105
padding: 70px 0 50px 0;
@@ -109,19 +109,15 @@ button {
109109
width: 70%;
110110
margin: auto;
111111
}
112-
113112
.about .about-content .picture img {
114-
width: 400px;
115-
height: 500px;
113+
max-width: 400px;
114+
min-height: 500px;
116115
object-fit: cover;
117116
}
118117
.about .about-content .about-right {
119118
color: rgb(65, 65, 65);
120119
margin-left: 100px;
121-
}
122-
.about .about-content .about-right {
123-
color: rgb(65, 65, 65);
124-
margin-left: 100px;
120+
min-height: 50%;
125121
}
126122
.about .about-content .about-right li {
127123
list-style-position: inside;
@@ -149,8 +145,8 @@ section .services-header {
149145
}
150146
.services {
151147
display: flex;
152-
width: 80%;
153-
height: calc(100vh - 100px);
148+
min-width: 80%;
149+
min-height: calc(100vh - 100px);
154150
flex-flow: wrap;
155151
justify-content: center;
156152
align-items: center;
@@ -200,14 +196,15 @@ section .projects-text {
200196
}
201197
section .projects {
202198
display: flex;
199+
flex-flow: wrap;
203200
justify-content: center;
204201
align-items: center;
205-
height: calc(100vh - 100px);
202+
min-height: calc(100vh - 100px);
206203
color: rgb(73, 73, 73);
207204
}
208205
section .projects div {
209206
width: 300px;
210-
height: 500px;
207+
min-height: 500px;
211208
text-align: center;
212209
margin-left: 50px;
213210
padding: 50px 0;
@@ -261,7 +258,6 @@ footer {
261258
border: 0;
262259
margin: 10px;
263260
}
264-
265261
footer .downfooter {
266262
width: 100%;
267263
background-color: #d11414;
@@ -272,3 +268,91 @@ footer .downfooter p {
272268
line-height: 50px;
273269
text-align: center;
274270
}
271+
272+
/* resposive */
273+
274+
@media only screen and (max-width: 770px) {
275+
.header-container {
276+
max-width: 95%;
277+
}
278+
.showcase .showcase-content {
279+
width: 70%;
280+
left: 15%;
281+
top: 20%;
282+
}
283+
.about .about-content {
284+
width: 90%;
285+
}
286+
.about .about-content .picture img {
287+
max-width: 300px;
288+
min-height: 400px;
289+
}
290+
.about .about-content .about-right {
291+
margin-left: 20px;
292+
font-size: 14px;
293+
}
294+
.footer-contact {
295+
width: 70%;
296+
}
297+
}
298+
@media only screen and (max-width: 606px) {
299+
.header-container {
300+
min-height: 50px;
301+
}
302+
.header-container h1 {
303+
font-size: 18px;
304+
}
305+
.header-container nav li a {
306+
padding: 3px 5px;
307+
font-size: 10px;
308+
}
309+
.showcase .showcase-content {
310+
top: 10%;
311+
}
312+
.about .about-content .picture img {
313+
max-width: 250px;
314+
max-height: 300px;
315+
}
316+
.about .about-content .about-right {
317+
margin-left: 20px;
318+
font-size: 10px;
319+
}
320+
.about .about-text {
321+
padding: 30px 0 30px 0;
322+
}
323+
.services {
324+
min-width: 95%;
325+
}
326+
.services div {
327+
min-width: 200px;
328+
min-height: 200px;
329+
margin: 0 10px 20px 10px;
330+
}
331+
}
332+
@media only screen and (max-width: 420px) {
333+
header .header-container .hamburger-icon {
334+
display:inline-block;
335+
}
336+
.header-container nav{
337+
display: none;
338+
}
339+
.about .about-content{
340+
flex-flow: wrap;
341+
}
342+
.about .about-content .picture img{
343+
max-width: 100%;
344+
min-height: 500px;
345+
}
346+
.about .about-content .about-right {
347+
margin-left: 20px;
348+
font-size: 13px;
349+
}
350+
section .projects div{
351+
margin-left: 0px;
352+
}
353+
.footer-contact {
354+
width: 90%;
355+
356+
padding: 10px 10px;
357+
}
358+
}

0 commit comments

Comments
 (0)