-
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
12 changed files
with
134 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
<p-card [styleClass]="cardStyleClass"> | ||
<ng-template pTemplate="content"> | ||
<h1 style="margin: 0">{{ heading }}</h1> | ||
</ng-template> | ||
</p-card> | ||
<div [class]="cardStyleClass"> | ||
<h1 style="margin: 0">{{ heading }}</h1> | ||
</div> |
50 changes: 27 additions & 23 deletions
50
src/app/components/heading-card/heading-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,28 +1,32 @@ | ||
:host ::ng-deep { | ||
.p-card-content { | ||
padding: 0; | ||
} | ||
:host { | ||
width: 80%; | ||
margin-bottom: 5vh; | ||
display: block; | ||
} | ||
|
||
.heading-card { | ||
width: 80%; | ||
display: inline-block; | ||
margin-bottom: 5vh; | ||
} | ||
.card { | ||
border-radius: 20px; | ||
width: 100%; | ||
padding: 1.25rem; | ||
display: inline-block; | ||
text-align: center; | ||
} | ||
|
||
.heading-card-light { | ||
@extend .heading-card; | ||
} | ||
.heading-card-light { | ||
@extend .card; | ||
background: white; | ||
color: #4b5563; | ||
} | ||
|
||
.heading-card-dark { | ||
@extend .heading-card; | ||
background: rgb(75,75,75); | ||
color: white; | ||
} | ||
.heading-card-dark { | ||
@extend .card; | ||
background: rgb(75,75,75); | ||
color: white; | ||
} | ||
|
||
.heading-card-3 { | ||
@extend .heading-card; | ||
background: #262626; | ||
color: wheat; | ||
border-radius: 20px; | ||
} | ||
.heading-card-3 { | ||
@extend .card; | ||
background: #262626; | ||
color: white; | ||
border-radius: 20px; | ||
} |
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,11 +1,19 @@ | ||
<div class="container"> | ||
<div class="animation-container" (click)="rotated = !rotated" [class.card-rotated]="rotated"> | ||
<div class="container" (click)="rotated = !rotated" [class.card-rotated]="rotated"> | ||
<div class="card-content front"> | ||
<circle-progress [value]="rating" max="100" text-format="percent"></circle-progress> | ||
<div class="skill-title">{{ name }}</div> | ||
</div> | ||
<div class="card-content back" style="transform: rotateY(-180deg);"> | ||
<div class="card-content back"> | ||
<span [innerHTML]="description"></span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- TODO Add gradient to circle: https://github.com/tigrr/circle-progress/issues/8 --> | ||
|
||
<!-- <svg>--> | ||
<!-- <!– Gradient (just need to insert in the <svg> tag. The ID must be unique) –>--> | ||
<!-- <linearGradient id="linear-gradient">--> | ||
<!-- <stop offset="0%" stop-color="gold"/>--> | ||
<!-- <stop offset="100%" stop-color="teal"/>--> | ||
<!-- </linearGradient>--> | ||
<!-- </svg>--> |
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: 6 additions & 5 deletions
11
src/app/components/timeline-card/timeline-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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<p-card [header]="heading" [subheader]="subheading" | ||
[styleClass]="cardStyleClass"> | ||
<div [innerHTML]="content" style="margin-top: 1rem"></div> | ||
<div *ngIf="bulletPoints" style="margin-top: 1rem"> | ||
<div [class]="cardStyleClass"> | ||
<h3 class="heading" [innerHTML]="heading"></h3> | ||
<h4 class="subheading" [innerHTML]="subheading"></h4> | ||
<div class="content" [innerHTML]="content"></div> | ||
<div class="bullet-point-container" *ngIf="bulletPoints"> | ||
<p-badge *ngFor="let bulletPoint of bulletPoints" [value]="bulletPoint" | ||
[style]="{'margin': '0 0.3vh', 'background': 'rgba(75,85,93,0.7)'}"></p-badge> | ||
</div> | ||
</p-card> | ||
</div> |
56 changes: 34 additions & 22 deletions
56
src/app/components/timeline-card/timeline-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,30 +1,42 @@ | ||
:host ::ng-deep { | ||
.p-card-content { | ||
padding: 0; | ||
} | ||
.card { | ||
margin-bottom: 3vh; | ||
border-radius: 20px; | ||
padding: 1.25rem; | ||
} | ||
|
||
.timeline-card { | ||
margin-bottom: 3vh; | ||
.timeline-card-light { | ||
@extend .card; | ||
background: white; | ||
color: #4b5563; | ||
.subheading { | ||
color: #6b7280; | ||
} | ||
} | ||
|
||
.timeline-card-light { | ||
@extend .timeline-card; | ||
border: var(--border-dark); | ||
background: var(--background-light); | ||
.timeline-card-dark { | ||
@extend .card; | ||
background: rgb(75,75,75); | ||
color: #dcdcdc; | ||
.subheading { | ||
color: #dedede; | ||
} | ||
} | ||
|
||
.timeline-card-dark { | ||
@extend .timeline-card; | ||
border: var(--border-light); | ||
background: var(--background-dark); | ||
color: #dcdcdc; | ||
.heading { | ||
margin: 0 0 .5rem; | ||
font-size: 1.5rem; | ||
font-weight: 700; | ||
} | ||
|
||
& > div.p-card-body > div.p-card-title { | ||
color: white; | ||
} | ||
.subheading { | ||
font-weight: 400; | ||
margin: 0 0 .5rem; | ||
} | ||
|
||
& > div.p-card-body > div.p-card-subtitle { | ||
color: #ffffff; | ||
} | ||
} | ||
.content { | ||
margin-top: 1rem; | ||
} | ||
|
||
.bullet-point-container { | ||
margin-top: 1rem; | ||
} |
This file was deleted.
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