From f79a69fdf2b6eeaf8c9e0013739cf0cd1727be4c Mon Sep 17 00:00:00 2001
From: Max
Date: Sun, 18 Feb 2024 12:27:25 +0100
Subject: [PATCH] Added Privacy Policy and Terms of Use
---
frontend/src/app/home/home.component.html | 65 ++++++++++++++++++++++-
frontend/src/app/home/home.component.ts | 20 +++++--
2 files changed, 80 insertions(+), 5 deletions(-)
diff --git a/frontend/src/app/home/home.component.html b/frontend/src/app/home/home.component.html
index 79d80ec..09a41f6 100644
--- a/frontend/src/app/home/home.component.html
+++ b/frontend/src/app/home/home.component.html
@@ -24,10 +24,73 @@
Data Privacy/Security
We prioritize data security and privacy consequently.
Files uploaded by our clients are securely stored on our servers for a maximum duration of one day,
- after which they are permanently deleted to guarantee the highest level of confidentiality and data protection.
+ after which they are permanently deleted to guarantee the highest level of confidentiality and data protection. Read more in our
+ Privacy Policy note.
+ By using SharePulse, you agree to the Terms of Use.
+
+
+
+

diff --git a/frontend/src/app/home/home.component.ts b/frontend/src/app/home/home.component.ts
index 3918a5e..1bcd8b8 100644
--- a/frontend/src/app/home/home.component.ts
+++ b/frontend/src/app/home/home.component.ts
@@ -1,15 +1,27 @@
-import { Component } from '@angular/core';
+import {Component, ElementRef, ViewChild} from '@angular/core';
import {RouterLink} from "@angular/router";
+import {FormsModule} from "@angular/forms";
@Component({
selector: 'app-home',
standalone: true,
- imports: [
- RouterLink
- ],
+ imports: [
+ RouterLink,
+ FormsModule
+ ],
templateUrl: './home.component.html',
styleUrl: './home.component.scss'
})
export class HomeComponent {
+ @ViewChild('privacy_policy_modal') privacy_policy_modal: ElementRef
| undefined;
+ @ViewChild('terms_of_use_modal') terms_of_use_modal: ElementRef | undefined;
+
+ openPrivacyPolicy() {
+ this.privacy_policy_modal?.nativeElement.showModal();
+ }
+
+ openTermsOfUse() {
+ this.terms_of_use_modal?.nativeElement.showModal();
+ }
}