Links und Css auf der Hauptseite bearbeitet.

This commit is contained in:
Developer 02
2024-06-14 10:20:58 +02:00
parent 5f161d81f2
commit 30ee71eaf5
7 changed files with 30 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
<app-navbar class=""></app-navbar>
<app-navbar></app-navbar>
<main class="main">
<div class="content">
<div class="left-side">
@@ -8,8 +8,8 @@
<div class="right-side">
<div class="pill-group">
@for (item of [
{ title: 'Explore signFlow', link: '/' },
{ title: 'Learn with Tutorials', link: '/' },
{ title: 'Explore Digital Data', link: 'https://digitaldata.works/' },
{ title: 'Learn signFlow', link: '/' },
{ title: 'API Docs', link: '/' },
]; track item.title) {
<a

View File

@@ -49,7 +49,7 @@
main {
width: 100%;
min-height: 100%;
min-height: calc(100% - 4rem);
display: flex;
justify-content: center;
align-items: center;

View File

@@ -1,3 +1,17 @@
import { Routes } from '@angular/router';
// src/app/app-routing.module.ts
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './login/login.component';
import { FooComponent } from './foo/foo.component';
import { authGuard } from './guards/auth.guard';
export const routes: Routes = [];
export const routes: Routes = [
{ path: 'login', component: LoginComponent },
{ path: 'foo', component: FooComponent }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {}

View File

@@ -2,5 +2,5 @@
<button mat-icon-button>
<mat-icon>menu</mat-icon>
</button>
<span>SignFlow</span>
<span>signFlow</span>
</mat-toolbar>

View File

@@ -1,4 +1,4 @@
import { Injectable, Inject } from '@angular/core';
import { Injectable, Inject, inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';
import { APP_BASE_HREF } from '@angular/common';
@@ -9,7 +9,8 @@ import { APP_BASE_HREF } from '@angular/common';
export class AuthService {
private baseUrl: string;
constructor(private http: HttpClient, @Inject(APP_BASE_HREF) baseHref: string) {
constructor(private http: HttpClient) {
const baseHref = inject(APP_BASE_HREF);
this.baseUrl = `${baseHref}api/auth`;
}

View File

@@ -27,6 +27,7 @@
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
"strictInputAccessModifiers": true,
"strictTemplates": true
"strictTemplates": true,
"js/ts.implicitProjectConfig.experimentalDecorators": true
}
}
}