generated from open-template-hub/web-ui-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code clean-up for pages and using new app card cont
- Loading branch information
1 parent
6a247d9
commit bd5e07c
Showing
92 changed files
with
1,488 additions
and
1,573 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
83 changes: 42 additions & 41 deletions
83
src/app/component/card/testimonial-card/testimonial-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,51 +1,52 @@ | ||
<div> | ||
<app-card1 | ||
[bottomLayerBackgroundColor]="option.style.themeColor" | ||
[bottomLayer]="true" | ||
[enableHeaderFullImg]="false" | ||
[enableHeader]="false" | ||
[height]="'485px'" | ||
[paddingContent]="false" | ||
[testimonialSizeActive]="true" | ||
[width]="'320px'" | ||
> | ||
<div body class="content-wrapper"> | ||
<div class="icon-wrapper"> | ||
<i | ||
[style.color]="option.style.themeColor" | ||
aria-hidden="true" | ||
class="fas fa-quote-left fa-lg fa-fw" | ||
></i> | ||
<app-card [header]="header" [body]="body" *ngIf="testimonial.reviewer.name" class="testimonial-card"> | ||
<!-- Header --> | ||
<ng-template #header> | ||
<div class="header"> | ||
<i [style.color]="testimonial.style.themeColor" aria-hidden="true" class="fas fa-quote-left fa-lg fa-fw"></i> | ||
</div> | ||
</ng-template> | ||
|
||
<!-- Body --> | ||
<ng-template #body> | ||
<div class="body"> | ||
<div class="review"> | ||
<p> | ||
{{ testimonial.review }} | ||
</p> | ||
</div> | ||
<p class="review-area">{{ option.review }}</p> | ||
<div> | ||
<img | ||
[src]="option.reviewer.photoUri" | ||
[style.border-color]="option.style.themeColor" | ||
alt="logo" | ||
class="profile-image" | ||
/> | ||
<div class="footer-social"> | ||
<app-ext-link [href]="option.reviewer.social.twitter"> | ||
<div class="reviewer"> | ||
<svg xmlns="http://www.w3.org/2000/svg" style="min-height: 210px;"> | ||
<path | ||
d="M28.9,-40.6C39.8,-43.8,52.4,-40.7,53.9,-32.9C55.4,-25,45.8,-12.5,45.4,-0.2C44.9,12,53.7,24,49.3,26.9C45,29.8,27.5,23.6,17.1,32.7C6.7,41.9,3.4,66.3,-3.1,71.6C-9.5,76.9,-18.9,63.1,-26.9,52.5C-34.8,42,-41.2,34.7,-48.2,26.5C-55.3,18.3,-63,9.2,-64.9,-1.1C-66.9,-11.4,-63.1,-22.8,-59.3,-36.6C-55.4,-50.4,-51.6,-66.6,-41.7,-63.9C-31.9,-61.2,-15.9,-39.7,-3.4,-33.8C9,-27.8,18.1,-37.4,28.9,-40.6Z" | ||
fill-opacity="0.4" stroke="null" transform="translate(100 100)" | ||
[style]="'fill: ' + testimonial.style.themeColor"></path> | ||
</svg> | ||
<img [src]="testimonial.reviewer.photoUri" | ||
[style.border-color]="testimonial.style.themeColor" | ||
alt="logo" class="profile-image"/> | ||
<div class="social"> | ||
<app-ext-link [href]="testimonial.reviewer.social.twitter"> | ||
<i [class]="'fab fa-' + environmentCommon.website.twitter.cssClass + ' fa-2x fa-fw'" | ||
[style.color]="option.style.themeColor" | ||
aria-hidden="true" | ||
body> | ||
[style.color]="testimonial.style.themeColor" | ||
aria-hidden="true" body> | ||
</i> | ||
</app-ext-link> | ||
<app-ext-link [href]="option.reviewer.social.linkedIn"> | ||
<app-ext-link [href]="testimonial.reviewer.social.linkedIn"> | ||
<i [class]="'fab fa-' + environmentCommon.website.linkedin.cssClass + ' fa-2x fa-fw'" | ||
[style.color]="option.style.themeColor" | ||
aria-hidden="true" | ||
body> | ||
[style.color]="testimonial.style.themeColor" | ||
aria-hidden="true" body> | ||
</i> | ||
</app-ext-link> | ||
</div> | ||
<div class="reviewer"> | ||
<p class="reviewer-name">{{option.reviewer.name}}</p> | ||
<p [style.color]="option.style.themeColor" class="reviewer-title">{{option.reviewer.title}}</p> | ||
</div> | ||
</div> | ||
<div class="reviewer-info"> | ||
<small class="name"> | ||
{{testimonial.reviewer.name}} | ||
</small> | ||
<small [style.color]="testimonial.style.themeColor" class="title"> | ||
{{testimonial.reviewer.title}} | ||
</small> | ||
</div> | ||
</div> | ||
</app-card1> | ||
</div> | ||
</ng-template> | ||
</app-card> |
165 changes: 89 additions & 76 deletions
165
src/app/component/card/testimonial-card/testimonial-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,95 +1,108 @@ | ||
.content-wrapper { | ||
text-align: center; | ||
font-size: 0.5em; | ||
} | ||
@use '../../../../styles/util/util'; | ||
@use '../../card/card.component'; | ||
|
||
.review-area { | ||
color: var(--lighter-contrast); | ||
padding: 25px; | ||
max-height: 7em; | ||
} | ||
.testimonial-card { | ||
|
||
.icon-wrapper { | ||
text-align: left; | ||
padding: 1em 1em 0.1em; | ||
} | ||
& .header { | ||
text-align: left; | ||
padding: 1em 1em 0.1em; | ||
|
||
.icon-wrapper i { | ||
color: var(--theme-color); | ||
} | ||
& i { | ||
color: var(--theme-color); | ||
} | ||
} | ||
|
||
.footer-social { | ||
display: flex; | ||
justify-content: center; | ||
font-size: 0.5em; | ||
margin-top: 1em; | ||
margin-right: 14em; | ||
} | ||
& .body { | ||
@include card.default-body; | ||
|
||
.footer-social a { | ||
padding-left: 0.5em; | ||
padding-right: 0.5em; | ||
} | ||
align-items: flex-end; | ||
justify-content: flex-start; | ||
|
||
.footer-social i { | ||
color: var(--theme-color); | ||
} | ||
// Design | ||
min-height: 250px; | ||
padding: 25px; | ||
text-align: center; | ||
|
||
.reviewer { | ||
bottom: 2em; | ||
right: 0.1em; | ||
position: absolute; | ||
} | ||
& .review { | ||
@include util.flex-layout-column; | ||
|
||
.reviewer-name { | ||
font-weight: 700; | ||
margin-top: 2em; | ||
font-size: 15px; | ||
max-width: 12em; | ||
text-align: left; | ||
} | ||
justify-content: flex-start; | ||
|
||
.reviewer-title { | ||
font-weight: 500; | ||
margin-top: 0.2em; | ||
font-size: 13px; | ||
max-width: 12em; | ||
text-align: left; | ||
} | ||
& p { | ||
color: var(--lighter-contrast); | ||
} | ||
} | ||
|
||
.profile-image { | ||
height: 4em; | ||
width: 4em; | ||
margin-top: 4em; | ||
margin-right: 5em; | ||
border-bottom: 0.1em solid; | ||
border-radius: 12em; | ||
} | ||
& .reviewer { | ||
@include util.flex-layout-column; | ||
|
||
.profile-image img { | ||
width: 40px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
border-radius: 50%; | ||
padding: 5px; | ||
border: 2px solid var(--color); | ||
} | ||
position: relative; | ||
|
||
align-items: flex-start; | ||
|
||
width: 100%; | ||
|
||
z-index: 1; | ||
|
||
.profile-image span { | ||
margin-top: 1.5em; | ||
& > * { | ||
margin-left: 20%; | ||
} | ||
|
||
& svg { | ||
position: absolute; | ||
top: 50px; | ||
left: -60px; | ||
z-index: 1; | ||
} | ||
|
||
& img { | ||
@include util.circle; | ||
|
||
height: 100px; | ||
margin-top: 50px; | ||
border-bottom: 0.1em solid; | ||
z-index: 2; | ||
} | ||
|
||
& .social { | ||
@include util.flex-layout-row; | ||
@include util.flex-center-center; | ||
|
||
font-size: 0.7rem; | ||
margin-top: 7px; | ||
z-index: 2; | ||
} | ||
} | ||
|
||
& .reviewer-info { | ||
@include util.flex-layout-column; | ||
@include util.flex-center-center; | ||
|
||
align-items: flex-start; | ||
|
||
z-index: 2; | ||
|
||
padding-top: 50px; | ||
|
||
max-width: 70%; | ||
|
||
text-align: left; | ||
|
||
& > * { | ||
color: var(--lighter); | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 999px) { | ||
.content-wrapper { | ||
font-size: 0.6em; | ||
} | ||
} | ||
|
||
.profile-image { | ||
margin-top: 1em; | ||
margin-right: 7em; | ||
} | ||
@media only screen and (min-width: 1000px) { | ||
.testimonial-card { | ||
|
||
.review-area { | ||
max-height: 3em; | ||
& .body { | ||
width: 260px; | ||
} | ||
} | ||
} |
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.