-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from flockean/develop
feat: project management, new style
- Loading branch information
Showing
28 changed files
with
1,537 additions
and
210 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
<div ></div> | ||
<h1 class="container center"> | ||
This is my wonderful ugly website, ITS IN DEVELOPMENT ;0 | ||
</h1> | ||
<div class="p-4 m-4 bg-sky-500 rounded-md"> | ||
<div class="flex items-center justify-center font-bold text-lg"> {{title}} </div> | ||
</div> | ||
|
||
<router-outlet/> | ||
<nav id="navbar"> | ||
<div id="navbar-items"> | ||
<button *ngIf="configService.isLoggedIn()" type="button" routerLink="MainPortal">CheeseburgerPortal</button> | ||
<button class="button" routerLink="LogIn">Login</button> | ||
<button *ngIf="configService.isLoggedIn()" class="button" (click)="configService.logout()">LogOut</button> | ||
</div> | ||
</nav> | ||
|
||
|
||
<div class="flex items-center justify-center p-16 m-16"> | ||
<nav class="navbar w-5/6 rounded-xl flex p-4 m-6 bg-sky-500 box-border"> | ||
<div id="navbar-items"> | ||
<button *ngIf="configService.isLoggedIn()" class="button" routerLink="MainPortal">Portfolio</button> | ||
<button class="button" routerLink="Cookies">Cookies</button> | ||
<button class="button" routerLink="LogIn">Login</button> | ||
<button *ngIf="configService.isLoggedIn()" class="button" (click)="configService.logout()">LogOut</button> | ||
</div> | ||
</nav> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/app/components/project-card/project-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="grid border-2 border-black rounded-lg w-2/5 bg-sky-100 p-2 m-1"> | ||
<div class="flex"> | ||
<div> | ||
First Projects XYZ | ||
<div> | ||
<div> | ||
Projects Description | ||
</div> | ||
<div class="flex gap-2"> | ||
<app-service-card/> | ||
</div> | ||
</div> | ||
</div> |
Empty file.
23 changes: 23 additions & 0 deletions
23
src/app/components/project-card/project-card.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ProjectCardComponent } from './project-card.component'; | ||
|
||
describe('ProjectCardComponent', () => { | ||
let component: ProjectCardComponent; | ||
let fixture: ComponentFixture<ProjectCardComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ProjectCardComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ProjectCardComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Component } from '@angular/core'; | ||
import { ServiceCardComponent } from '../service-card/service-card.component'; | ||
|
||
@Component({ | ||
selector: 'app-project-card', | ||
standalone: true, | ||
imports: [ ServiceCardComponent], | ||
templateUrl: './project-card.component.html', | ||
styleUrl: './project-card.component.scss' | ||
}) | ||
export class ProjectCardComponent { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="grid border-2 border-black rounded-s p-2 m-2"> | ||
Service X | ||
<div> |
Empty file.
23 changes: 23 additions & 0 deletions
23
src/app/components/service-card/service-card.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ServiceCardComponent } from './service-card.component'; | ||
|
||
describe('ServiceCardComponent', () => { | ||
let component: ServiceCardComponent; | ||
let fixture: ComponentFixture<ServiceCardComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ServiceCardComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ServiceCardComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-service-card', | ||
standalone: true, | ||
imports: [], | ||
templateUrl: './service-card.component.html', | ||
styleUrl: './service-card.component.scss' | ||
}) | ||
export class ServiceCardComponent { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="basebob"> | ||
<div class="flex place-items-center justify-center"> | ||
Here are listed all Cookies that been stored on this side | ||
</div> | ||
<div> | ||
Here are your Cookies: | ||
<div class="border-2 border-black my-2 p-2 rounded-full bg-sky-300" *ngFor="let key of Object.keys(this.cookieService.getAll())"> | ||
<span> {{key}}: {{this.cookieService.get(key)}}</span> | ||
</div> | ||
<button class="button" (click)="this.cookieService.deleteAll()">ClearAllCookies</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { CookieComponent } from './cookie.component'; | ||
|
||
describe('CookieComponent', () => { | ||
let component: CookieComponent; | ||
let fixture: ComponentFixture<CookieComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [CookieComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(CookieComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {Component} from '@angular/core'; | ||
import {CookieService} from "ngx-cookie-service"; | ||
import {CommonModule, KeyValuePipe, NgForOf} from "@angular/common"; | ||
|
||
@Component({ | ||
selector: 'app-cookie', | ||
standalone: true, | ||
imports: [ | ||
NgForOf, | ||
KeyValuePipe, | ||
CommonModule | ||
], | ||
templateUrl: './cookie.component.html', | ||
styleUrl: './cookie.component.scss' | ||
}) | ||
export class CookieComponent { | ||
protected readonly Object = Object; | ||
|
||
// TODO: Do I need a Dependency for CookieService? Uhhhh | ||
constructor(protected cookieService: CookieService) { | ||
this.cookieService.set('MainCookie', 'This is your MainCookie, so you can see the List works (cannot be deleted)') | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
<div class="grid"> | ||
<div *ngIf="!configService.isLoggedIn()" class="card"> | ||
<div class="basebob"> | ||
<div *ngIf="!configService.isLoggedIn()" class="grid place-items-center m-2 p-2"> | ||
|
||
This Login is unsecure, so you can login with anything you want or just press login. | ||
<div> DO NOT INSERT PERSONAL DATA </div> | ||
<div class="m-8"> | ||
<form> | ||
Bitte einmal einloggen! | ||
<div [formGroup]="userForm" class="input-wrapper"> | ||
<div [formGroup]="userForm" class="grid gap-4"> | ||
<input type="text" placeholder="Username" formControlName="username"/> | ||
<input type="password" placeholder="Password" formControlName="password"/> | ||
<button (click)="onSubmit()" > LogIn </button> | ||
<button class="button" (click)="onSubmit()" > LogIn </button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<!-- TODO: Hmmm yes, Security on Point--> | ||
<div *ngIf="configService.isLoggedIn()" class="card"> | ||
<div *ngIf="configService.isLoggedIn()" class="grid place-items-center m-2 p-2"> | ||
You are already Logged In as: | ||
<h4 class="text-wrapper">{{configService.getStoredUserData().username}}</h4> | ||
<div class="font-bold">{{configService.getStoredUserData().username}} </div> | ||
and your Password is: | ||
<h4 class="text-wrapper"> {{configService.getStoredUserData().password}}</h4> | ||
<div class="font-bold"> {{configService.getStoredUserData().password}} </div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +0,0 @@ | ||
.grid{ | ||
display: grid; | ||
} | ||
|
||
.card{ | ||
display: grid; | ||
place-items: center; | ||
border-radius: 10px; | ||
background-color: var(--secondary-100); | ||
padding: 50px; | ||
margin: 50px; | ||
} | ||
|
||
.input-wrapper{ | ||
display: grid; | ||
gap: 20px; | ||
padding: 30px; | ||
margin: 20px; | ||
} | ||
|
||
.text-wrapper{ | ||
font-family: Bahnschrift, sans-serif; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
<!--TODO: Ideas for MainPortal--> | ||
<div class="container"> | ||
<div class="basebob"> | ||
<!-- TODO: Use .ico instead of emoji? --> | ||
<h2 class="center"> I am a Developer 💻 </h2> | ||
<h2 class="grid text-center"> I am a Developer 💻 </h2> | ||
<div class="py-4"> | ||
Hello, I am a Junior Software Engineer | ||
</div> | ||
<div> | ||
Hello, I am a Junior Developer which testing UI-Design and Frontend Logic. This will be the First Page you see, once you Logged in. | ||
This is my Website for managing my Projects and get finally on track with my Brain and achievements that I want to do the next few years. | ||
So here is the List of my running Projects and Learnings: | ||
</div> | ||
<div class="block"> | ||
<app-project-card/> | ||
<app-project-card/> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.