From c9dd48ac467f8cd7893275c7f3af1b2cd0fb63b2 Mon Sep 17 00:00:00 2001 From: Chneemann Date: Thu, 1 Aug 2024 14:59:26 +0200 Subject: [PATCH] added home (landing page) --- frontend/src/app/app.routes.ts | 4 ++-- .../app/components/home/home.component.html | 1 + .../app/components/home/home.component.scss | 0 .../components/home/home.component.spec.ts | 23 +++++++++++++++++++ .../src/app/components/home/home.component.ts | 12 ++++++++++ 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 frontend/src/app/components/home/home.component.html create mode 100644 frontend/src/app/components/home/home.component.scss create mode 100644 frontend/src/app/components/home/home.component.spec.ts create mode 100644 frontend/src/app/components/home/home.component.ts diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts index 6df39ca..b74af87 100644 --- a/frontend/src/app/app.routes.ts +++ b/frontend/src/app/app.routes.ts @@ -1,4 +1,4 @@ import { Routes } from '@angular/router'; -import { AuthComponent } from './components/auth/auth.component'; +import { HomeComponent } from './components/home/home.component'; -export const routes: Routes = [{ path: '', component: AuthComponent }]; +export const routes: Routes = [{ path: '', component: HomeComponent }]; diff --git a/frontend/src/app/components/home/home.component.html b/frontend/src/app/components/home/home.component.html new file mode 100644 index 0000000..5f2c53f --- /dev/null +++ b/frontend/src/app/components/home/home.component.html @@ -0,0 +1 @@ +

home works!

diff --git a/frontend/src/app/components/home/home.component.scss b/frontend/src/app/components/home/home.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/app/components/home/home.component.spec.ts b/frontend/src/app/components/home/home.component.spec.ts new file mode 100644 index 0000000..60c47c4 --- /dev/null +++ b/frontend/src/app/components/home/home.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HomeComponent } from './home.component'; + +describe('HomeComponent', () => { + let component: HomeComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [HomeComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(HomeComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/frontend/src/app/components/home/home.component.ts b/frontend/src/app/components/home/home.component.ts new file mode 100644 index 0000000..deb69c4 --- /dev/null +++ b/frontend/src/app/components/home/home.component.ts @@ -0,0 +1,12 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-home', + standalone: true, + imports: [], + templateUrl: './home.component.html', + styleUrl: './home.component.scss' +}) +export class HomeComponent { + +}