diff --git a/dsynth/src/app/app-routing.module.ts b/dsynth/src/app/app-routing.module.ts
index 302b4ce..157a14e 100644
--- a/dsynth/src/app/app-routing.module.ts
+++ b/dsynth/src/app/app-routing.module.ts
@@ -1,8 +1,12 @@
-import {NgModule} from '@angular/core';
-import {RouterModule, Routes} from '@angular/router';
+import {NgModule} from "@angular/core";
+import {RouterModule, Routes} from "@angular/router";
+import {ContactComponent} from "./contact/contact.component";
-const routes: Routes = [];
+const routes: Routes = [
+ {path: "", component: ContactComponent},
+ {path: "contact", component: ContactComponent},
+];
@NgModule({
imports: [RouterModule.forRoot(routes)],
diff --git a/dsynth/src/app/app.component.css b/dsynth/src/app/app.component.css
new file mode 100644
index 0000000..53e5a34
--- /dev/null
+++ b/dsynth/src/app/app.component.css
@@ -0,0 +1,13 @@
+.large-nav {
+ display: none;
+}
+
+@media (min-width: 768px) {
+ .large-nav {
+ display: initial;
+ }
+
+ .small-nav {
+ display: none;
+ }
+}
diff --git a/dsynth/src/app/app.component.html b/dsynth/src/app/app.component.html
index 4afcada..f8bfcd8 100644
--- a/dsynth/src/app/app.component.html
+++ b/dsynth/src/app/app.component.html
@@ -1,5 +1,22 @@
+
+ {{"nav.title" | translate}}
+
+
+
+ more_vert
+
+
+ {{"nav.title" | translate}}
+
+
+
+
+
+
{{"nav.lang_select" | translate}}
arrow_drop_down
@@ -11,6 +28,6 @@
-
{{ "nav.test" | translate }}
-
-
+
+
+
diff --git a/dsynth/src/app/app.component.ts b/dsynth/src/app/app.component.ts
index c813720..99356c5 100644
--- a/dsynth/src/app/app.component.ts
+++ b/dsynth/src/app/app.component.ts
@@ -1,14 +1,15 @@
-import {Component} from '@angular/core';
+import {Component} from "@angular/core";
import {TranslateService} from "@ngx-translate/core";
+import {Router} from "@angular/router";
@Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: []
+ selector: "app-root",
+ templateUrl: "./app.component.html",
+ styleUrls: ["./app.component.css"]
})
export class AppComponent {
- constructor(private translate: TranslateService) {
+ constructor(private translate: TranslateService, public router: Router) {
translate.addLangs([
'en',
@@ -20,8 +21,8 @@ export class AppComponent {
}
langList: any[] = [
- {lang: 'fr', display: 'Français'},
{lang: 'en', display: 'English'},
+ {lang: 'fr', display: 'Français'},
{lang: 'ru', display: 'Русский'},
];
diff --git a/dsynth/src/app/app.module.ts b/dsynth/src/app/app.module.ts
index 71f760c..0de4372 100644
--- a/dsynth/src/app/app.module.ts
+++ b/dsynth/src/app/app.module.ts
@@ -11,6 +11,8 @@ import {TranslateHttpLoader} from '@ngx-translate/http-loader';
import {MatButtonModule} from "@angular/material/button";
import {TranslateLoader, TranslateModule} from "@ngx-translate/core";
import {HttpClient, HttpClientModule} from "@angular/common/http";
+import { ContactComponent } from './contact/contact.component';
+import {MatCardModule} from "@angular/material/card";
export function createTranslateLoader(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
@@ -18,7 +20,8 @@ export function createTranslateLoader(http: HttpClient) {
@NgModule({
declarations: [
- AppComponent
+ AppComponent,
+ ContactComponent
],
imports: [
BrowserModule,
@@ -37,6 +40,7 @@ export function createTranslateLoader(http: HttpClient) {
}
}
),
+ MatCardModule,
],
providers: [],
bootstrap: [AppComponent]
diff --git a/dsynth/src/app/contact/contact.component.css b/dsynth/src/app/contact/contact.component.css
new file mode 100644
index 0000000..65fa43b
--- /dev/null
+++ b/dsynth/src/app/contact/contact.component.css
@@ -0,0 +1,8 @@
+.example-card {
+ max-width: 400px;
+}
+
+.example-header-image {
+ background-image: url('https://material.angular.io/assets/img/examples/shiba1.jpg');
+ background-size: cover;
+}
diff --git a/dsynth/src/app/contact/contact.component.html b/dsynth/src/app/contact/contact.component.html
new file mode 100644
index 0000000..3c959e3
--- /dev/null
+++ b/dsynth/src/app/contact/contact.component.html
@@ -0,0 +1,21 @@
+
+
+
+ {{ "nav.test" | translate }}
+ Dog Breed
+
+
+
+
+ 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.
+
+
+
+ LIKE
+ SHARE
+
+
+
+
diff --git a/dsynth/src/app/contact/contact.component.ts b/dsynth/src/app/contact/contact.component.ts
new file mode 100644
index 0000000..5985c9b
--- /dev/null
+++ b/dsynth/src/app/contact/contact.component.ts
@@ -0,0 +1,16 @@
+import {Component, OnInit} from '@angular/core';
+
+@Component({
+ selector: "app-contact",
+ templateUrl: "./contact.component.html",
+ styleUrls: ["./contact.component.css"]
+})
+export class ContactComponent implements OnInit {
+
+ constructor() {
+ }
+
+ ngOnInit(): void {
+ }
+
+}
diff --git a/dsynth/src/assets/i18n/en.json b/dsynth/src/assets/i18n/en.json
index 5b6b7cc..cf8bc55 100644
--- a/dsynth/src/assets/i18n/en.json
+++ b/dsynth/src/assets/i18n/en.json
@@ -1,5 +1,7 @@
{
"nav": {
+ "title": "dsynth.net",
+ "lang_select": "Language",
"test": "Hello"
}
}
diff --git a/dsynth/src/styles.css b/dsynth/src/styles.css
index f0e372c..b221685 100644
--- a/dsynth/src/styles.css
+++ b/dsynth/src/styles.css
@@ -1,10 +1,55 @@
-/* You can add global styles to this file, and also import other style files */
-
-html, body {
- height: 100%;
-}
-
body {
margin: 0;
font-family: Roboto, "Helvetica Neue", sans-serif;
+ background: #303030;
}
+
+.container {
+ width: 100%;
+ padding-right: 15px;
+ padding-left: 15px;
+ margin-right: auto;
+ margin-left: auto;
+ margin-top: 25px;
+}
+
+@media (min-width: 576px) {
+ .container {
+ max-width: 540px;
+ }
+}
+
+@media (min-width: 768px) {
+ .container {
+ max-width: 720px;
+ }
+}
+
+@media (min-width: 992px) {
+ .container {
+ max-width: 960px;
+ }
+}
+
+@media (min-width: 1200px) {
+ .container {
+ max-width: 1140px;
+ }
+}
+
+@media (min-width: 1600px) {
+ .container {
+ max-width: 1440px;
+ }
+}
+
+@media (min-width: 2200px) {
+ .container {
+ max-width: 2000px;
+ }
+}
+
+.spacer {
+ flex: 1 1 auto;
+}
+