diff --git a/src/app/app.component.html b/src/app/app.component.html
index df2ab12..9d5c668 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1,13 +1,4 @@
-
-
-
-
Welcome to Moments
-
-
-
-
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index c5ef02b..0ba7aff 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -1,29 +1,17 @@
import { Component, OnInit } from '@angular/core';
import { RouterModule, RouterOutlet } from '@angular/router';
import { CommonModule } from '@angular/common';
-import { FormsModule } from '@angular/forms';
-import { Router, NavigationEnd } from '@angular/router';
-import { filter } from 'rxjs/operators';
@Component({
selector: 'app-root',
standalone: true,
- imports: [RouterOutlet, CommonModule, FormsModule, RouterModule],
+ imports: [RouterOutlet, CommonModule, RouterModule],
templateUrl: './app.component.html',
styleUrl: './app.component.css',
})
export class AppComponent implements OnInit {
deferredPrompt: any;
showInstallButton = false;
- showWelcome = true;
-
- constructor(private router: Router) {
- router.events.pipe(
- filter(event => event instanceof NavigationEnd)
- ).subscribe((event: any) => {
- this.showWelcome = event.url === '/home' || event.url === '/';
- });
- }
ngOnInit() {
window.addEventListener('beforeinstallprompt', (e) => {
diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts
index 81fa911..6a53e90 100644
--- a/src/app/app.routes.ts
+++ b/src/app/app.routes.ts
@@ -1,9 +1,9 @@
import { Routes } from '@angular/router';
import { PhotoCollageComponent } from './photo-collage/photo-collage.component';
-import { AppComponent } from './app.component';
+import { HomeComponent } from './home/home.component';
export const routes: Routes = [
{ path: '', redirectTo: '/home', pathMatch: 'full' },
- { path: 'home', component: AppComponent },
+ { path: 'home', component: HomeComponent },
{ path: 'collage', component: PhotoCollageComponent }
];
diff --git a/src/app/home/home.component.css b/src/app/home/home.component.css
new file mode 100644
index 0000000..a4e42d3
--- /dev/null
+++ b/src/app/home/home.component.css
@@ -0,0 +1,70 @@
+.fullscreen-container {
+ position: relative;
+ width: 100vw;
+ height: 100vh;
+ overflow: hidden;
+ }
+
+ .fullscreen-container .logo {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+ }
+
+ .content {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ text-align: center;
+ z-index: 1;
+ }
+
+ .content h1 {
+ color: white;
+ font-size: 3rem;
+ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
+ margin-bottom: 2rem;
+ }
+
+ .start-button {
+ padding: 12px 24px;
+ background-color: #007bff;
+ color: white;
+ border: none;
+ border-radius: 24px;
+ font-size: 1.1rem;
+ cursor: pointer;
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
+ transition: transform 0.2s;
+ }
+
+ .start-button:hover {
+ transform: scale(1.05);
+ background-color: #0056b3;
+ }
+
+ .install-button {
+ position: fixed;
+ bottom: 20px;
+ right: 20px;
+ padding: 12px 24px;
+ background-color: #007bff;
+ color: white;
+ border: none;
+ border-radius: 24px;
+ font-size: 1.1rem;
+ cursor: pointer;
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
+ z-index: 1000;
+ transition: transform 0.2s;
+ }
+
+ .install-button:hover {
+ transform: scale(1.05);
+ background-color: #0056b3;
+ }
+
\ No newline at end of file
diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts
new file mode 100644
index 0000000..10e4713
--- /dev/null
+++ b/src/app/home/home.component.ts
@@ -0,0 +1,22 @@
+import { Component } from '@angular/core';
+import { RouterModule } from '@angular/router';
+import { CommonModule } from '@angular/common';
+
+@Component({
+ selector: 'app-home',
+ standalone: true,
+ imports: [CommonModule, RouterModule],
+ template: `
+
+
+
+
Welcome to Moments
+
+
+
+ `,
+ styleUrls: ['./home.component.css']
+})
+export class HomeComponent {}