mirror of
https://github.com/simon987/dsynth.net.git
synced 2025-04-10 14:06:44 +00:00
wip
This commit is contained in:
parent
9bc41d7dc0
commit
65087e70a7
0
dsynth/src/app/about/about.component.css
Normal file
0
dsynth/src/app/about/about.component.css
Normal file
17
dsynth/src/app/about/about.component.html
Normal file
17
dsynth/src/app/about/about.component.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<mat-card style="width: 400px">
|
||||||
|
<mat-card-title>{{ "nav.test" | translate }}</mat-card-title>
|
||||||
|
<mat-card-subtitle>Dog Breed</mat-card-subtitle>
|
||||||
|
|
||||||
|
<!-- <img mat-card-image src="https://material.angular.io/assets/img/examples/shiba2.jpg" alt="Photo of a Shiba Inu">-->
|
||||||
|
<mat-card-content>
|
||||||
|
<p>
|
||||||
|
The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan.
|
||||||
|
A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally
|
||||||
|
bred for hunting.
|
||||||
|
</p>
|
||||||
|
</mat-card-content>
|
||||||
|
<mat-card-actions>
|
||||||
|
<button mat-button>LIKE</button>
|
||||||
|
<button mat-button>SHARE</button>
|
||||||
|
</mat-card-actions>
|
||||||
|
</mat-card>
|
15
dsynth/src/app/about/about.component.ts
Normal file
15
dsynth/src/app/about/about.component.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-about',
|
||||||
|
templateUrl: './about.component.html',
|
||||||
|
styleUrls: ['./about.component.css']
|
||||||
|
})
|
||||||
|
export class AboutComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,10 +1,11 @@
|
|||||||
import {NgModule} from "@angular/core";
|
import {NgModule} from "@angular/core";
|
||||||
import {RouterModule, Routes} from "@angular/router";
|
import {RouterModule, Routes} from "@angular/router";
|
||||||
import {ContactComponent} from "./contact/contact.component";
|
import {ContactComponent} from "./contact/contact.component";
|
||||||
|
import {AboutComponent} from "./about/about.component";
|
||||||
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{path: "", component: ContactComponent},
|
{path: "", component: AboutComponent},
|
||||||
{path: "contact", component: ContactComponent},
|
{path: "contact", component: ContactComponent},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ import {TranslateLoader, TranslateModule} from "@ngx-translate/core";
|
|||||||
import {HttpClient, HttpClientModule} from "@angular/common/http";
|
import {HttpClient, HttpClientModule} from "@angular/common/http";
|
||||||
import { ContactComponent } from './contact/contact.component';
|
import { ContactComponent } from './contact/contact.component';
|
||||||
import {MatCardModule} from "@angular/material/card";
|
import {MatCardModule} from "@angular/material/card";
|
||||||
|
import { AboutComponent } from './about/about.component';
|
||||||
|
|
||||||
export function createTranslateLoader(http: HttpClient) {
|
export function createTranslateLoader(http: HttpClient) {
|
||||||
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
||||||
@ -21,7 +22,8 @@ export function createTranslateLoader(http: HttpClient) {
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
ContactComponent
|
ContactComponent,
|
||||||
|
AboutComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 948 B After Width: | Height: | Size: 1.7 KiB |
Loading…
x
Reference in New Issue
Block a user