diff --git a/package.json b/package.json
index 2245985..5a46bdc 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
"@angular/router": "17.1.0",
"@ngrx/component-store": "^17.0.1",
"@nx/angular": "17.2.8",
+ "ng-zorro-antd": "^17.1.0",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "0.14.2"
@@ -34,6 +35,7 @@
"@angular/compiler-cli": "17.1.0",
"@angular/language-service": "17.1.0",
"@nx/devkit": "17.2.8",
+ "@nx/eslint": "17.2.8",
"@nx/eslint-plugin": "17.2.8",
"@nx/jest": "17.2.8",
"@nx/js": "17.2.8",
@@ -56,8 +58,6 @@
"prettier": "^2.6.2",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
- "typescript": "5.2.2",
- "@nx/eslint": "17.2.8"
+ "typescript": "5.2.2"
}
}
-
diff --git a/project.json b/project.json
index 7c99217..d431d60 100644
--- a/project.json
+++ b/project.json
@@ -15,8 +15,16 @@
"main": "./src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "./tsconfig.app.json",
- "assets": ["./src/favicon.ico", "./src/assets"],
- "styles": ["./src/styles.scss"],
+ "assets": [
+ "./src/favicon.ico",
+ "./src/assets",
+ {
+ "glob": "**/*",
+ "input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
+ "output": "/assets/"
+ }
+ ],
+ "styles": ["src/theme.less", "./src/styles.scss"],
"scripts": []
},
"configurations": {
@@ -25,7 +33,7 @@
{
"type": "initial",
"maximumWarning": "500kb",
- "maximumError": "1mb"
+ "maximumError": "2mb"
},
{
"type": "anyComponentStyle",
diff --git a/src/app/app.component.html b/src/app/app.component.html
index 0680b43..8d7dca5 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1 +1,16 @@
-
+
+
+
+
+ - nav 1
+ - nav 2
+ - nav 3
+
+
+
+
+
+
+
+ Series Demo ©2024 Arcadio Quintero
+
diff --git a/src/app/app.component.scss b/src/app/app.component.scss
index e69de29..32303b5 100644
--- a/src/app/app.component.scss
+++ b/src/app/app.component.scss
@@ -0,0 +1,40 @@
+.layout {
+ min-height: 100vh;
+}
+
+.logo {
+ width: 120px;
+ height: 31px;
+ background: rgba(255, 255, 255, 0.2);
+ margin: 16px 24px 16px 0;
+ float: left;
+}
+
+nz-header {
+ position: fixed;
+ width: 100%;
+ z-index: 1;
+}
+
+[nz-menu] {
+ line-height: 64px;
+}
+
+nz-content {
+ padding: 0 50px;
+ margin-top: 64px;
+}
+
+nz-breadcrumb {
+ margin: 16px 0;
+}
+
+.inner-content {
+ background: #fff;
+ padding: 24px;
+ min-height: 380px;
+}
+
+nz-footer {
+ text-align: center;
+}
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 3d31863..a3e0274 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -1,9 +1,26 @@
import { Component } from '@angular/core';
import { RouterModule } from '@angular/router';
+import {
+ NzContentComponent,
+ NzFooterComponent,
+ NzHeaderComponent,
+ NzLayoutComponent,
+} from 'ng-zorro-antd/layout';
+import { NzBreadCrumbComponent } from 'ng-zorro-antd/breadcrumb';
+import { NzMenuDirective, NzMenuItemComponent } from 'ng-zorro-antd/menu';
@Component({
standalone: true,
- imports: [RouterModule],
+ imports: [
+ RouterModule,
+ NzContentComponent,
+ NzBreadCrumbComponent,
+ NzFooterComponent,
+ NzHeaderComponent,
+ NzLayoutComponent,
+ NzMenuDirective,
+ NzMenuItemComponent,
+ ],
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
diff --git a/src/app/app.config.ts b/src/app/app.config.ts
index 2cfae42..192b0a2 100644
--- a/src/app/app.config.ts
+++ b/src/app/app.config.ts
@@ -5,10 +5,21 @@ import {
} from '@angular/router';
import { appRoutes } from './app.routes';
import { HttpClientModule } from '@angular/common/http';
+import { en_US, provideNzI18n } from 'ng-zorro-antd/i18n';
+import { registerLocaleData } from '@angular/common';
+import en from '@angular/common/locales/en';
+import { FormsModule } from '@angular/forms';
+import { provideAnimations } from '@angular/platform-browser/animations';
+
+registerLocaleData(en);
export const appConfig: ApplicationConfig = {
providers: [
importProvidersFrom(HttpClientModule),
provideRouter(appRoutes, withEnabledBlockingInitialNavigation()),
+ provideNzI18n(en_US),
+ importProvidersFrom(FormsModule),
+ importProvidersFrom(HttpClientModule),
+ provideAnimations(),
],
};
diff --git a/src/app/series/series.component.html b/src/app/series/series.component.html
index f026e1e..a302c91 100644
--- a/src/app/series/series.component.html
+++ b/src/app/series/series.component.html
@@ -1,12 +1,28 @@
Series
-@if (vm().isLoading){
+@if (vm().isLoading) {
Loading...
-} @else{
-