Skip to content

Commit

Permalink
Coming soon page mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian0701 committed Mar 15, 2023
1 parent afa3561 commit 459fdb1
Showing 1 changed file with 42 additions and 7 deletions.
49 changes: 42 additions & 7 deletions src/styles/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@
.coming_soon_container h1 {
opacity: 0;
text-align: center;
font: normal normal 92px/313px Futura;
letter-spacing: -2.3px;
animation: fadeIn 1s 5s ease-in-out 1 forwards;
animation: fadeIn 1s 9s ease-in-out 1 forwards;
}

.not_found_container button,
Expand All @@ -198,8 +196,6 @@
.coming_soon_container span {
margin: -3rem 0 3rem 0;
background-color: #31d3f5;
height: 10px;
animation: grow 1s 5s ease-in-out 1 forwards;
}

.coming_soon_container p {
Expand All @@ -223,8 +219,6 @@
.animComingSoon {
margin-top: 60px;
position: absolute;
width: 800px;
height: 200px;
}

/* 螢幕寬度小於 992px 時 */
Expand Down Expand Up @@ -267,11 +261,28 @@
height: 250px;
}

.animComingSoon {
width: 400px;
height: 100px;
}

.not_found_container button,
.coming_soon_container button {
font: normal normal 16px/26px Noto Sans TC;
letter-spacing: 0.08px;
}

.coming_soon_container h1 {
font: normal normal 42px/218px Futura;
letter-spacing: 2px;
white-space: nowrap;
}

.coming_soon_container span {
background-color: #31d3f5;
height: 4px;
animation: growMobile 1s 5s ease-in-out 1 forwards;
}
}

/* 螢幕寬度大於 992.1px 時 */
Expand Down Expand Up @@ -309,6 +320,21 @@
width: 800px;
height: 500px;
}

.animComingSoon {
width: 800px;
height: 200px;
}

.coming_soon_container h1 {
font: normal normal 92px/313px Futura;
letter-spacing: -2.3px;
}

.coming_soon_container span {
height: 10px;
animation: grow 1s 5s ease-in-out 1 forwards;
}
}

@media (prefers-color-scheme: dark) {
Expand Down Expand Up @@ -366,6 +392,15 @@
}
}

@keyframes growMobile {
from {
width: 0;
}
to {
width: 370px;
}
}

@keyframes fromBottomComingSoon {
from {
opacity: 0;
Expand Down

0 comments on commit 459fdb1

Please sign in to comment.