Fixed ToS Typo, added Privacy Policy

This commit is contained in:
itzMiney committed 2025-06-09 04:12:33 +02:00
1 parent 92d7fba166
commit 554162c0ad
7 files changed
+411 -14

No files matched your search

+150
View File
@@ -0,0 +1,150 @@
@keyframes fadeIn {
0% {
opacity: 0;
visibility: hidden;
}
100% {
opacity: 1;
visibility: visible;
}
}
#vanta-privacy-bg {
animation: fadeIn 1s ease-out;
position: fixed;
top: 0;
left: 0;
width: 100vw; /* Full viewport width */
height: 100vh; /* Full viewport height */
z-index: -100; /* Place the background behind content */
}
.privacy-container {
position: relative;
color: white;
padding-bottom: 60px;
max-width: 960px;
margin: 160px auto 80px auto;
font-family: 'Roboto', sans-serif;
}
.height-container {
min-height: 100vh;
align-content: center;
}
.privacy-content {
font-weight: 400;
margin-bottom: 10px;
font-family: Roboto, sans-serif;
}
.contact-details {
list-style-type: none;
}
.text-content li {
margin-bottom: 10px;
}
.text-content a {
color: cornflowerblue;
}
@media (max-width: 768px) {
.privacy-container {
padding: 20px 10px;
}
.privacy-header h1 {
font-size: 2rem;
}
}
.floating-nav.hidden {
display: none;
}
.floating-nav {
position: fixed;
top: 20%;
right: 0;
z-index: 1000;
background: transparent;
padding: 25px;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.floating-nav ul {
list-style-type: none;
padding: 0;
}
.floating-nav li {
margin: 10px 0;
}
.floating-nav a {
text-decoration: none;
color: white;
}
.floating-nav a:hover {
color: #e3485a;
}
.floating-nav a.active {
color: #846cd1;
}
.clickable-title {
position: relative;
cursor: pointer;
display: inline-block;
}
.clickable-title:hover {
color: #ddd3ff;
}
.clickable-title:active {
color: #9179e8;
}
.clickable-title .link-icon {
font-size: 16px;
margin-left: 8px;
opacity: 0;
transition: opacity 0.3s ease;
}
.clickable-title:hover .link-icon {
opacity: 1;
}
.copied-text {
font-size: 16px;
font-family: Roboto, sans-serif;
font-weight: 500;
color: #7fd67f;
margin-left: 8px;
}
.contact-details span {
margin-right: 10px;
margin-left: 10px;
cursor: pointer;
}
.contact-details span:hover {
color: cornflowerblue;
}
.contact-details span:active {
color: mediumpurple;
}
.copy-status {
color: #7fd67f;
}
+109
View File
@@ -0,0 +1,109 @@
<div id="vanta-privacy-bg"></div>
<div class="height-container">
<div class="privacy-container">
<div class="floating-nav" [class.hidden]="isMobile">
<ul>
<li><a href="#controller" [class.active]="activeSection === 'controller'" (click)="scrollToSection($event, 'controller')">1. Controller of the Data</a></li>
<li><a href="#what-data" [class.active]="activeSection === 'what-data'" (click)="scrollToSection($event, 'what-data')">2. What Data We collect</a></li>
<li><a href="#purpose" [class.active]="activeSection === 'purpose'" (click)="scrollToSection($event, 'purpose')">3. Purpose and Legal Basis</a></li>
<li><a href="#data-retention" [class.active]="activeSection === 'data-retention'" (click)="scrollToSection($event, 'data-retention')">4. Data Retention</a></li>
<li><a href="#your-rights" [class.active]="activeSection === 'your-rights'" (click)="scrollToSection($event, 'your-rights')">5. Your Rights</a></li>
<li><a href="#security" [class.active]="activeSection === 'security'" (click)="scrollToSection($event, 'security')">6. Security</a></li>
<li><a href="#changes" [class.active]="activeSection === 'changes'" (click)="scrollToSection($event, 'changes')">7. Changes</a></li>
</ul>
</div>
<div class="text-content">
<section id="controller">
<h1>Privacy Policy</h1>
Last updated: 9th June 2025
<br><br>
<h2 (click)="copySectionLink('controlle')" class="clickable-title">
1. Controller of the Data
<span class="link-icon" *ngIf="copiedSection !== 'controller'"><i class="fa-solid fa-link"></i></span>
<span class="copied-text" *ngIf="copiedSection === 'controller'">Copied!</span>
</h2>
<p>The controller responsible for processing data on this website is:<br><br><b>Michael Reisinger</b><br><a href="mailto:michael@itzminey.dev">michael&#x40;itzminey.dev</a></p>
</section>
<section id="what-data">
<br><br>
<h2 (click)="copySectionLink('what-data')" class="clickable-title">
2. What Data We Collect
<span class="link-icon" *ngIf="copiedSection !== 'what-data'"><i class="fa-solid fa-link"></i></span>
<span class="copied-text" *ngIf="copiedSection === 'what-data'">Copied!</span>
</h2>
<p>a) Website Usage Data
<br><br>
 We may temporarily process your IP address when you visit certain pages, such as article views. This is done solely to protect the integrity of view counts and prevent automated abuse. This data is stored securely and is not retained longer than necessary.
<br><br>
 We do not use cookies for tracking or analytics purposes.
<br><br>
b) Email Inquiries
<br><br>
 If you contact us via the email address provided on the website, we may store your message and contact information in order to respond to your inquiry or provide the requested service. This data is treated as confidential and will not be shared with third parties without your consent.</p>
