diff --git a/services/frontend/src/app/adatvedelem/page.tsx b/services/frontend/src/app/adatvedelem/page.tsx index fa99bae..5181c71 100644 --- a/services/frontend/src/app/adatvedelem/page.tsx +++ b/services/frontend/src/app/adatvedelem/page.tsx @@ -37,67 +37,69 @@ export default async function PrivacyPage() {

2. Milyen adatokat kezelünk, és miért?

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AdatCélJogalap
Google-fiókod neve, e-mail-címe és azonosítója (belépéskor a Google adja át)Fiókod létrehozása, belépés, kapcsolattartásSzerződés teljesítése (GDPR 6. cikk (1) b)
Megjelenített név, az elemzések nyelveA szolgáltatás személyre szabásaSzerződés teljesítése
Születési adataid: dátum, időpont, helyA születési képleted kiszámítása és az elemzések elkészítéseSzerződés teljesítése
Az általad felvett személyek neve és születési adataiAz ő képletük és elemzésük elkészítése a kérésedreSzerződés teljesítése; a felvételhez az érintett beleegyezése szükséges (lásd 4. pont)
A képletek és az elkészült elemzésekHogy bármikor újra megnézhesd őketSzerződés teljesítése
Vásárlásaid és felhasznált kereteid (elemzések, személyek)A megvásárolt szolgáltatás nyújtása, elszámolásSzerződés teljesítése; számviteli kötelezettség (6. cikk (1) c)
Meghívott e-mail-címe, a meghívó neve és személyes üzeneteA meghívó elküldése; amíg az oldal zártkörű, csak meghívottak regisztrálhatnakJogos érdek (6. cikk (1) f)
A várólistán megadott e-mail-címÉrtesítés, ha megnyílik az oldal, vagy meghívót küldünkHozzájárulás (6. cikk (1) a)
Azok a címek, amelyek leiratkoztak a meghívókról (csak a cím egyirányú lenyomata, hash-e)Hogy ezekre a címekre ne küldjünk több meghívótJogos érdek (6. cikk (1) f)
IP-cím, böngésző adatai, a kérések ideje (szervernaplók)Biztonság, hibakeresés, visszaélések kiszűréseJogos érdek (6. cikk (1) f)
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AdatCélJogalap
Google-fiókod neve, e-mail-címe és azonosítója (belépéskor a Google adja át)Fiókod létrehozása, belépés, kapcsolattartásSzerződés teljesítése (GDPR 6. cikk (1) b)
Megjelenített név, az elemzések nyelveA szolgáltatás személyre szabásaSzerződés teljesítése
Születési adataid: dátum, időpont, helyA születési képleted kiszámítása és az elemzések elkészítéseSzerződés teljesítése
Az általad felvett személyek neve és születési adataiAz ő képletük és elemzésük elkészítése a kérésedreSzerződés teljesítése; a felvételhez az érintett beleegyezése szükséges (lásd 4. pont)
A képletek és az elkészült elemzésekHogy bármikor újra megnézhesd őketSzerződés teljesítése
Vásárlásaid és felhasznált kereteid (elemzések, személyek)A megvásárolt szolgáltatás nyújtása, elszámolásSzerződés teljesítése; számviteli kötelezettség (6. cikk (1) c)
Meghívott e-mail-címe, a meghívó neve és személyes üzeneteA meghívó elküldése; amíg az oldal zártkörű, csak meghívottak regisztrálhatnakJogos érdek (6. cikk (1) f)
A várólistán megadott e-mail-címÉrtesítés, ha megnyílik az oldal, vagy meghívót küldünkHozzájárulás (6. cikk (1) a)
Azok a címek, amelyek leiratkoztak a meghívókról (csak a cím egyirányú lenyomata, hash-e)Hogy ezekre a címekre ne küldjünk több meghívótJogos érdek (6. cikk (1) f)
IP-cím, böngésző adatai, a kérések ideje (szervernaplók)Biztonság, hibakeresés, visszaélések kiszűréseJogos érdek (6. cikk (1) f)
+

Bankkártyaadatot nem kezelünk és nem tárolunk; a fizetést, amikor elindul, külső fizetési szolgáltató végzi, akinek a neve itt lesz feltüntetve. diff --git a/services/frontend/src/app/globals.css b/services/frontend/src/app/globals.css index ccd3e72..006f409 100644 --- a/services/frontend/src/app/globals.css +++ b/services/frontend/src/app/globals.css @@ -28,6 +28,8 @@ html, body { margin: 0; } body { min-height: 100vh; + overflow-x: clip; /* nothing may push the page sideways on a phone */ + overflow-wrap: break-word; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font-body); @@ -71,8 +73,8 @@ p { margin: 0; } .page-head { display: flex; flex-direction: column; gap: 6px; } .card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 18px; } .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; } -.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } -.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; } +.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; } +.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; } .facts dt { color: var(--muted); } .facts dd { margin: 0; } @@ -81,11 +83,11 @@ p { margin: 0; } .field label, .label { font-size: 14px; font-weight: 500; } .hint { font-size: 13px; color: var(--muted); } .inp { - width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius); + width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font: 400 15px var(--font-body); } -select.inp { padding-right: 32px; } +select.inp { padding-right: 32px; text-overflow: ellipsis; } .inp::placeholder { color: #8a93ab; } .inp:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 180, 106, 0.25); } .inp:disabled { opacity: 0.55; } @@ -190,7 +192,7 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } .analysis-section h3 { font-size: 24px; color: var(--gold); } .analysis-section p, .analysis-lists li { font-size: 16px; line-height: 1.75; color: var(--ink-2); } .analysis strong { color: var(--ink); font-weight: 600; } -.analysis-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; } +.analysis-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; } .analysis-lists h3 { font-size: 22px; margin-bottom: 8px; } .analysis-lists ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; } .analysis-advice { border-top: 1px solid var(--line); padding-top: 24px; } @@ -308,7 +310,7 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } .w-point:hover .w-point-glyph { fill: var(--gold); } @media (max-width: 900px) { - .chart-layout { grid-template-columns: 1fr; } + .chart-layout { grid-template-columns: minmax(0, 1fr); } } @media (max-width: 640px) { @@ -342,7 +344,7 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } @media (max-width: 640px) { .tab { padding: 12px 10px; font-size: 14px; } .tabs { scroll-margin-top: 120px; } } /* Charts list, persons */ -.chart-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } +.chart-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; } .chart-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; transition: border-color 0.15s; @@ -485,14 +487,14 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; } .nature-challenging { background: var(--tense); } .nature-neutral { background: var(--gold); } .nature-list { margin: 0; display: flex; flex-direction: column; gap: 8px; } -.nature-list > div { display: grid; grid-template-columns: 128px 1fr; gap: 8px; align-items: baseline; } +.nature-list > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 8px; align-items: baseline; } .nature-list dt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); } .nature-list dd { margin: 0; } .nature-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .pair-card { gap: 4px; } .pair-row { - display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 0; + display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); } .pair-row:last-child { border-bottom: 0; padding-bottom: 0; } @@ -501,7 +503,7 @@ a.pair-row:hover strong { color: var(--gold); } .pair-text strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; } .compare-new { gap: 16px; } -.compare-form { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; align-items: end; } +.compare-form { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 12px; align-items: end; } .compare-swap { font-size: 20px; padding: 0 10px; } .compare-tile { gap: 6px; padding: 16px 20px; } .compare-tile strong { font-family: var(--font-display); font-size: 21px; font-weight: 600; } @@ -509,12 +511,12 @@ a.pair-row:hover strong { color: var(--gold); } .compare-tile .form-actions { margin-top: 6px; } .back-link { font-size: 14px; text-decoration: none; align-self: flex-start; } @media (max-width: 640px) { - .compare-form { grid-template-columns: 1fr auto; } + .compare-form { grid-template-columns: minmax(0, 1fr) auto; } .compare-form .field:first-child { grid-column: 1; } .compare-swap { grid-column: 2; grid-row: 1 / span 2; align-self: center; } .compare-form .field:nth-child(3) { grid-column: 1; } .compare-form > .btn-primary { grid-column: 1 / -1; width: 100%; } - .nature-list > div { grid-template-columns: 1fr; gap: 2px; } + .nature-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .nav { overflow-x: auto; scrollbar-width: none; } .nav a { white-space: nowrap; padding: 10px 9px; } .cross-grid td.cross-corner { min-width: 56px; font-size: 9px; } @@ -522,7 +524,7 @@ a.pair-row:hover strong { color: var(--gold); } /* Packages */ .pkg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; } -.pkg-grid-compact { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; } +.pkg-grid-compact { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; } .pkg { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); @@ -589,7 +591,7 @@ a.pair-row:hover strong { color: var(--gold); } .timeline-month h3 { font-size: 20px; margin: 0 0 8px; text-transform: capitalize; } .timeline-month ol, .transit-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; } .timeline-item { - display: grid; grid-template-columns: 64px 56px 1fr; gap: 10px; align-items: baseline; + display: grid; grid-template-columns: 64px 56px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 12px; border-left: 3px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, 0.02); } .timeline-date { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; } @@ -599,15 +601,15 @@ a.pair-row:hover strong { color: var(--gold); } .timeline-item.tone-harmonic, .transit-list .tone-harmonic { border-left-color: var(--harmonic); } .timeline-item.tone-neutral, .transit-list .tone-neutral { border-left-color: var(--gold); } .transit-list li { - display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: baseline; + display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 12px; border-left: 3px solid var(--line); border-radius: 4px; } -.transit-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; } +.transit-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .transit-list .sym { font-size: 17px; color: var(--gold); white-space: nowrap; } .transit-list .pill { align-self: flex-start; font-size: 12px; padding: 1px 8px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); } .plain-list { margin: 8px 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; } @media (max-width: 560px) { - .timeline-item { grid-template-columns: 52px 1fr; } + .timeline-item { grid-template-columns: 52px minmax(0, 1fr); } .timeline-glyph { display: none; } } @@ -638,7 +640,7 @@ a.pair-row:hover strong { color: var(--gold); } .questions { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); } .questions h3 { margin: 0; } .qa { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; } -.qa-question { margin: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 600; white-space: pre-wrap; } +.qa-question { margin: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; } .qa-answer { display: flex; flex-direction: column; gap: 6px; } .qa-answer p { margin: 0 0 8px; } .qa-form { display: flex; flex-direction: column; gap: 8px; } @@ -657,3 +659,39 @@ a.pair-row:hover strong { color: var(--gold); } .error-log .error-text { overflow-wrap: anywhere; max-width: 460px; } .error-log .outcome { white-space: nowrap; } .error-log .outcome.tone-tense { color: var(--tense); font-weight: 600; } + +/* Generated text (summaries, analyses, answers): justified, with hyphenation so + narrow screens get no wide gaps. The last line of a paragraph stays ragged. */ +.analysis-lead, .analysis-section p, .analysis-lists li, .summary-text, .qa-answer p { + text-align: justify; + hyphens: auto; + -webkit-hyphens: auto; + hyphenate-limit-chars: 7 3 3; +} + +/* Phones: tighter spacing, smaller headings, no sideways scrolling */ +@media (max-width: 640px) { + .page { padding: 20px 14px 48px; gap: 18px; } + .card { padding: 16px; gap: 14px; } + h2 { font-size: 24px; } + .analysis { gap: 22px; } + .analysis-head h2 { font-size: 28px; } + .analysis-section h3 { font-size: 21px; } + .analysis-lists h3 { font-size: 20px; } + .analysis-lead { font-size: 16px; line-height: 1.65; } + .analysis-section p, .analysis-lists li, .summary-text { font-size: 15.5px; line-height: 1.7; } + .analysis-lists ul { padding-left: 18px; } + .summary-title { font-size: 23px; } + .questions { margin-top: 22px; padding-top: 18px; } + .qa { padding: 12px; } + .pay-box { padding: 16px; } + .loading-wheel { width: 96px; height: 96px; } + .tagline { font-size: 32px; } +} +@media (max-width: 480px) { + /* label above value: the label column would squeeze the values */ + .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } + .facts dd + dt { margin-top: 8px; } + .site-header { gap: 8px 12px; } + .logo { font-size: 25px; } +} diff --git a/services/frontend/src/components/AnalysisView.tsx b/services/frontend/src/components/AnalysisView.tsx index 647173f..6814476 100644 --- a/services/frontend/src/components/AnalysisView.tsx +++ b/services/frontend/src/components/AnalysisView.tsx @@ -11,14 +11,17 @@ const ORDER = { natal: NATAL_ORDER, synastry: SYNASTRY_ORDER, forecast: FORECAST export function AnalysisView({ content, kind = "natal", + language, }: { content: AnalysisContent; kind?: "natal" | "synastry" | "forecast"; + /** The language of the text, for hyphenation. */ + language?: string; }) { const order = ORDER[kind]; const sections = order.map((key) => content.sections?.[key]).filter((s) => s !== undefined); return ( -

+