added home (landing page)
This commit is contained in:
parent
3ba66f282a
commit
c9dd48ac46
5 changed files with 38 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import { Routes } from '@angular/router';
|
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 }];
|
||||||
|
|
|
||||||
1
frontend/src/app/components/home/home.component.html
Normal file
1
frontend/src/app/components/home/home.component.html
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<p>home works!</p>
|
||||||
0
frontend/src/app/components/home/home.component.scss
Normal file
0
frontend/src/app/components/home/home.component.scss
Normal file
23
frontend/src/app/components/home/home.component.spec.ts
Normal file
23
frontend/src/app/components/home/home.component.spec.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { HomeComponent } from './home.component';
|
||||||
|
|
||||||
|
describe('HomeComponent', () => {
|
||||||
|
let component: HomeComponent;
|
||||||
|
let fixture: ComponentFixture<HomeComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [HomeComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(HomeComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
12
frontend/src/app/components/home/home.component.ts
Normal file
12
frontend/src/app/components/home/home.component.ts
Normal file
|
|
@ -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 {
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue