style tweaks (mainly for mobile)

This commit is contained in:
itzMiney committed 2026-03-17 01:45:43 +01:00
1 parent b396728db8
commit 07437e7950
13 files changed
+216 -80

No files matched your search

+50 -2
View File
@@ -107,8 +107,8 @@
text-align: center;
}
::ng-deep .text-content a {
color: cornflowerblue;
.text-content a {
color: #cb84df;
}
.modal-backdrop {
@@ -165,6 +165,54 @@
background-color: #ef85a4;
}
.fade-in {
animation: fadeIn 250ms ease-out forwards;
}
.fade-out {
animation: fadeOut 200ms ease-in forwards;
}
.modal-enter {
animation: modalEnter 250ms ease-out forwards;
}
.modal-leave {
animation: modalLeave 200ms ease-in forwards;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeOut {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes modalEnter {
from {
opacity: 0;
transform: scale(0.95) translateY(10px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
@keyframes modalLeave {
from {
opacity: 1;
transform: scale(1);
}
to {
opacity: 0;
transform: scale(0.95) translateY(10px);
}
}
hr.rounded {
border: 2px solid white;
width: 40px;
+12 -2
View File
@@ -31,8 +31,18 @@
</div>
<!-- Modal -->
@if (showModal) {
<div class="modal-backdrop" (click)="closeModal()">
<div class="modal-content" (click)="$event.stopPropagation()">
<div
class="modal-backdrop"
animate.enter="fade-in"
animate.leave="fade-out"
(click)="closeModal()"
>
<div
class="modal-content"
animate.enter="modal-enter"
animate.leave="modal-leave"
(click)="$event.stopPropagation()"
>
<img [src]="selectedItem?.src" [alt]="selectedItem?.alt">
<h2>{{ selectedItem?.label }}</h2>
<button (click)="closeModal()">Close</button>