Skip to content

Commit 0fadd44

Browse files
committed
fix(main page): fix mobile layout
1 parent 06e5017 commit 0fadd44

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

libs/route-pages/home-page/src/main-page.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<section [class.h-screen-40]="checkFirstSectionHeight()" [class.md:h-screen-70]="checkFirstSectionHeight()"
2-
class="landing-section flex flex-col items-center pt-12 first-section pb-0">
1+
<section class="landing-section flex flex-col items-center pt-12 first-section pb-0">
32
<div class="container md:flex flex-column space-between">
43
<div class="lg:flex flex-col items-start self-center">
54
<img src="assets/img/bg-img/main_page/main_page_mobile_bg.png" alt="Dmitriy Shekhovtsov photo"

libs/route-pages/home-page/src/main-page.component.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -403,15 +403,6 @@ export class MainPageComponent implements OnDestroy {
403403
index++;
404404
return !!(index && !(index % 4));
405405
}
406-
407-
checkFirstSectionHeight(): boolean {
408-
if (window.innerWidth < 768) {
409-
return true;
410-
}
411-
412-
return window.innerHeight > 800 && window.devicePixelRatio * 100 === 100;
413-
}
414-
415406

416407
addScriptsToHead() {
417408
this.removeOldMicroDAta();

0 commit comments

Comments
 (0)