Skip to content

Commit 135b856

Browse files
committed
(v0.5.2-alpha) Responsiveness!!
Added responsive support for a wide range of devicesss! Mobile view doesnt look so cursed now lol
1 parent 07596dd commit 135b856

2 files changed

Lines changed: 85 additions & 0 deletions

File tree

src/styles/App.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
display: flex;
4848
flex-direction: column;
4949
align-items: center;
50+
51+
overflow-x: hidden;
5052
}
5153

5254
#trailer {

src/styles/routes/landing.css

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
/*height: 18rem;*/
119119

120120
max-width: 55rem;
121+
min-width: 27rem;
121122
width: 65%;
122123

123124
border-radius: 1.25rem 1.25rem 0 0;
@@ -185,6 +186,7 @@
185186
width: 100%;
186187

187188
color: var(--clr-surface-a80);
189+
margin-left: 5rem;
188190
}
189191

190192
.landing .hero .terminal .body {
@@ -716,6 +718,7 @@ a {
716718

717719
/*margin-bottom: 12rem;*/
718720
/*background-color: var(--clr-dark-a0);*/
721+
text-align: center
719722
}
720723

721724

@@ -761,6 +764,7 @@ a {
761764
letter-spacing: 2px;
762765

763766
margin: 0;
767+
text-align: center;
764768
}
765769

766770
.footer p {
@@ -827,4 +831,83 @@ a {
827831
@keyframes blink {
828832
0%,50%,100% { opacity: 1; }
829833
25%,75% { opacity: 0; }
834+
}
835+
836+
837+
@media screen and (max-width: 930px) {
838+
.ysws .cards {
839+
flex-direction: column;
840+
justify-content: center;
841+
align-items: center;
842+
width: 55rem;
843+
height: 64rem;
844+
845+
/*background-color: var(--clr-surface-tonal-a50);*/
846+
}
847+
.arrow {
848+
rotate: 50deg;
849+
}
850+
851+
.community .container .description {
852+
text-align: center;
853+
}
854+
.community .container .buttons {
855+
justify-content: center;
856+
}
857+
.community .container {
858+
flex-direction: column;
859+
gap: 2.5rem;
860+
}
861+
}
862+
863+
@media screen and (max-width: 480px) {
864+
.landing .hero .terminal {
865+
min-width: 5rem;
866+
width: 90%;
867+
}
868+
869+
.community .container {
870+
width: 100%;
871+
}
872+
873+
.community .container .terminal {
874+
min-width: 5rem;
875+
width: 90%;
876+
}
877+
}
878+
879+
@media screen and (max-width: 430px) {
880+
.ysws .cards {
881+
width: 100%;
882+
height: auto;
883+
884+
text-align: center;
885+
}
886+
.ysws .cards .card {
887+
height: 90%;
888+
width: 70%;
889+
}
890+
.ysws .cards .card.ys {
891+
rotate: 0deg;
892+
}
893+
.ysws .cards .card.ws {
894+
rotate: 0deg;
895+
}
896+
}
897+
898+
@media screen and (max-width: 380px) {
899+
.actions {
900+
opacity: 0;
901+
visibility: hidden;
902+
height: 0;
903+
width: 0;
904+
}
905+
906+
.landing .hero .terminal .titlebar .title-container {
907+
margin-left: 0;
908+
}
909+
910+
.community h1 {
911+
font-size: 2.5rem;
912+
}
830913
}

0 commit comments

Comments
 (0)