- Service X
-
+
+
{{service.name}}
+
{{service.lang}}
+
{{service.focus}}
+
diff --git a/src/app/components/service-card/service-card.component.ts b/src/app/components/service-card/service-card.component.ts
index fe9dfaa..2d0f298 100644
--- a/src/app/components/service-card/service-card.component.ts
+++ b/src/app/components/service-card/service-card.component.ts
@@ -1,12 +1,16 @@
-import { Component } from '@angular/core';
+import { Component, Input } from '@angular/core';
+import { Service } from '../project-card/project-card.component';
+import { NgFor } from '@angular/common';
@Component({
selector: 'app-service-card',
standalone: true,
- imports: [],
+ imports: [NgFor],
templateUrl: './service-card.component.html',
styleUrl: './service-card.component.scss'
})
export class ServiceCardComponent {
+ constructor() {}
+ @Input() services: Service[] = []
}
diff --git a/src/app/main-portal/main-portal.component.html b/src/app/main-portal/main-portal.component.html
index ab890f3..b2db581 100644
--- a/src/app/main-portal/main-portal.component.html
+++ b/src/app/main-portal/main-portal.component.html
@@ -9,8 +9,7 @@
diff --git a/src/app/shared/config.service.ts b/src/app/shared/config.service.ts
index 0d25567..cf38a85 100644
--- a/src/app/shared/config.service.ts
+++ b/src/app/shared/config.service.ts
@@ -11,6 +11,7 @@ export class ConfigService {
private cookieService: CookieService,
private storageService: LocalStorageService) {
}
+
// TODO: Please dont save Account in localStorage AND Cookies, wat de hell
login(username: string, password: string){
const userData : Profile = {
diff --git a/src/assets/projects.json b/src/assets/projects.json
new file mode 100644
index 0000000..d4cd6c0
--- /dev/null
+++ b/src/assets/projects.json
@@ -0,0 +1,39 @@
+{
+ "_comment": "This json file should do it at first, file will be deleted after api with database is done ;0",
+ "projects": [
+ {
+ "project_id": 1,
+ "name": "LucasWebServer",
+ "description": "The LucasWebServer is the first Project to manage my Projects (including this one) for gaining Experince on Frontend, Backend and deployment on Webserver all on my own",
+ "logo": "null"
+ },
+ {
+ "project_id": 2,
+ "name": "DiscordBot",
+ "description": "The Discordbot is construkted for simple tasks eg. messaging a friend, send gifs or set Alerts for important Events"
+ }
+ ],
+ "service":[
+ {
+ "service_id": 1,
+ "name": "LucasWebApi",
+ "lang": "Golang",
+ "focus": "Backend, Database, Postgres",
+ "project": 1
+ },
+ {
+ "service_id": 2,
+ "name": "LucasWeb",
+ "lang": "HTML, SCSS, Typescript",
+ "focus": "Frontend, Angular",
+ "project": 1
+ },
+ {
+ "service_id": 3,
+ "name": "Snowflake",
+ "lang": "Python",
+ "focus": "DiscordAPI, Management",
+ "project": 2
+ }
+ ]
+}