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
14 changes: 14 additions & 0 deletions src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@ export const routes: Routes = [
(mod) => mod.SupportComponent,
),
},
{
path: 'terms-of-use',
loadComponent: () =>
import('./features/terms-of-use/terms-of-use.component').then(
(mod) => mod.TermsOfUseComponent,
),
},
{
path: 'privacy-policy',
loadComponent: () =>
import('./features/privacy-policy/privacy-policy.component').then(
(mod) => mod.PrivacyPolicyComponent,
),
},
],
},
];
4 changes: 2 additions & 2 deletions src/app/core/components/footer/footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

<div class="footer-secondary-nav">
<div class="footer-links">
<a href="#">Terms of Use</a>
<a routerLink="/terms-of-use">Terms of Use</a>
<span class="separator">|</span>
<a href="#">Privacy Policy</a>
<a routerLink="/privacy-policy">Privacy Policy</a>
<span class="separator">|</span>
<a href="#">Status</a>
<span class="separator">|</span>
Expand Down
8 changes: 0 additions & 8 deletions src/app/core/components/footer/footer.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@
.separator {
margin: 0 0.5rem;
}

a {
text-decoration: none;

&:hover {
text-decoration: underline;
}
}
}

.footer-nav {
Expand Down
3 changes: 2 additions & 1 deletion src/app/core/components/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { NgOptimizedImage } from '@angular/common';
import { SocialIcon } from '@osf/shared/entities/social-icon.interface';
import { RouterLink } from '@angular/router';

@Component({
standalone: true,
selector: 'osf-footer',
imports: [NgOptimizedImage],
imports: [NgOptimizedImage, RouterLink],
templateUrl: './footer.component.html',
styleUrl: './footer.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/components/sidenav/sidenav.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
width: 100%;
height: 3.4rem;
gap: 0.5rem;
color: var.$white;
text-decoration: none;
}

.active {
Expand Down
4 changes: 3 additions & 1 deletion src/app/core/components/topnav/topnav.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@use "assets/styles/variables" as var;

:host {
background: #24384a;
background: var.$dark-blue-1;
height: 96px;
color: white;
}
930 changes: 930 additions & 0 deletions src/app/features/privacy-policy/privacy-policy.component.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions src/app/features/privacy-policy/privacy-policy.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@use "assets/styles/variables" as var;

.container {
padding: 1.7rem;
color: var.$dark-blue-1;

h1 {
margin-bottom: 3.4rem;
}

h2 {
margin-bottom: 0.9rem;
}

h4 {
font-size: 1rem;
font-weight: 400;
}

ul,
p {
margin-bottom: 1.7rem;
}

li {
margin-left: 1.7rem;
list-style: initial;
}
}
22 changes: 22 additions & 0 deletions src/app/features/privacy-policy/privacy-policy.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { PrivacyPolicyComponent } from './privacy-policy.component';

describe('PrivacyPolicyComponent', () => {
let component: PrivacyPolicyComponent;
let fixture: ComponentFixture<PrivacyPolicyComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [PrivacyPolicyComponent],
}).compileComponents();

fixture = TestBed.createComponent(PrivacyPolicyComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
10 changes: 10 additions & 0 deletions src/app/features/privacy-policy/privacy-policy.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';

@Component({
selector: 'osf-privacy-policy',
imports: [],
templateUrl: './privacy-policy.component.html',
styleUrl: './privacy-policy.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PrivacyPolicyComponent {}
Loading