forked from zolcsi/map-of-pi
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from swoocn/additions-revisions-1
Self approved.
- Loading branch information
Showing
21 changed files
with
327 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,17 @@ <h1>Map of Pi</h1> | |
<h3>{{ version }}</h3> | ||
</div> | ||
<div class="update-notes"> | ||
<h3>Latest Updates</h3> | ||
<h3>{{ 'INFORMATION_DIALOG.LATEST_UPDATES' | translate }}</h3> | ||
<div class="items"> | ||
<h4>{{ date }}</h4> | ||
<ul> | ||
<li *ngFor="let item of updateItems">{{ item }}</li> | ||
</ul> | ||
<div *ngFor="let item of updateItems"> | ||
<div class="update-item"> | ||
<h4>{{ item.date }}</h4> | ||
<ul> | ||
<li *ngFor="let update of item.updates">{{ update }}</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="defects-contact"><span>Please report defects to <a href="mailto:[email protected]" target="_blank">{{ email }}</a></span></div> | ||
</div> | ||
<div class="defects-contact"><span>{{ 'INFORMATION_DIALOG.REPORTING_MESSAGE' | translate }} <a href="mailto:[email protected]" target="_blank">{{ email }}</a></span></div> | ||
</div> |
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,11 @@ | ||
import { Component } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { RouterLink } from '@angular/router'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
|
||
@Component({ | ||
selector: 'app-information', | ||
standalone: true, | ||
imports: [CommonModule, RouterLink], | ||
imports: [CommonModule, TranslateModule], | ||
templateUrl: './information.component.html', | ||
styleUrl: './information.component.scss' | ||
}) | ||
|
@@ -16,10 +16,27 @@ export class InformationComponent { | |
version: string = 'Alpha V1.0'; | ||
logo: string = "../../assets/images/logo.svg"; | ||
|
||
date: string = '3/8/2024'; | ||
updateItems: string[] = [ | ||
'Added footer.', | ||
'Added information popup for latest updates.', | ||
updateItems: { date: string, updates: string[] }[] = [ | ||
{ | ||
date: '3/10/2024', | ||
updates: [ | ||
'Added Terms of Service section.' | ||
] | ||
}, | ||
{ | ||
date: '3/9/2024', | ||
updates: [ | ||
'Added GPS navigation feature.', | ||
'Added Privacy Policy section.' | ||
] | ||
}, | ||
{ | ||
date: '3/8/2024', | ||
updates: [ | ||
'Added Footer.', | ||
'Added Information Popup to share latest updates.' | ||
] | ||
} | ||
]; | ||
email: string = '[email protected]'; | ||
|
||
|
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,10 +1,10 @@ | ||
.action-row-container { | ||
position: fixed; | ||
bottom: 15%; /* Adjust this value as needed */ | ||
width: 100%; | ||
min-width: 80px; | ||
margin-bottom: 2px; | ||
display: flex; | ||
justify-content: center; | ||
z-index: 5; | ||
position: absolute; | ||
bottom: 15%; /* Adjust this value as needed */ | ||
width: 100%; | ||
min-width: 80px; | ||
margin-bottom: 2px; | ||
display: flex; | ||
justify-content: center; | ||
z-index: 5; | ||
} |
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
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 |
---|---|---|
|
@@ -74,7 +74,7 @@ <h2>7. {{ 'PRIVACY_POLICY.SECTIONS.HEADER_7' | translate }}</h2> | |
|
||
<h2>8. {{ 'PRIVACY_POLICY.SECTIONS.HEADER_8' | translate }}</h2> | ||
<ul> | ||
<li>{{ 'PRIVACY_POLICY.SECTIONS.CONTENT_8_1' | translate }} @ <strong><a href="mailto:[email protected]">Map of | ||
<li>{{ 'PRIVACY_POLICY.SECTIONS.CONTENT_8_1' | translate }} @ <strong><a href="mailto:{{ emailAddress }}">Map of | ||
Pi.</a></strong>.</li> | ||
</ul> | ||
</div> |
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
41 changes: 41 additions & 0 deletions
41
frontend/src/app/shared/terms-of-service/terms-of-service.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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<div class="terms-of-service-content"> | ||
<h2><strong>Map of Pi {{ 'TERMS_OF_SERVICE.TITLE' | translate }}</strong></h2> | ||
<h4>{{ 'TERMS_OF_SERVICE.LAST_UPDATED' | translate }}: {{ lastUpdated }}</h4> | ||
<h4>{{ 'TERMS_OF_SERVICE.EMAIL_ADDRESS' | translate }}: {{ emailAddress }}</h4> | ||
<br /> | ||
<h2>1. {{ 'TERMS_OF_SERVICE.SECTIONS.HEADER_1' | translate }}</h2> | ||
<ul> | ||
<li>{{ 'TERMS_OF_SERVICE.SECTIONS.CONTENT_1_1' | translate }}</li> | ||
</ul> | ||
|
||
<h2>2. {{ 'TERMS_OF_SERVICE.SECTIONS.HEADER_2' | translate }}</h2> | ||
<ul> | ||
<li>{{ 'TERMS_OF_SERVICE.SECTIONS.CONTENT_2_1' | translate }}</li> | ||
<li>{{ 'TERMS_OF_SERVICE.SECTIONS.CONTENT_2_2' | translate }}</li> | ||
</ul> | ||
|
||
<h2>3. {{ 'TERMS_OF_SERVICE.SECTIONS.HEADER_3' | translate }}</h2> | ||
<ul> | ||
<li>{{ 'TERMS_OF_SERVICE.SECTIONS.CONTENT_3_1' | translate }}</li> | ||
</ul> | ||
|
||
<h2>4. {{ 'TERMS_OF_SERVICE.SECTIONS.HEADER_4' | translate }}</h2> | ||
<ul> | ||
<li>{{ 'TERMS_OF_SERVICE.SECTIONS.CONTENT_4_1' | translate }}</li> | ||
</ul> | ||
|
||
<h2>5. {{ 'TERMS_OF_SERVICE.SECTIONS.HEADER_5' | translate }}</h2> | ||
<ul> | ||
<li>{{ 'TERMS_OF_SERVICE.SECTIONS.CONTENT_5_1' | translate }}</li> | ||
</ul> | ||
|
||
<h2>6. {{ 'TERMS_OF_SERVICE.SECTIONS.HEADER_6' | translate }}</h2> | ||
<ul> | ||
<li>{{ 'TERMS_OF_SERVICE.SECTIONS.CONTENT_6_1' | translate }}</li> | ||
</ul> | ||
|
||
<h2>7. {{ 'TERMS_OF_SERVICE.SECTIONS.HEADER_7' | translate }}</h2> | ||
<ul> | ||
<li>{{ 'TERMS_OF_SERVICE.SECTIONS.CONTENT_7_1' | translate }}</li> | ||
</ul> | ||
</div> |
27 changes: 27 additions & 0 deletions
27
frontend/src/app/shared/terms-of-service/terms-of-service.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.terms-of-service-content { | ||
text-align: left; | ||
padding: 50px; | ||
padding-bottom: 150px; | ||
|
||
h1, h2 { | ||
color: #1d724b; | ||
} | ||
|
||
h2 { | ||
border-bottom: 1px solid #ccc; | ||
padding-bottom: 5px; | ||
} | ||
|
||
p { | ||
margin-bottom: 20px; | ||
} | ||
|
||
ul { | ||
list-style-type: none; | ||
margin-bottom: 20px; | ||
} | ||
|
||
a { | ||
font-weight: bold; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
frontend/src/app/shared/terms-of-service/terms-of-service.component.spec.ts
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
import { TermsOfServiceComponent } from './terms-of-service.component'; | ||
|
||
describe('TermsOfServiceComponent', () => { | ||
let component: TermsOfServiceComponent; | ||
let fixture: ComponentFixture<TermsOfServiceComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [TermsOfServiceComponent, TranslateModule.forRoot()] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(TermsOfServiceComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
19 changes: 19 additions & 0 deletions
19
frontend/src/app/shared/terms-of-service/terms-of-service.component.ts
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Component } from '@angular/core'; | ||
import { TranslateModule } from '@ngx-translate/core'; | ||
|
||
@Component({ | ||
selector: 'app-terms-of-service', | ||
standalone: true, | ||
imports: [TranslateModule], | ||
templateUrl: './terms-of-service.component.html', | ||
styleUrl: './terms-of-service.component.scss' | ||
}) | ||
export class TermsOfServiceComponent { | ||
lastUpdated!: string; | ||
emailAddress!: string; | ||
|
||
constructor() { | ||
this.lastUpdated = "3/10/2024"; | ||
this.emailAddress = "[email protected]"; | ||
} | ||
} |
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
File renamed without changes.
Oops, something went wrong.