Merge pull request #70 from HideyoshiNakazone/prettier-home-page

Prettier home page
This commit is contained in:
2023-12-30 05:50:18 -03:00
committed by GitHub
2 changed files with 18 additions and 5 deletions

View File

@@ -1,11 +1,12 @@
.me-section { .me-section {
background: rgb(46,46,46); background: rgb(46,46,46);
background: linear-gradient(180deg, rgba(46,46,46,1) 35%, rgba(51,51,51,1) 100%); background: linear-gradient(180deg, rgba(46,46,46,1) 35%, rgba(51,51,51,1) 100%);
height: 90vh; height: 90dvh;
} }
.intro { .intro {
height: 60%; height: 60%;
width: 90% !important;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
@@ -97,10 +98,11 @@
.stack-section { .stack-section {
background: rgb(241,241,241); background: rgb(241,241,241);
/*background: linear-gradient(0deg, rgba(241,241,241,1) 80%, rgba(51,51,51,1) 100%);*/ /*background: linear-gradient(0deg, rgba(241,241,241,1) 80%, rgba(51,51,51,1) 100%);*/
height: 80vh; height: 80dvh;
} }
.stack { .stack {
height: 35%; height: 35%;
width: 90% !important;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
@@ -120,6 +122,7 @@
.stack-slider { .stack-slider {
height: 65%; height: 65%;
min-height: 425px;
} }
@@ -130,11 +133,21 @@
} }
.stack-section { .stack-section {
height: 90vh; height: 90dvh;
} }
.stack { .stack {
padding-top: 60px; padding-top: 60px;
width: 80%;
height: 30%; height: 30%;
} }
} }
@media only screen and (max-height: 750px) {
.stack-section {
height: fit-content;
}
.stack-slider {
height: fit-content;
/*min-height: 425px;*/
}
}

View File

@@ -94,7 +94,7 @@ export class StackSliderComponent implements AfterViewInit {
this.ngxGlide.showBullets = false; this.ngxGlide.showBullets = false;
this.ngxGlide.type = 'carousel'; this.ngxGlide.type = 'carousel';
this.ngxGlide.focusAt = 'center'; this.ngxGlide.focusAt = 'center';
this.ngxGlide.gap = 10; this.ngxGlide.gap = numberOfCards === 1 ? 0 : 10;
this.ngxGlide.autoplay = 3000; this.ngxGlide.autoplay = 3000;
this.ngxGlide.recreate(); this.ngxGlide.recreate();