fix: risoluzione importazione playlist tramite link di condivisione e fix installabilità PWA su Android

This commit is contained in:
David Frassi
2026-05-22 01:22:26 +02:00
parent d82d56a3cc
commit adc3d510ad
39 changed files with 842 additions and 299 deletions
+320
View File
@@ -953,3 +953,323 @@ ion-title {
color: #c0392b !important;
border-color: #c0392b !important;
}
/* ==========================================================================
PWA INSTALLATION PROMOTIONS (Android & iOS)
========================================================================== */
/* 1. Android Installation Banner */
.pwa-android-banner {
--background: rgba(255, 255, 255, 0.04);
background: rgba(255, 255, 255, 0.04);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.08);
border-left: 4px solid var(--ion-color-secondary);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
animation: slideInBanner 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
&:hover {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(255, 255, 255, 0.12);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.banner-inner {
display: flex;
align-items: center;
padding: 14px 16px;
gap: 12px;
}
.banner-icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
background: rgba(var(--ion-color-secondary-rgb), 0.12);
border: 1px solid rgba(var(--ion-color-secondary-rgb), 0.2);
width: 42px;
height: 42px;
border-radius: 12px;
flex-shrink: 0;
.banner-icon {
font-size: 1.5rem;
color: var(--ion-color-secondary);
}
}
.banner-text-wrapper {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
overflow: hidden;
.banner-title {
font-size: 0.95rem;
font-weight: 700;
color: white;
margin: 0;
letter-spacing: 0.2px;
}
.banner-subtitle {
font-size: 0.78rem;
line-height: 1.35;
color: rgba(255, 255, 255, 0.65);
margin: 0;
font-weight: 400;
}
}
.banner-actions {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
.install-action-btn {
--border-radius: 10px;
--box-shadow: 0 4px 10px rgba(var(--ion-color-secondary-rgb), 0.2);
font-weight: 700;
font-size: 0.8rem;
height: 32px;
margin: 0;
text-transform: none;
letter-spacing: 0.2px;
transition: transform 0.2s ease;
&:active {
transform: scale(0.95);
}
}
.dismiss-action-btn {
--color: rgba(255, 255, 255, 0.5);
--padding-start: 4px;
--padding-end: 4px;
margin: 0;
height: 32px;
width: 32px;
ion-icon {
font-size: 1.3rem;
}
&:active {
opacity: 0.7;
}
}
}
}
/* 2. iOS Safari Contextual Tooltip */
.pwa-ios-tooltip-wrapper {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
z-index: 10000;
width: 90%;
max-width: 385px;
pointer-events: none;
filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.45));
transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
&.has-player {
bottom: 84px; /* Float above active bottom player footer */
}
.pwa-ios-tooltip {
pointer-events: auto;
display: flex;
flex-direction: column;
background: rgba(26, 26, 46, 0.96) !important;
backdrop-filter: blur(25px);
-webkit-backdrop-filter: blur(25px);
border: 1.5px solid rgba(var(--ion-color-secondary-rgb), 0.25);
border-radius: 20px;
padding: 14px 16px;
position: relative;
box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
animation: floatTooltip 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), bounceGently 3s ease-in-out infinite;
.tooltip-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
.tooltip-title {
font-size: 0.95rem;
font-weight: 700;
color: var(--ion-color-secondary);
letter-spacing: 0.3px;
}
.dismiss-btn {
--color: rgba(255, 255, 255, 0.45);
--padding-start: 4px;
--padding-end: 4px;
margin: 0;
height: 24px;
width: 24px;
ion-icon {
font-size: 1.2rem;
}
&:active {
opacity: 0.7;
}
}
}
.tooltip-body {
.tooltip-text {
font-size: 0.82rem;
line-height: 1.45;
color: rgba(255, 255, 255, 0.85);
margin: 0;
font-weight: 400;
strong {
color: white;
font-weight: 600;
}
.safari-icon-inline {
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.12);
padding: 3px;
border-radius: 6px;
vertical-align: middle;
margin: 0 3px;
width: 20px;
height: 20px;
ion-icon {
font-size: 0.95rem;
color: #007aff; /* Apple System Blue */
}
}
}
}
.tooltip-arrow {
width: 0;
height: 0;
border-left: 12px solid transparent;
border-right: 12px solid transparent;
border-top: 12px solid rgba(26, 26, 46, 0.96);
position: absolute;
bottom: -11px;
left: 50%;
transform: translateX(-50%);
&::after {
content: '';
width: 0;
height: 0;
border-left: 12px solid transparent;
border-right: 12px solid transparent;
border-top: 12px solid rgba(var(--ion-color-secondary-rgb), 0.25);
position: absolute;
bottom: -1px;
left: -12px;
z-index: -1;
}
}
}
}
/* Animations */
@keyframes slideInBanner {
from {
opacity: 0;
transform: translateY(-16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes floatTooltip {
from {
opacity: 0;
transform: translate(-50%, 20px) scale(0.95);
}
to {
opacity: 1;
transform: translate(-50%, 0) scale(1);
}
}
@keyframes bounceGently {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
}
/* High Contrast mode adaptations */
:host-context(body.high-contrast) {
.pwa-android-banner {
background: #ffffff !important;
border: 2px solid #000000 !important;
border-left-width: 6px !important;
.banner-title, .banner-subtitle {
color: #000000 !important;
}
.banner-icon {
color: #000000 !important;
}
.banner-icon-wrapper {
background: rgba(0, 0, 0, 0.05) !important;
border-color: #000000 !important;
}
.install-action-btn {
--background: #000000 !important;
--color: #ffffff !important;
}
.dismiss-action-btn {
--color: #000000 !important;
}
}
.pwa-ios-tooltip {
background: #ffffff !important;
border: 2px solid #000000 !important;
.tooltip-title, .tooltip-text, .tooltip-text strong {
color: #000000 !important;
}
.dismiss-btn {
--color: #000000 !important;
}
.tooltip-arrow {
border-top-color: #ffffff !important;
&::after {
border-top-color: #000000 !important;
}
}
.safari-icon-inline {
background: rgba(0, 0, 0, 0.05) !important;
border-color: #000000 !important;
ion-icon {
color: #000000 !important;
}
}
}
}