Skip to content

Commit 7e13017

Browse files
committed
update: made home responsive
1 parent 3cf3c67 commit 7e13017

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

css/index.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,39 @@ html {
6060
.about-description{
6161
text-align: justify;
6262
line-height: 1.5;
63+
}
64+
65+
@media only screen and (max-width: 768px) {
66+
.hero {
67+
background-size: 90%;
68+
height: 90vh;
69+
background-position: top;
70+
}
71+
72+
.header {
73+
font-size: 4rem;
74+
width: 90%;
75+
}
76+
77+
.about-main {
78+
grid-template-columns: 1fr;
79+
margin: 30px auto;
80+
}
81+
82+
.about-pic, .about-section {
83+
grid-column: 1;
84+
}
85+
86+
.about-pic {
87+
width: 70%;
88+
margin-bottom: 20px;
89+
}
90+
91+
.about-section {
92+
margin: 20px 10px;
93+
}
94+
.about-description, .about-header {
95+
margin: 20px;
96+
}
97+
6398
}

0 commit comments

Comments
 (0)