</section>
<section id="purpose">
<br><br>
<h2 (click)="copySectionLink('purpose')" class="clickable-title">
3. Purpose and Legal Basis
<span class="link-icon" *ngIf="copiedSection !== 'purpose'"><i class="fa-solid fa-link"></i></span>
<span class="copied-text" *ngIf="copiedSection === 'purpose'">Copied!</span>
</h2>
<p>We process personal data on the basis of legitimate interest (Art. 6(1)(f) GDPR), namely:</p>
<ul>
<li>To maintain and protect the integrity of our website</li>
<li>To respond to your inquiries and service requests</li>
</ul>
</section>
<section id="data-retention">
<br><br>
<h2 (click)="copySectionLink('data-retention')" class="clickable-title">
4. Data Retention
<span class="link-icon" *ngIf="copiedSection !== 'data-retention'"><i class="fa-solid fa-link"></i></span>
<span class="copied-text" *ngIf="copiedSection === 'data-retention'">Copied!</span>
</h2>
<p>Personal data is retained only as long as necessary for the stated purposes. Email correspondence may be retained for legal or administrative reasons, such as fulfilling service requests or maintaining communication history.</p>
</section>
<section id="your-rights">
<br><br>
<h2 (click)="copySectionLink('your-rights')" class="clickable-title">
5. Your Rights
<span class="link-icon" *ngIf="copiedSection !== 'your-rights'"><i class="fa-solid fa-link"></i></span>
<span class="copied-text" *ngIf="copiedSection === 'your-rights'">Copied!</span>
</h2>
<p>Under the GDPR, you have the right to:</p>
<ul>
<li>Access your personal data</li>
<li>Request correction or deletion</li>
<li>Object to or restrict processing</li>
<li>Lodge a complaint with your local data protection authority (in Austria, <b>DSB - Datenschutzbehörde</b>)</li>
</ul>
<p>To exercise these rights, please contact us at the email listed above.</p>
</section>
<section id="security">
<br><br>
<h2 (click)="copySectionLink('security')" class="clickable-title">
6. Security
<span class="link-icon" *ngIf="copiedSection !== 'security'"><i class="fa-solid fa-link"></i></span>
<span class="copied-text" *ngIf="copiedSection === 'security'">Copied!</span>
</h2>
<p>We take appropriate technical and organizational measures to protect your personal data from unauthorized access, misuse, or loss.</p>
</section>
<section id="changes">
<br><br>
<h2 (click)="copySectionLink('changes')" class="clickable-title">
7. Changes
<span class="link-icon" *ngIf="copiedSection !== 'changes'"><i class="fa-solid fa-link"></i></span>
<span class="copied-text" *ngIf="copiedSection === 'changes'">Copied!</span>
</h2>
<p>This policy may be updated occasionally to reflect changes in our practices. The latest version will always be available on this page.</p>
</section>
</div>
</div>
</div>
+132
View File
@@ -0,0 +1,132 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser';
import {isPlatformBrowser, NgIf} from '@angular/common';
@Component({
selector: 'app-services',
imports: [
NgIf
],
templateUrl: './privacy.component.html',
styleUrl: './privacy.component.css'
})
export class PrivacyComponent implements OnInit, OnDestroy, AfterViewInit {
private readonly elementId = 'vanta-privacy-bg';
isMobile: boolean = false;
activeSection: string = '';
copiedSection: string | null = null;
constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) {}
scrollToSection(event: Event, targetId: string): void {
event.preventDefault();
const target = document.getElementById(targetId);
if (target) {
window.scrollTo({
top: target.offsetTop + 80,
behavior: 'smooth'
});
}
}
ngOnInit() {
this.titleService.setTitle('Privacy Policy | itzMiney');
this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
}
ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0x5b417a,
backgroundColor: 0x41e3c
});
this.initScrollTracking();
}
ngOnDestroy() {
this.vantaService.destroyVanta(this.elementId);
if (isPlatformBrowser(this.platformId)) {
window.removeEventListener('resize', this.onResize);
}
}
onResize() {
this.vantaService.resizeVanta(this.elementId);
}
initScrollTracking(): void {
const sections = Array.from(document.querySelectorAll('section')) as HTMLElement[];
const updateActiveSection = () => {
let closestSection: string | null = null;
let minDistance = Number.MAX_VALUE;
const viewportCenter = window.scrollY + window.innerHeight / 10;
sections.forEach(section => {
const rect = section.getBoundingClientRect();
const sectionTop = window.scrollY + rect.top;
const distance = Math.abs(viewportCenter - sectionTop);
if (distance < minDistance) {
minDistance = distance;
closestSection = section.id;
}
});
if (closestSection && closestSection !== this.activeSection) {
this.activeSection = closestSection;
document.querySelectorAll('.floating-nav a').forEach(link => {
link.classList.remove('active');
});
const activeLink = document.querySelector(`a[href="#${closestSection}"]`);
if (activeLink) {
activeLink.classList.add('active');
}
}
requestAnimationFrame(updateActiveSection);
};
requestAnimationFrame(updateActiveSection);
}
copySectionLink(sectionId: string): void {
const url = `${window.location.origin}${window.location.pathname}#${sectionId}`;
navigator.clipboard.writeText(url).then(() => {
this.copiedSection = sectionId;
setTimeout(() => {
this.copiedSection = null;
}, 2000);
});
}
copyToClipboard(text: string): void {
navigator.clipboard.writeText(text).then(() => {
if (text.includes('@')) {
this.copiedSection = 'email';
} else if (text.includes('+')) {
this.copiedSection = 'phone';
}
// Reset the copied section after 2 seconds
setTimeout(() => {
this.copiedSection = null;
}, 2000);
});
}
}