Files
parenthese/frontend/src/components/ProximityFeedback.css
T
IliesAllaliandClaude Opus 5.5 5b5636e1be Refonte de la direction artistique : accent terracotta, landing, app et démo
- Landing refaite : nouvelle palette claire, Newsreader et DM Sans, logo validé,
  sections (garanties, trois gestes, démo, pour qui, engagements, guides, bloc final).
  Illustration du hero conservée et recolorée, portraits alignés sur les âges.
- App : couleurs et typographie passées à la nouvelle DA, structure et fonctionnalités inchangées.
  Composants communs dans src/styles/pz.css.
- Refaits de zéro : fiche d'une personne (souvenirs, infos, liens, panneau mobile),
  connexion, création de compte, liste des arbres, accès par mot de passe, recherche,
  barre d'actions, menu du compte, zoom, et toutes les fenêtres (compte, création d'arbre,
  contributions, envoi, sortie d'édition, brouillon, ajout de personne, souvenirs, visionneuse,
  paramètres de l'arbre).
- Arbre : chaque personne garde sa forme de cadre tirée au hasard, cadre vertical pour une photo carrée.
- Démo : photos d'époque libres de droits hébergées dans public/demo (sources et licences
  dans sources.json et CREDITS.md), famille Dupont crédible, Isabelle née à Fort-de-France.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 11:21:04 +02:00

147 lines
2.7 KiB
CSS

/* ============================================================
Proximity Feedback - Feedback visuel drag proximity
============================================================ */
/* Ligne pointillée entre drag et personne proche */
.proximity-line {
position: fixed;
pointer-events: none;
z-index: 1000;
}
.proximity-line-svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: visible;
}
.proximity-line-path {
fill: none;
stroke-width: 2;
stroke-dasharray: 6, 4;
stroke-linecap: round;
animation: proximityLineDash 1s linear infinite;
}
.proximity-line-path.child {
stroke: rgba(76, 217, 100, 0.8);
}
.proximity-line-path.spouse {
stroke: rgba(255, 59, 48, 0.7);
}
.proximity-line-path.sibling {
stroke: rgba(210, 105, 74, 0.7);
}
.proximity-line-path.none {
stroke: rgba(142, 142, 147, 0.5);
}
@keyframes proximityLineDash {
to {
stroke-dashoffset: -10;
}
}
/* Badge type de lien sur la ligne */
.proximity-badge {
position: fixed;
padding: 6px 12px;
border-radius: 12px;
font-size: 14px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
white-space: nowrap;
pointer-events: none;
z-index: 1001;
box-shadow: 0 4px 12px rgba(42, 38, 34, 0.15);
animation: badgePulse 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes badgePulse {
0% {
opacity: 0;
transform: translate(-50%, -50%) scale(0.8);
}
100% {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
}
.proximity-badge.child {
background: rgba(76, 217, 100, 0.95);
color: white;
}
.proximity-badge.spouse {
background: rgba(255, 59, 48, 0.95);
color: white;
}
.proximity-badge.sibling {
background: rgba(210, 105, 74, 0.95);
color: white;
}
/* Highlight glow sur la personne proche */
.proximity-highlight {
position: fixed;
pointer-events: none;
z-index: 999;
}
.proximity-highlight-glow {
width: 100px;
height: 100px;
border-radius: 50%;
opacity: 0.6;
animation: proximityGlow 1.5s ease-in-out infinite;
}
.proximity-highlight-glow.child {
background: radial-gradient(
circle,
rgba(76, 217, 100, 0.4) 0%,
rgba(76, 217, 100, 0.2) 50%,
transparent 100%
);
}
.proximity-highlight-glow.spouse {
background: radial-gradient(
circle,
rgba(255, 59, 48, 0.35) 0%,
rgba(255, 59, 48, 0.15) 50%,
transparent 100%
);
}
.proximity-highlight-glow.sibling {
background: radial-gradient(
circle,
rgba(210, 105, 74, 0.35) 0%,
rgba(210, 105, 74, 0.15) 50%,
transparent 100%
);
}
@keyframes proximityGlow {
0%, 100% {
transform: scale(1);
opacity: 0.6;
}
50% {
transform: scale(1.15);
opacity: 0.8;
}
}