Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const routes: Routes = [
{
path: 'privacy-policy',
component: PrivacyPolicy,
title: 'Privacy Policy Kamycoding',
title: 'Privacy Policy | KamyCoding',
},
{
path: 'projects/:slug',
Expand Down
23 changes: 16 additions & 7 deletions src/app/layout/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}

.site-footer__brand a,
.site-footer__legal {
.site-footer__legal-link {
border-radius: 2px;
}

Expand All @@ -58,15 +58,21 @@
text-decoration: none;
}

.site-footer__legal {
.site-footer__legal-links {
display: flex;
align-items: center;
justify-self: end;
gap: 16px;
}

.site-footer__legal-link {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
justify-self: end;
}

.site-footer__legal span {
.site-footer__legal-link span {
position: relative;
z-index: 1;
}
Expand Down Expand Up @@ -124,7 +130,7 @@
}

@media (hover: hover) and (pointer: fine) {
.site-footer__legal:hover .site-footer__legal-decoration {
.site-footer__legal-link:hover .site-footer__legal-decoration {
opacity: 1;
}

Expand All @@ -139,7 +145,7 @@
}
}

.site-footer__legal:focus-visible .site-footer__legal-decoration {
.site-footer__legal-link:focus-visible .site-footer__legal-decoration {
opacity: 1;
}

Expand Down Expand Up @@ -184,11 +190,14 @@
font-size: 18px;
}

.site-footer__legal {
.site-footer__legal-links {
grid-column: 1;
grid-row: 2;
align-self: end;
flex-direction: column;
align-items: flex-start;
justify-self: start;
gap: 8px;
}

.site-footer__socials {
Expand Down
33 changes: 23 additions & 10 deletions src/app/layout/footer/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,29 @@
<p>© Kamyar Zamanfar {{ currentYear }}</p>
</div>

<a class="site-footer__legal" routerLink="/legal-notice">
<span>Legal Notice</span>
<img
class="site-footer__legal-decoration"
src="/assets/decorations/navigation/nav-hover-contact.svg"
alt=""
aria-hidden="true"
draggable="false"
/>
</a>
<nav class="site-footer__legal-links" aria-label="Legal pages">
<a class="site-footer__legal-link" routerLink="/legal-notice">
<span>Legal Notice</span>
<img
class="site-footer__legal-decoration"
src="/assets/decorations/navigation/nav-hover-contact.svg"
alt=""
aria-hidden="true"
draggable="false"
/>
</a>

<a class="site-footer__legal-link" routerLink="/privacy-policy">
<span>Privacy Policy</span>
<img
class="site-footer__legal-decoration"
src="/assets/decorations/navigation/nav-hover-contact.svg"
alt=""
aria-hidden="true"
draggable="false"
/>
</a>
</nav>

<nav class="site-footer__socials" aria-label="Footer links">
@for (item of socialLinks; track item.id) {
Expand Down
149 changes: 149 additions & 0 deletions src/app/pages/privacy-policy/privacy-policy.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
:host {
display: block;
}

.privacy-policy {
min-height: 100svh;
background-color: var(--color-foreground);
color: var(--color-canvas);
}

.privacy-policy__hero {
height: 271px;
background-color: var(--color-foreground);
background-image: url('/assets/legal-notice/legal-notice-header-bg.png');
background-repeat: no-repeat;
background-position: center bottom;
background-size: 100% 100%;
color: var(--color-foreground);
}

.privacy-policy__hero-inner {
display: flex;
width: min(1440px, 100%);
height: 100%;
margin-inline: auto;
padding: 0 20px 95px;
align-items: flex-end;
}

.privacy-policy h1,
.privacy-policy h2,
.privacy-policy p,
.privacy-policy ul {
margin: 0;
}

.privacy-policy h1 {
font-size: clamp(40px, 12.8vw, 48px);
font-weight: 700;
line-height: 1.2;
}

.privacy-policy__page {
width: min(1440px, 100%);
margin-inline: auto;
}

.privacy-policy__back {
display: inline-flex;
margin: 16px 20px 0;
align-items: center;
gap: 8px;
color: var(--color-canvas);
font-size: 18px;
font-weight: 700;
line-height: 1.2;
text-decoration: none;
}

.privacy-policy__back img {
width: 24px;
height: 24px;
}

.privacy-policy__back:is(:hover, :focus-visible, :active) {
color: var(--color-tertiary);
}

.privacy-policy__back:focus-visible,
.privacy-policy__content a:focus-visible {
border-radius: 2px;
outline: 2px solid var(--color-primary);
outline-offset: 4px;
}

.privacy-policy__content {
display: flex;
width: min(1200px, calc(100% - 40px));
margin: 20px auto 0;
flex-direction: column;
gap: 32px;
font-size: 16px;
line-height: 1.5;
}

.privacy-policy__content section {
display: flex;
flex-direction: column;
gap: 16px;
}

.privacy-policy__content h2 {
color: var(--color-primary);
font-size: 23px;
font-weight: 700;
line-height: 1.2;
}

.privacy-policy__content address {
font-style: normal;
}

.privacy-policy__content ul {
padding-inline-start: 24px;
}

.privacy-policy__content a {
color: var(--color-primary);
overflow-wrap: anywhere;
text-underline-offset: 3px;
}

.privacy-policy app-footer {
display: block;
margin-top: 64px;
}

@media (min-width: 64rem) {
.privacy-policy__hero {
height: 439px;
}

.privacy-policy__hero-inner {
padding: 0 clamp(32px, 8.333vw, 120px) 176px;
}

.privacy-policy h1 {
font-size: 64px;
line-height: 1;
}

.privacy-policy__back {
display: none;
}

.privacy-policy__content {
width: min(1200px, calc(100% - 64px));
margin-top: 80px;
gap: 40px;
}

.privacy-policy__content h2 {
font-size: 24px;
}

.privacy-policy app-footer {
margin-top: 80px;
}
}
Loading