From ac3671fb3af197bf045ef66e343a8f3cf8599d90 Mon Sep 17 00:00:00 2001 From: Xander Vertegaal Date: Thu, 23 Nov 2023 12:31:40 +0100 Subject: [PATCH] Simplify frontend --- frontend/src/app/home/home.component.html | 7 +++---- frontend/src/app/home/home.component.ts | 17 ++--------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/frontend/src/app/home/home.component.html b/frontend/src/app/home/home.component.html index d747aced..682b873c 100644 --- a/frontend/src/app/home/home.component.html +++ b/frontend/src/app/home/home.component.html @@ -1,5 +1,4 @@

Home

-

NOICE! It works!

-
- Although? If you are seeing this (and not a happy GIF), something is wrong... :( -
+

Welcome to the Merovingian Lettercraft project!

+

This website is still under construction. Please check back again in the future.

+ diff --git a/frontend/src/app/home/home.component.ts b/frontend/src/app/home/home.component.ts index 0cfff2e1..126131a4 100644 --- a/frontend/src/app/home/home.component.ts +++ b/frontend/src/app/home/home.component.ts @@ -1,23 +1,10 @@ -import { Component, OnInit } from '@angular/core'; -import { BackendService } from './../services/backend.service'; +import { Component } from '@angular/core'; @Component({ selector: 'lc-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss'] }) -export class HomeComponent implements OnInit { - hooray?: string; - - constructor(private backend: BackendService) { } - - ngOnInit(): void { - // This is just an example call to /api/example/ - this.backend.get('example').then(hoorays => { - if (hoorays.length) { - this.hooray = hoorays[0].message; - } - }); - } +export class HomeComponent { }