Skip to content

Commit

Permalink
Simplify frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderVertegaal committed Nov 23, 2023
1 parent 1d0d866 commit ac3671f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
7 changes: 3 additions & 4 deletions frontend/src/app/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<h1 class="title" i18n>Home</h1>
<p>NOICE! It works!</p>
<figure class="image" style="width: 480px;height: 401px;">
<img src="{{hooray}}" alt="Although? If you are seeing this (and not a happy GIF), something is wrong... :("/>
</figure>
<h3>Welcome to the Merovingian Lettercraft project!</h3>
<p>This website is still under construction. Please check back again in the future.</p>

17 changes: 2 additions & 15 deletions frontend/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -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 {

}

0 comments on commit ac3671f

Please sign in to comment.