Skip to content

Commit

Permalink
feat: improve mobile view (#76)
Browse files Browse the repository at this point in the history
* feat: improve mobile view

* feat: lint

* feat: padding title new
  • Loading branch information
raymond1242 authored Mar 15, 2024
1 parent 26c6c44 commit 231cdcf
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 29 deletions.
2 changes: 1 addition & 1 deletion _sass/blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
margin-bottom: 0;

@media (max-width: 991.98px) {
padding: 0;
padding: 2rem 1rem;
}
}

Expand Down
7 changes: 6 additions & 1 deletion _sass/sections/EGOI.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
margin: 10px 0;
font-size: 23px;
font-weight: 500;
width: 250px;
justify-content: center;
}

Expand All @@ -43,3 +42,9 @@
}
}
}

@media (max-width: $breakpoint-sm) {
.egoi-wrapper {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
}
16 changes: 16 additions & 0 deletions _sass/sections/OII.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,19 @@
width: 180px;
}
}

@media (max-width: $breakpoint-md) {
.oii-wrapper {
grid-template-columns: repeat(1, minmax(0, 1fr));
}

.oii-calendar{
flex-direction: column;
gap: 1rem;
padding: 2rem;

img {
width: 150px;
}
}
}
33 changes: 6 additions & 27 deletions _sass/sections/banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@

.banner-phase {
display: flex;
width: 350px;
flex-direction: column;
margin: auto;
padding: 1.5rem;
Expand All @@ -60,14 +59,15 @@
.banner-base {
display: flex;
flex-direction: column;
width: 360px;
padding: 1.5rem;
font-size: 18px;
font-weight: 300;
}

.banner-picture {
width: 745px;
display: grid;
gap: 0.5rem;
grid-template-columns: repeat(2, minmax(0, 1fr));

img {
border-radius: 24px;
Expand All @@ -82,23 +82,16 @@
}

@media screen and (max-width: $breakpoint-xxl) {
padding: 10px 90px;

.site-title {
font-size: 32px;
}

.banner-phase {
min-width: 320px;
}

.banner-base {
min-width: 320px;
font-size: 16px;
}

.banner-picture {
min-width: 640px;
text-align: center;

img {
Expand All @@ -108,12 +101,7 @@
}

@media screen and (max-width: $breakpoint-xl) {
.banner-phase {
width: 260px;
}

.banner-base {
width: 240px;
font-size: 14px;
}

Expand Down Expand Up @@ -142,18 +130,13 @@
font-size: 20px;
}

.banner-phase {
width: 450px;
}

.banner-base {
width: 450px;
font-size: 16px;
}

.banner-picture {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: repeat(2, minmax(0, 1fr));

img {
width: 290px;
Expand All @@ -162,17 +145,13 @@
}

@media (max-width: $breakpoint-md) {
.banner-phase {
width: 450px;
font-size: 16px;
}

.banner-base {
width: 450px;
font-size: 16px;
}

.banner-picture {
grid-template-columns: repeat(1, minmax(0, 1fr));

img {
width: 300px;
}
Expand Down
6 changes: 6 additions & 0 deletions _sass/sections/ioi-egoi-2024.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@
color: black;
}
}

@media (max-width: $breakpoint-md) {
.ioi-egoi-wrapper {
padding: 40px 30px;
}
}
8 changes: 8 additions & 0 deletions _sass/sections/winners-phase-2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@
}
}
}

@media (max-width: $breakpoint-md) {
.winners-wrapper {
padding: 40px 30px;
grid-template-columns: repeat(1, minmax(0, 1fr));
gap: 1rem;
}
}

0 comments on commit 231cdcf

Please sign in to comment.