From d9d6a459ed8670db2d4679dd4bc911c9a84acb3c Mon Sep 17 00:00:00 2001 From: "nico.hdr8" Date: Tue, 7 Oct 2025 13:51:45 +0200 Subject: [PATCH] style(home): animate section --- src/app/pages/home/home.html | 12 +++++++++--- src/app/pages/home/home.ts | 7 ++++++- src/styles.scss | 1 + 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/app/pages/home/home.html b/src/app/pages/home/home.html index 5f337cc..8618f0d 100644 --- a/src/app/pages/home/home.html +++ b/src/app/pages/home/home.html @@ -1,10 +1,16 @@
-
+
{{ 'home.subheader' | translate }}
-
+
@@ -16,4 +22,4 @@
-
\ No newline at end of file + diff --git a/src/app/pages/home/home.ts b/src/app/pages/home/home.ts index 276e539..2bf1c29 100644 --- a/src/app/pages/home/home.ts +++ b/src/app/pages/home/home.ts @@ -3,13 +3,18 @@ import { TranslatePipe } from '@ngx-translate/core'; import { ChipModule } from 'primeng/chip'; import { FontAwesomeModule } from "@fortawesome/angular-fontawesome"; import { ButtonModule } from 'primeng/button'; +import { AnimateOnScrollModule } from 'primeng/animateonscroll'; @Component({ selector: 'app-home', - imports: [TranslatePipe, ChipModule, FontAwesomeModule, ButtonModule], + imports: [TranslatePipe, ChipModule, FontAwesomeModule, ButtonModule, AnimateOnScrollModule], templateUrl: './home.html', styleUrl: './home.scss' }) export class Home { + isMobile() { + return window.innerWidth < 1024; + } + } diff --git a/src/styles.scss b/src/styles.scss index 86512ae..65c22e9 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -1,4 +1,5 @@ @use "tailwindcss"; +@plugin "tailwindcss-primeui"; @import '@fontsource-variable/open-sans/wght.css'; @import '@fontsource-variable/jetbrains-mono/wght.css'; @import '@fortawesome/fontawesome-free/css/all.css';