-
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
23 changed files
with
491 additions
and
98 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
11 changes: 11 additions & 0 deletions
11
src/app/components/social-media-card/social-media-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,11 @@ | ||
<a [href]="input.link" target="_blank" class="container"> | ||
<div class="icon-container"> | ||
<span *ngIf="input.primeIcon" [class]="'pi icon ' + input.primeIcon"></span> | ||
<div *ngIf="input.iconRef" class="icon"> | ||
<img [src]="input.iconRef" alt="" height="32"> | ||
</div> | ||
</div> | ||
|
||
<div class="username" [innerHTML]="input.username"></div> | ||
<div class="category">{{ input.category }}</div> | ||
</a> |
39 changes: 39 additions & 0 deletions
39
src/app/components/social-media-card/social-media-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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.container { | ||
border-radius: 1.5rem; | ||
padding: 3rem; | ||
background: #262626; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: flex-start; | ||
|
||
color: white; | ||
//max-width: 20vw; | ||
} | ||
|
||
.icon-container { | ||
background: black; | ||
height: 4rem; | ||
width: 4rem; | ||
border-radius: 50%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
.icon { | ||
aspect-ratio: 1; | ||
color: white; | ||
font-size: 1.7rem; | ||
//display: flex; | ||
//align-items: center; | ||
} | ||
margin-bottom: 3rem; | ||
} | ||
|
||
.username { | ||
font-size: 1.6rem; | ||
text-align: right; | ||
} | ||
|
||
.category { | ||
margin-top: 1rem; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/app/components/social-media-card/social-media-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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import {Component, Input} from '@angular/core'; | ||
import {SocialMediaItem} from "../../data/model"; | ||
import {NgIf} from "@angular/common"; | ||
|
||
@Component({ | ||
selector: 'social-media-card', | ||
standalone: true, | ||
imports: [ | ||
NgIf | ||
], | ||
templateUrl: './social-media-card.component.html', | ||
styleUrl: './social-media-card.component.scss' | ||
}) | ||
export class SocialMediaCardComponent { | ||
|
||
@Input({required: true}) input: SocialMediaItem; | ||
|
||
} |
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
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,14 +1,21 @@ | ||
<div class="card"> | ||
<div class="card alarm-clock-animated"> | ||
<div class="card-content"> | ||
<div class="chat-rows"> | ||
<chat-row *ngFor="let message of dataService.contact">{{ message }}</chat-row> | ||
<chat-row side="right"> Das ist eine Testmessage </chat-row> | ||
<chat-row *ngFor="let message of messages; index as i; first as isFirst" [text]="message.text" [side]="message.side" | ||
[followingMessage]="!isFirst && messages[i-1].side === message.side" [sent]="message.sent"> | ||
</chat-row> | ||
</div> | ||
<form> | ||
<form (submit)="sendMessage()" (keydown.enter)="$event.preventDefault(); sendMessage()" (keydown.shift.enter)="noop.prototype(); // noop"> | ||
<div class="icon-container invisible"></div> | ||
<div class="gradient-border"> | ||
<textarea id="chat-input" pInputTextarea [autoResize]="true"></textarea> | ||
<textarea #chat_input rows="1" id="chat-input" [formControl]="text"></textarea> | ||
</div> | ||
<div class="icon-container"><i class="pi pi-send icon"></i></div> | ||
<button type="submit" class="icon-container invisible" [class.invisible]="text.hasError('required')"><i class="pi pi-send icon"></i></button> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
<div #social_media_container class="social-media-container alarm-clock-animated"> | ||
<social-media-card *ngFor="let item of dataService.socialMedia" [input]="item"></social-media-card> | ||
</div> | ||
<div #spacer></div> |
Oops, something went wrong.