-
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
15 changed files
with
236 additions
and
71 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div style="width: 100%; text-align: center"> | ||
<div class="heading-box-wrapper" [ngStyle]="{'width': width}"> | ||
<hr class="heading-box-line"> | ||
<div class="heading-box"> | ||
<p class="heading-box-text"> | ||
<ng-content></ng-content> | ||
</p> | ||
</div> | ||
<hr class="heading-box-line"> | ||
</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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
} | ||
.heading-box-wrapper { | ||
display: inline-block; | ||
transform: inherit; | ||
width: inherit; | ||
margin: 2vh 0; | ||
|
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
10 changes: 10 additions & 0 deletions
10
src/app/components/heading-section/heading-section.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,10 @@ | ||
<div class="heading-section-wrapper"> | ||
<div #heading_box> | ||
<heading-box width="{{width}}">{{ heading }}</heading-box> | ||
</div> | ||
<div style="padding-left: 1vw; padding-right: 1vw"> | ||
<div #contentWrapper> | ||
<ng-content></ng-content> | ||
</div> | ||
</div> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
src/app/components/heading-section/heading-section.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,3 @@ | ||
.heading-section-wrapper { | ||
transform: inherit; | ||
} |
38 changes: 38 additions & 0 deletions
38
src/app/components/heading-section/heading-section.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,38 @@ | ||
import { | ||
Component, | ||
ElementRef, | ||
Input, | ||
ViewChild | ||
} from '@angular/core'; | ||
import {CommonModule} from '@angular/common'; | ||
import {HeadingBoxComponent} from "../heading-box/heading-box.component"; | ||
|
||
@Component({ | ||
selector: 'heading-section', | ||
standalone: true, | ||
imports: [CommonModule, HeadingBoxComponent], | ||
templateUrl: './heading-section.component.html', | ||
styleUrl: './heading-section.component.scss' | ||
}) | ||
export class HeadingSectionComponent { | ||
|
||
@Input({required: true}) heading!: string; | ||
@Input({required: false}) width: any = "100%"; | ||
|
||
@ViewChild('heading_box') headingRef: ElementRef; | ||
@ViewChild('contentWrapper') contentWrapper: ElementRef | undefined; | ||
|
||
getParts(): HTMLElement[] { | ||
if (this.headingRef && this.contentWrapper) { | ||
const parts = [this.headingRef.nativeElement]; | ||
const children = this.contentWrapper.nativeElement.children; | ||
for (let i = 0; i < children.length; i++) { | ||
const part = children[i]; | ||
parts.push(part); | ||
} | ||
return parts; | ||
} else { | ||
return []; | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/app/components/lifeline-entry/lifeline-entry.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,14 @@ | ||
<div style="margin-bottom: 4vh;"> | ||
<h3 class="lifeline-entry-title text-color-grey-dark-1">{{ title }}</h3> | ||
<h4 class="lifeline-entry-subtitle text-color-grey-dark-1"> | ||
<span style="text-align: left">{{ subTitle }}</span> | ||
<span style="text-align: right">{{ date }}</span> | ||
</h4> | ||
|
||
<p class="text"> | ||
<ng-content></ng-content> | ||
</p> | ||
<ul class="text"><!-- TODO als badge stylen --> | ||
<li *ngFor="let bulletPoint of bulletPoints">{{ bulletPoint }}</li> | ||
</ul> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
src/app/components/lifeline-entry/lifeline-entry.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,9 @@ | ||
.lifeline-entry-title { | ||
letter-spacing: 2px; | ||
} | ||
|
||
.lifeline-entry-subtitle { | ||
display: flex; | ||
justify-content: space-between; | ||
font-style: italic; | ||
} |
18 changes: 18 additions & 0 deletions
18
src/app/components/lifeline-entry/lifeline-entry.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 { CommonModule } from '@angular/common'; | ||
|
||
@Component({ | ||
selector: 'lifeline-entry', | ||
standalone: true, | ||
imports: [CommonModule], | ||
templateUrl: './lifeline-entry.component.html', | ||
styleUrl: './lifeline-entry.component.scss' | ||
}) | ||
export class LifelineEntryComponent { | ||
|
||
@Input({required: true}) title!: string; | ||
@Input({required: true}) subTitle!: string; | ||
@Input({required: true}) date!: string; | ||
@Input({required: true}) bulletPoints!: string[]; | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.