This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
1,259 additions
and
781 deletions.
There are no files selected for viewing
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,7 @@ | ||
<main [@routeAnimations]="prepareRoute(outlet)"> | ||
<router-outlet #outlet="outlet"></router-outlet> | ||
</main > | ||
</main> | ||
|
||
<app-footer *ngIf="hasFooter()"></app-footer> | ||
<!--TODO: set visible for the laoding progress--> | ||
<app-loader *ngIf="isLoading" ></app-loader> | ||
<app-loader *ngIf="isLoading"></app-loader> | ||
<app-toast></app-toast> |
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
113 changes: 61 additions & 52 deletions
113
frontend/src/app/components/atoms/friend-card/friend-card.component.scss
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,58 +1,67 @@ | ||
.main-container | ||
{ | ||
display: flex; | ||
flex-direction: row; | ||
background-color: inherit; | ||
align-items: center; | ||
width: 91vw; | ||
border-top: 0.1px solid rgb(85, 85, 85); | ||
padding: 5px; | ||
|
||
|
||
img | ||
{ | ||
width: 50px; | ||
border-radius: 50%; | ||
height: 50px; | ||
margin-left: 1rem; | ||
padding: 0; | ||
background-color: var(--white); | ||
margin-top: 3px; | ||
|
||
} | ||
/** | ||
* Styles for the FriendCardComponent. | ||
*/ | ||
.main-container { | ||
display: flex; | ||
flex-direction: row; | ||
background-color: inherit; | ||
align-items: center; | ||
width: 91vw; | ||
border-top: 0.1px solid rgb(85, 85, 85); | ||
padding: 5px; | ||
|
||
h3 | ||
{ | ||
font-size: 1rem; | ||
margin-left: 1rem; | ||
color: var(--white); | ||
margin-top: 0; | ||
} | ||
/** | ||
* Styles for the image element inside the FriendCardComponent. | ||
*/ | ||
img { | ||
width: 50px; | ||
border-radius: 50%; | ||
height: 50px; | ||
margin-left: 1rem; | ||
padding: 0; | ||
background-color: var(--white); | ||
margin-top: 3px; | ||
} | ||
|
||
.remove-button { | ||
background-color: var(--green); | ||
border: none; | ||
cursor: pointer; | ||
border-radius: 5px; | ||
height: 25px; | ||
font-weight: bold; | ||
align-items: end; | ||
margin-right: 20px; | ||
transition: background-color 0.1s ease; /* Übergangseigenschaft für die Hintergrundfarbe */ | ||
} | ||
/** | ||
* Styles for the heading element inside the FriendCardComponent. | ||
*/ | ||
h3 { | ||
font-size: 1rem; | ||
margin-left: 1rem; | ||
color: var(--white); | ||
margin-top: 0; | ||
} | ||
|
||
/** | ||
* Styles for the remove button inside the FriendCardComponent. | ||
*/ | ||
.remove-button { | ||
background-color: var(--green); | ||
border: none; | ||
cursor: pointer; | ||
border-radius: 5px; | ||
height: 25px; | ||
font-weight: bold; | ||
align-items: end; | ||
margin-right: 20px; | ||
transition: background-color 0.1s ease; | ||
} | ||
|
||
.remove-button:active { | ||
background-color: lighten(#00ff7f, 30%); /* Die Hintergrundfarbe wird beim Klicken um 20% aufgehellt */ | ||
} | ||
/** | ||
* Styles for the remove button when it is active. | ||
*/ | ||
.remove-button:active { | ||
background-color: lighten(#00ff7f, 30%); | ||
} | ||
|
||
|
||
|
||
.inner-container | ||
{ | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
width: 100%; | ||
} | ||
/** | ||
* Styles for the inner container inside the FriendCardComponent. | ||
*/ | ||
.inner-container { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
width: 100%; | ||
} | ||
} |
21 changes: 10 additions & 11 deletions
21
frontend/src/app/components/atoms/friend-card/friend-card.component.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 |
---|---|---|
@@ -1,20 +1,19 @@ | ||
|
||
import { Component, Input } from '@angular/core'; | ||
|
||
|
||
@Component({ | ||
selector: 'app-friend-card', | ||
templateUrl: './friend-card.component.html', | ||
styleUrl: './friend-card.component.scss' | ||
styleUrl: './friend-card.component.scss', | ||
}) | ||
export class FriendCardComponent{ | ||
@Input() name: string = ""; | ||
@Input() picture: string = "../../../../assets/icons/001-sportler.png"; | ||
export class FriendCardComponent { | ||
@Input() name: string = ''; | ||
@Input() picture: string = '../../../../assets/icons/001-sportler.png'; | ||
removeIsPressed: boolean = false; | ||
|
||
toggleRemove() | ||
{ | ||
this.removeIsPressed = !this.removeIsPressed; | ||
|
||
} | ||
/** | ||
* Toggles the state of the `removeIsPressed` property. | ||
*/ | ||
toggleRemove() { | ||
this.removeIsPressed = !this.removeIsPressed; | ||
} | ||
} |
52 changes: 29 additions & 23 deletions
52
frontend/src/app/components/atoms/header/header.component.scss
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,26 +1,32 @@ | ||
/** | ||
* Styles for the header component. | ||
*/ | ||
.header { | ||
width: 100vw; | ||
height: 30px; | ||
background: rgb(0, 0, 0); | ||
background: linear-gradient( | ||
90deg, | ||
rgba(0, 0, 0, 1) 14%, | ||
rgba(0, 75, 17, 1) 82%, | ||
rgba(0, 75, 17, 1) 100% | ||
); | ||
margin: 0; | ||
padding-top: 8px; | ||
padding-bottom: 5px; | ||
display: flex; | ||
justify-content: start; | ||
align-items: center; | ||
|
||
.header | ||
{ | ||
width: 100vw; | ||
height: 30px; | ||
background: rgb(0,0,0); | ||
background: linear-gradient(90deg, rgba(0,0,0,1) 14%, rgba(0,75,17,1) 82%, rgba(0,75,17,1) 100%); | ||
/** | ||
* Styles for the heading element within the header component. | ||
*/ | ||
h3 { | ||
color: var(--white-1); | ||
font-size: 2rem; | ||
margin: 0; | ||
padding-top: 8px; | ||
padding-bottom: 5px; | ||
display: flex; | ||
justify-content: start; | ||
align-items: center; | ||
|
||
|
||
|
||
h3 | ||
{ | ||
color: var(--white-1); | ||
font-size: 2rem; | ||
margin: 0; | ||
text-align: start; | ||
align-horizontally: center; | ||
margin-left: 1rem; | ||
} | ||
text-align: start; | ||
align-horizontally: center; | ||
margin-left: 1rem; | ||
} | ||
} |
Oops, something went wrong.