From 69d6686995e510ff6db2a37c8ad5ace73b738a39 Mon Sep 17 00:00:00 2001 From: "leon.hoppe" Date: Thu, 16 Feb 2023 21:57:02 +0100 Subject: [PATCH] Started landing page --- src/app/app-routing.module.ts | 2 +- src/app/app.module.ts | 8 +- .../navigation/navigation.component.html | 6 +- .../navigation/navigation.component.scss | 2 +- .../navigation/navigation.component.ts | 14 ++ src/app/home/home.component.html | 1 - src/app/home/home.component.scss | 0 src/app/home/home.component.ts | 10 - src/app/models/project.ts | 7 + src/app/pipes/featured-projects.pipe.ts | 18 ++ src/app/sites/home/home.component.html | 31 +++ src/app/sites/home/home.component.scss | 233 ++++++++++++++++++ src/app/sites/home/home.component.ts | 53 ++++ src/styles.scss | 36 +++ src/theme.scss | 25 ++ 15 files changed, 427 insertions(+), 19 deletions(-) rename src/app/{ => components}/navigation/navigation.component.html (75%) rename src/app/{ => components}/navigation/navigation.component.scss (98%) rename src/app/{ => components}/navigation/navigation.component.ts (80%) delete mode 100644 src/app/home/home.component.html delete mode 100644 src/app/home/home.component.scss delete mode 100644 src/app/home/home.component.ts create mode 100644 src/app/models/project.ts create mode 100644 src/app/pipes/featured-projects.pipe.ts create mode 100644 src/app/sites/home/home.component.html create mode 100644 src/app/sites/home/home.component.scss create mode 100644 src/app/sites/home/home.component.ts diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index b6f31db..f5671db 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,6 +1,6 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import {HomeComponent} from "./home/home.component"; +import {HomeComponent} from "./sites/home/home.component"; const routes: Routes = [ {path: "", component: HomeComponent}, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 8af1849..6a0720a 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -4,17 +4,19 @@ import { BrowserModule } from '@angular/platform-browser'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; -import { NavigationComponent } from './navigation/navigation.component'; +import { NavigationComponent } from './components/navigation/navigation.component'; import {MatSidenavModule} from "@angular/material/sidenav"; import {MatIconModule} from "@angular/material/icon"; import {MatButtonModule} from "@angular/material/button"; -import { HomeComponent } from './home/home.component'; +import { HomeComponent } from './sites/home/home.component'; +import { FeaturedProjectsPipe } from './pipes/featured-projects.pipe'; @NgModule({ declarations: [ AppComponent, NavigationComponent, - HomeComponent + HomeComponent, + FeaturedProjectsPipe ], imports: [ BrowserModule.withServerTransition({appId: 'serverApp'}), diff --git a/src/app/navigation/navigation.component.html b/src/app/components/navigation/navigation.component.html similarity index 75% rename from src/app/navigation/navigation.component.html rename to src/app/components/navigation/navigation.component.html index 40cb12c..757f8b8 100644 --- a/src/app/navigation/navigation.component.html +++ b/src/app/components/navigation/navigation.component.html @@ -1,9 +1,9 @@