Skip to content

Commit db2b116

Browse files
Front page responsive
1 parent c956440 commit db2b116

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

website2.0/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
flex-direction: column;
1919
align-items: center;
2020
justify-content: center;
21-
height: 100vh;
21+
overflow-y: scroll;
22+
height: auto;
2223
}
2324
</style>
2425
</head>

website2.0/styles.css

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
header {
1414
width: 100%;
15-
position: absolute;
15+
position: relative;
1616
top: 0;
1717
background-color: transparent;
1818
padding: 10px 0;
@@ -21,6 +21,9 @@ header {
2121
nav {
2222
display: flex;
2323
justify-content: space-between;
24+
flex-wrap: wrap;
25+
justify-content: center;
26+
position: relative;
2427
align-items: center;
2528
width: 90%;
2629
margin: 0 auto;
@@ -33,7 +36,6 @@ nav {
3336
width: 89px;
3437
height: 89px;
3538
top: 10px;
36-
left: 80px;
3739
gap: 0px;
3840
opacity: 0px;
3941

@@ -48,7 +50,8 @@ opacity: 0px;
4850
padding: 10px 20px;
4951
background-color: #FDD86C;
5052
border-radius: 25px;
51-
53+
flex-wrap: wrap;
54+
justify-content: center;
5255
box-shadow: 0 4px 6px #FF7D1F;
5356
}
5457

@@ -106,6 +109,20 @@ a{
106109
#heart{
107110
color: red;
108111
}
112+
@media only screen and (max-width:592px){
113+
h1{
114+
font-size: 60px !important;
115+
}
116+
}
117+
@media only screen and (max-width:332px){
118+
h1{
119+
font-size: 40px !important;
120+
}
121+
}
122+
main{
123+
height: auto ;
124+
min-height: 84vh !important;
125+
}
109126

110127
.main-content {
111128
text-align: center;

0 commit comments

Comments
 (0)