Skip to content

Commit

Permalink
feat: optimize new event switch for small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
gion-andri committed Nov 9, 2023
1 parent 03c5322 commit 4ec0211
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/app/user-area/pages/events/events.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="d-flex options">
<div class="option">
<h2>Cuntinuar cun s’annunziar</h2>
<p class="mt-4 mb-5">
<p class="mt-4 mb-5 description-text">
Ti pos adina puspè actualisar/midar tia occurrenza.
</p>

Expand All @@ -12,7 +12,7 @@ <h2>Cuntinuar cun s’annunziar</h2>
</div>
<div class="option">
<h2>Cuntinuar senza s’annunziar</h2>
<p class="mt-4 mb-5">
<p class="mt-4 mb-5 description-text">
Ti na pos pli tard betg pli midar tia occurrenza.
</p>

Expand Down
38 changes: 32 additions & 6 deletions src/app/user-area/pages/events/events.component.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,48 @@
@import 'node_modules/bootstrap/scss/functions';
@import 'node_modules/bootstrap/scss/variables';
@import 'node_modules/bootstrap/scss/mixins';

.options {
padding-top: 4rem;
flex-direction: column;
padding-top: 25px;

@include media-breakpoint-up(md) {
padding-top: 4rem;
flex-direction: row;
}
}

.option {
flex-basis: 50%;
flex-grow: 1;
flex-shrink: 1;

&:nth-of-type(1) {
padding-right: 20px;
border-right: 1px solid #BBBFC2;
&:nth-of-type(2) {
border-top: 1px solid #BBBFC2;
margin-top: 25px;
padding-top: 25px;
}

&:nth-of-type(2) {
padding-left: 20px;
@include media-breakpoint-up(md) {
&:nth-of-type(1) {
padding-right: 20px;
border-right: 1px solid #BBBFC2;
}

&:nth-of-type(2) {
padding-left: 20px;
border-top: none;
margin-top: 0;
padding-top: 0;
}
}


h2 {
font-size: 1.5rem;
}

.description-text {
min-height: 50px;
}
}

0 comments on commit 4ec0211

Please sign in to comment.