bottom nav popup

This commit is contained in:
Tykayn 2025-09-01 18:29:32 +02:00 committed by tykayn
parent 12886724a4
commit 976d5641e2
3 changed files with 144 additions and 5 deletions

View file

@ -1,6 +1,6 @@
<div class="bottom-navigation">
<nav class="navigation">
<a class="nav-item">
<a class="nav-item" id="privacy_policy_popup" (click)="togglePrivacyPolicy()">
privacy policy
</a>
<a class="nav-item">
@ -10,7 +10,6 @@
<div class="fixed-navigation">
<button class="next-step" routerLink="similar-cases">
<span class="label">
Search similar cases
</span>
<span class="pipe">
@ -19,4 +18,32 @@
<i class="ri-arrow-right-line"></i>
</button>
</div>
<!-- Privacy Policy Popup -->
<div class="privacy-policy-popup" *ngIf="showPrivacyPolicy">
<div class="popup-overlay" (click)="closePrivacyPolicy()"></div>
<div class="popup-content">
<button class="close-button" (click)="closePrivacyPolicy()">
<span>×</span>
</button>
<div class="popup-body">
<h2>Privacy Policy</h2>
<p>
This privacy policy explains how we collect, use, and protect your personal information when you use our services.
</p>
<p>
We collect information to provide better services to all our users. This includes information you provide to us, such as your name, email address, and other personal details.
</p>
<p>
We use this information to provide, maintain, and improve our services, develop new ones, and protect our users.
</p>
<p>
We will not share your personal information with anyone except as described in this Privacy Policy.
</p>
</div>
<div class="popup-footer">
<button class="agree-button" (click)="closePrivacyPolicy()">I agree</button>
</div>
</div>
</div>
</div>

View file

@ -44,5 +44,107 @@
line-height: 24px;
background: var(--Gradient, linear-gradient(77deg, #073A7C -4.23%, #1767AD 51.8%, #255B8E 87.72%));
}
/* Privacy Policy Popup Styles */
.privacy-policy-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
.popup-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
cursor: pointer;
}
.popup-content {
position: relative;
width: 90%;
max-width: 600px;
max-height: 80vh;
background-color: white;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
z-index: 1001;
overflow: hidden;
display: flex;
flex-direction: column;
}
.close-button {
position: absolute;
top: 10px;
right: 10px;
width: 30px;
height: 30px;
border-radius: 50%;
background: transparent;
border: none;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
font-size: 24px;
color: var(--color-text-title, #255B8E);
&:hover {
background-color: rgba(0, 0, 0, 0.05);
}
}
.popup-body {
padding: 30px;
overflow-y: auto;
h2 {
color: var(--color-text-title, #255B8E);
font-family: var(--Fonts-Font-text, Barlow);
font-size: 24px;
font-weight: 600;
margin-bottom: 20px;
}
p {
color: var(--color-text, #333);
font-family: var(--Fonts-Font-text, Barlow);
font-size: 16px;
line-height: 1.5;
margin-bottom: 15px;
}
}
.popup-footer {
padding: 20px 30px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
display: flex;
justify-content: center;
}
.agree-button {
padding: 12px 30px;
border-radius: 10px;
border: none;
background: var(--Gradient, linear-gradient(77deg, #073A7C -4.23%, #1767AD 51.8%, #255B8E 87.72%));
color: white;
font-family: var(--Fonts-Font-text, Barlow);
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: opacity 0.2s;
&:hover {
opacity: 0.9;
}
}
}

View file

@ -1,14 +1,24 @@
import { Component } from '@angular/core';
import {RouterLink} from '@angular/router';
import { RouterLink } from '@angular/router';
import { NgIf } from '@angular/common';
@Component({
selector: 'app-bottom-navigation',
imports: [
RouterLink
RouterLink,
NgIf
],
templateUrl: './bottom-navigation.html',
styleUrl: './bottom-navigation.scss'
})
export class BottomNavigation {
showPrivacyPolicy = false;
togglePrivacyPolicy(): void {
this.showPrivacyPolicy = !this.showPrivacyPolicy;
}
closePrivacyPolicy(): void {
this.showPrivacyPolicy = false;
}
}