Skip to content

Commit

Permalink
code clean-up for pages and using new app card cont
Browse files Browse the repository at this point in the history
  • Loading branch information
furknyavuz committed Sep 21, 2021
1 parent 6a247d9 commit bd5e07c
Show file tree
Hide file tree
Showing 92 changed files with 1,488 additions and 1,573 deletions.
24 changes: 12 additions & 12 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@ import { MyProfilePageComponent } from './page/dashboard-layout/my-profile-page/
import { PublicProfilePageComponent } from './page/dashboard-layout/public-profile-page/public-profile-page.component';
import { AboutUsPageComponent } from './page/landing-layout/about-us-page/about-us-page.component';
import { ContactUsPageComponent } from './page/landing-layout/contact-us-page/contact-us-page.component';
import { CookiePolicyPageComponent } from './page/landing-layout/cookie-policy-page/cookie-policy-page.component';
import { ForgetPasswordPageComponent } from './page/landing-layout/forget-password-page/forget-password-page.component';
import { CookiePolicyPageComponent } from './page/landing-layout/policy/cookie-policy-page/cookie-policy-page.component';
import { ForgetPasswordPageComponent } from './page/landing-layout/form/forget-password-page/forget-password-page.component';
import { HomePageComponent } from './page/landing-layout/home-page/home-page.component';
import { LandingLayoutComponent } from './page/landing-layout/landing-layout.component';
import { LoginPageComponent } from './page/landing-layout/login-page/login-page.component';
import { MaintenancePageComponent } from './page/landing-layout/maintenance-page/maintenance-page.component';
import { NotFoundPageComponent } from './page/landing-layout/not-found-page/not-found-page.component';
import { LoginPageComponent } from './page/landing-layout/form/login-page/login-page.component';
import { MaintenancePageComponent } from './page/landing-layout/raw-content/maintenance-page/maintenance-page.component';
import { NotFoundPageComponent } from './page/landing-layout/raw-content/not-found-page/not-found-page.component';
import { PricingPageComponent } from './page/landing-layout/pricing-page/pricing-page.component';
import { PrivacyPolicyPageComponent } from './page/landing-layout/privacy-policy-page/privacy-policy-page.component';
import { ProductPresentationComponent } from './page/landing-layout/product-page/product-represantation/product-presentation.component';
import { PrivacyPolicyPageComponent } from './page/landing-layout/policy/privacy-policy-page/privacy-policy-page.component';
import { ProductPresentationComponent } from './component/product-represantation/product-presentation.component';
import { ProductPageComponent } from './page/landing-layout/product-page/product-page.component';
import { ResetPasswordPageComponent } from './page/landing-layout/reset-password-page/reset-password-page.component';
import { ResetPasswordPageComponent } from './page/landing-layout/form/reset-password-page/reset-password-page.component';
import { ShowroomPageComponent } from './page/landing-layout/showroom-page/showroom-page.component';
import { SignUpSuccessPageComponent } from './page/landing-layout/sign-up-success-page/sign-up-success-page.component';
import { SignUpPageComponent } from './page/landing-layout/sign-up-page/sign-up-page.component';
import { SignUpSuccessPageComponent } from './page/landing-layout/raw-content/sign-up-success-page/sign-up-success-page.component';
import { SignUpPageComponent } from './page/landing-layout/form/sign-up-page/sign-up-page.component';
import { StatusPageComponent } from './page/landing-layout/status-page/status-page.component';
import { TermsPageComponent } from './page/landing-layout/terms-page/terms-page.component';
import { VerifyAccountPageComponent } from './page/landing-layout/verify-account-page/verify-account-page.component';
import { TermsPageComponent } from './page/landing-layout/policy/terms-page/terms-page.component';
import { VerifyAccountPageComponent } from './page/landing-layout/raw-content/verify-account-page/verify-account-page.component';
import { EditProfilePageComponent } from './page/settings-layout/edit-profile-page/edit-profile-page.component';
import { EditThemePageComponent } from './page/settings-layout/edit-theme-page/edit-theme-page.component';
import { SettingsLayoutComponent } from './page/settings-layout/settings-layout.component';
Expand Down
24 changes: 12 additions & 12 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,22 @@ import { PublicProfilePageComponent } from './page/dashboard-layout/public-profi
import { SideContentComponent } from './component/side-content/side-content.component';
import { AboutUsPageComponent } from './page/landing-layout/about-us-page/about-us-page.component';
import { ContactUsPageComponent } from './page/landing-layout/contact-us-page/contact-us-page.component';
import { CookiePolicyPageComponent } from './page/landing-layout/cookie-policy-page/cookie-policy-page.component';
import { ForgetPasswordPageComponent } from './page/landing-layout/forget-password-page/forget-password-page.component';
import { CookiePolicyPageComponent } from './page/landing-layout/policy/cookie-policy-page/cookie-policy-page.component';
import { ForgetPasswordPageComponent } from './page/landing-layout/form/forget-password-page/forget-password-page.component';
import { HomePageComponent } from './page/landing-layout/home-page/home-page.component';
import { LandingLayoutComponent } from './page/landing-layout/landing-layout.component';
import { LoginPageComponent } from './page/landing-layout/login-page/login-page.component';
import { MaintenancePageComponent } from './page/landing-layout/maintenance-page/maintenance-page.component';
import { NotFoundPageComponent } from './page/landing-layout/not-found-page/not-found-page.component';
import { LoginPageComponent } from './page/landing-layout/form/login-page/login-page.component';
import { MaintenancePageComponent } from './page/landing-layout/raw-content/maintenance-page/maintenance-page.component';
import { NotFoundPageComponent } from './page/landing-layout/raw-content/not-found-page/not-found-page.component';
import { PricingPageComponent } from './page/landing-layout/pricing-page/pricing-page.component';
import { PrivacyPolicyPageComponent } from './page/landing-layout/privacy-policy-page/privacy-policy-page.component';
import { PrivacyPolicyPageComponent } from './page/landing-layout/policy/privacy-policy-page/privacy-policy-page.component';
import { ProductPageComponent } from './page/landing-layout/product-page/product-page.component';
import { ResetPasswordPageComponent } from './page/landing-layout/reset-password-page/reset-password-page.component';
import { ResetPasswordPageComponent } from './page/landing-layout/form/reset-password-page/reset-password-page.component';
import { ShowroomPageComponent } from './page/landing-layout/showroom-page/showroom-page.component';
import { SignUpSuccessPageComponent } from './page/landing-layout/sign-up-success-page/sign-up-success-page.component';
import { SignUpPageComponent } from './page/landing-layout/sign-up-page/sign-up-page.component';
import { TermsPageComponent } from './page/landing-layout/terms-page/terms-page.component';
import { VerifyAccountPageComponent } from './page/landing-layout/verify-account-page/verify-account-page.component';
import { SignUpSuccessPageComponent } from './page/landing-layout/raw-content/sign-up-success-page/sign-up-success-page.component';
import { SignUpPageComponent } from './page/landing-layout/form/sign-up-page/sign-up-page.component';
import { TermsPageComponent } from './page/landing-layout/policy/terms-page/terms-page.component';
import { VerifyAccountPageComponent } from './page/landing-layout/raw-content/verify-account-page/verify-account-page.component';
import { EditProfilePageComponent } from './page/settings-layout/edit-profile-page/edit-profile-page.component';
import { EditThemePageComponent } from './page/settings-layout/edit-theme-page/edit-theme-page.component';
import { SettingsLayoutComponent } from './page/settings-layout/settings-layout.component';
Expand All @@ -83,7 +83,7 @@ import { ExternalRedirectPageComponent } from './page/splash-layout/external-red
import { SplashLayoutComponent } from './page/splash-layout/splash-layout.component';
import { PricePlanComponent } from './component/price-plan/price-plan.component';
import { StatusPageComponent } from './page/landing-layout/status-page/status-page.component';
import { ProductPresentationComponent } from './page/landing-layout/product-page/product-represantation/product-presentation.component';
import { ProductPresentationComponent } from './component/product-represantation/product-presentation.component';
import { CardComponent } from './component/card/card.component';
import { EmployeeCardComponent } from './component/card/employee-card/employee-card.component';
import { StatusCardComponent } from './component/card/status-card/status-card.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div *ngIf="topWrapper" [class.card1-top-wrapper-in-theme-color]="topWrapperInThemeColor"
class="card1-top-wrapper">
</div>
<div *ngIf="topLayer" class="layers top-layer">
<div *ngIf="topLayer" class="layers top-svg">
<svg [style.margin-top]="topLayerMarginTop"
[style.min-height]="topLayerMinHeight" preserveAspectRatio="xMidYMax slice" viewBox="0 0 1000 250"
xmlns="http://www.w3.org/2000/svg">
Expand Down
4 changes: 2 additions & 2 deletions src/app/component/card/deprecated/card1/card1.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
z-index: 9;
}

.card1 .top-layer {
.card1 .top-svg {
top: 0;
z-index: 1;
}
Expand Down Expand Up @@ -160,7 +160,7 @@
overflow: visible;
}

.layers.top-layer.style2 svg {
.layers.top-svg.style2 svg {
display: none;
}
}
Expand Down
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>
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;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class TestimonialCardComponent {
brandLogo: '',
};

@Input() option: Testimonial = {
@Input() testimonial: Testimonial = {
review:
'',
reviewer: {
Expand Down
Loading

0 comments on commit bd5e07c

Please sign in to comment.