+
diff --git a/src/app/components/navbar/navbar.spec.ts b/src/app/components/navbar/navbar.spec.ts
index 8893c93..ff244c0 100644
--- a/src/app/components/navbar/navbar.spec.ts
+++ b/src/app/components/navbar/navbar.spec.ts
@@ -8,9 +8,8 @@ describe('Navbar', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [Navbar]
- })
- .compileComponents();
+ imports: [Navbar],
+ }).compileComponents();
fixture = TestBed.createComponent(Navbar);
component = fixture.componentInstance;
diff --git a/src/app/components/navbar/navbar.ts b/src/app/components/navbar/navbar.ts
index 9806c24..c33a515 100644
--- a/src/app/components/navbar/navbar.ts
+++ b/src/app/components/navbar/navbar.ts
@@ -1,17 +1,11 @@
import { Component } from '@angular/core';
-import {RouterLink, RouterLinkActive} from '@angular/router';
-import {NgOptimizedImage} from '@angular/common';
+import { RouterLink, RouterLinkActive } from '@angular/router';
+import { NgOptimizedImage } from '@angular/common';
@Component({
selector: 'app-navbar',
- imports: [
- RouterLinkActive,
- RouterLink,
- NgOptimizedImage
- ],
+ imports: [RouterLinkActive, RouterLink],
templateUrl: './navbar.html',
styleUrl: './navbar.css',
})
-export class Navbar {
-
-}
+export class Navbar {}
diff --git a/src/app/sites/startpage/startpage.html b/src/app/sites/startpage/startpage.html
index 2d29bdd..dcfdd5f 100644
--- a/src/app/sites/startpage/startpage.html
+++ b/src/app/sites/startpage/startpage.html
@@ -1,7 +1,32 @@
-
-
Moin Welt
-
TailwindCSS geht
-
-
+
+
+ @for (feature of features; track $index) {
+ @if (feature.enabled) {
+
+
+
+ @for (tool of feature.tools; track $index) {
+
+ }
+
+
+ }
+ }
+
diff --git a/src/app/sites/startpage/startpage.spec.ts b/src/app/sites/startpage/startpage.spec.ts
index a18b5a6..da24679 100644
--- a/src/app/sites/startpage/startpage.spec.ts
+++ b/src/app/sites/startpage/startpage.spec.ts
@@ -8,9 +8,8 @@ describe('Startpage', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
- imports: [Startpage]
- })
- .compileComponents();
+ imports: [Startpage],
+ }).compileComponents();
fixture = TestBed.createComponent(Startpage);
component = fixture.componentInstance;
diff --git a/src/app/sites/startpage/startpage.ts b/src/app/sites/startpage/startpage.ts
index a195919..0b7244a 100644
--- a/src/app/sites/startpage/startpage.ts
+++ b/src/app/sites/startpage/startpage.ts
@@ -1,14 +1,43 @@
import { Component } from '@angular/core';
-import {NgOptimizedImage} from '@angular/common';
+import { NgOptimizedImage } from '@angular/common';
+import { CustomTitle } from '../../components/custom-title/custom-title';
+import { CustomCard } from '../../components/custom-card/custom-card';
+import {ReactiveFormsModule} from '@angular/forms';
@Component({
selector: 'app-startpage',
- imports: [
- NgOptimizedImage
- ],
templateUrl: './startpage.html',
styleUrl: './startpage.css',
+ imports: [CustomTitle, CustomCard, ReactiveFormsModule],
})
export class Startpage {
+ features = [{
+ name: 'Generators',
+ enabled: true,
+ tools: [{
+ name: 'Password Generator',
+ description: 'Create secure passwords with custom options',
+ link: '/generator/password',
+ enabled: true,
+ }, {
+ name: 'QR Code Generator',
+ description: 'Generate and download QR codes for any text or URL',
+ link: '/generator/qr',
+ enabled: true,
+ }]}, {
+ name: 'Tests',
+ enabled: true,
+ tools: [{
+ name: 'Test 1',
+ description: 'This is a just test description.',
+ link: '/test',
+ enabled: true,
+ },{
+ name: 'Test 2',
+ description: 'This is a just test description.',
+ link: '/test',
+ enabled: false,
+ }]
+ }];
}
diff --git a/src/app/sites/test-it/test-it.css b/src/app/sites/test-it/test-it.css
new file mode 100644
index 0000000..e69de29
diff --git a/src/app/sites/test-it/test-it.html b/src/app/sites/test-it/test-it.html
new file mode 100644
index 0000000..c3d7063
--- /dev/null
+++ b/src/app/sites/test-it/test-it.html
@@ -0,0 +1,9 @@
+
+
Yeah. This Site works...
+
+
+
+
diff --git a/src/app/sites/test-it/test-it.spec.ts b/src/app/sites/test-it/test-it.spec.ts
new file mode 100644
index 0000000..868a676
--- /dev/null
+++ b/src/app/sites/test-it/test-it.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { TestIt } from './test-it';
+
+describe('TestIt', () => {
+ let component: TestIt;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [TestIt]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(TestIt);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/sites/test-it/test-it.ts b/src/app/sites/test-it/test-it.ts
new file mode 100644
index 0000000..ce67f0f
--- /dev/null
+++ b/src/app/sites/test-it/test-it.ts
@@ -0,0 +1,14 @@
+import { Component } from '@angular/core';
+import {RouterLink} from '@angular/router';
+
+@Component({
+ selector: 'app-test-it',
+ imports: [
+ RouterLink
+ ],
+ templateUrl: './test-it.html',
+ styleUrl: './test-it.css',
+})
+export class TestIt {
+
+}
diff --git a/src/index.html b/src/index.html
index b29cba9..ef99c4d 100644
--- a/src/index.html
+++ b/src/index.html
@@ -1,13 +1,13 @@
-
-
- ToolsWebsite
-
-
-
-
-
-
-
+
+
+ ToolsWebsite
+
+
+
+
+
+
+
diff --git a/src/main.ts b/src/main.ts
index 5df75f9..190f341 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -2,5 +2,4 @@ import { bootstrapApplication } from '@angular/platform-browser';
import { appConfig } from './app/app.config';
import { App } from './app/app';
-bootstrapApplication(App, appConfig)
- .catch((err) => console.error(err));
+bootstrapApplication(App, appConfig).catch((err) => console.error(err));
diff --git a/src/styles.css b/src/styles.css
index 830ee6a..78bca07 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -1,8 +1,8 @@
/* You can add global styles to this file, and also import other style files */
-@import "tailwindcss";
+@import 'tailwindcss';
@theme {
- --color-blue-marian: #1E3A8A;
- --color-black-eerie: #18181B;
+ --color-blue-marian: #1e3a8a;
+ --color-black-eerie: #18181b;
--color-black-charcoal: #374151;
}
diff --git a/tsconfig.app.json b/tsconfig.app.json
index 264f459..a0dcc37 100644
--- a/tsconfig.app.json
+++ b/tsconfig.app.json
@@ -6,10 +6,6 @@
"outDir": "./out-tsc/app",
"types": []
},
- "include": [
- "src/**/*.ts"
- ],
- "exclude": [
- "src/**/*.spec.ts"
- ]
+ "include": ["src/**/*.ts"],
+ "exclude": ["src/**/*.spec.ts"]
}
diff --git a/tsconfig.spec.json b/tsconfig.spec.json
index 04df34c..e977321 100644
--- a/tsconfig.spec.json
+++ b/tsconfig.spec.json
@@ -4,11 +4,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/spec",
- "types": [
- "jasmine"
- ]
+ "types": ["jasmine"]
},
- "include": [
- "src/**/*.ts"
- ]
+ "include": ["src/**/*.ts"]
}