feat: Website und Hub zweisprachig (Deutsch/Englisch)
Website (rinkplanner.programmschmiede.de) liegt jetzt im Repo unter web/: Sprachweiche nach Accept-Language (der User-Agent enthält keine Sprache), /de/ und /en/ als eigene URLs mit hreflang, Cookie für die manuelle Wahl, Texte in web/i18n.php, Markup in web/template.php. Deployment über tools/deploy_web.sh (--sync, --check, --all); /index.html leitet weiter. Hub: optionale englische Oberfläche über den DE/EN-Umschalter, Cookie RHUB_LANG, Route /language. Alle Texte (Views, Meldungen, Validierung, API-messages) stehen in hub/app/i18n_strings.php und laufen über t(); Datum und Zahlen folgen der Sprache. Die API behält ihre code-Felder und antwortet ohne Cookie weiter deutsch. deploy_hub.sh --check prüft jetzt Schlüsselparität und fehlende t()-Schlüssel. Doku: docs/website.md neu, docs/hub.md und AGENTS.md ergänzt.
This commit is contained in:
parent
6c8dc942e8
commit
9819311403
41 changed files with 2801 additions and 326 deletions
7
web/.htaccess
Normal file
7
web/.htaccess
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Rinkplanner-Website: Sprachweiche vor den statischen Seiten.
|
||||
#
|
||||
# index.php entscheidet anhand von Accept-Language, welche Sprache ausgeliefert
|
||||
# wird. Der Host erlaubt weder mod_alias noch mod_rewrite, deshalb liegt die
|
||||
# alte Adresse /index.html als kleine Weiterleitungsseite daneben – sie wird
|
||||
# nur ausgeliefert, wenn index.php nicht gefunden wird.
|
||||
DirectoryIndex index.php index.html
|
||||
682
web/assets/site.css
Normal file
682
web/assets/site.css
Normal file
|
|
@ -0,0 +1,682 @@
|
|||
:root {
|
||||
--ink: #050d19;
|
||||
--navy: #071a30;
|
||||
--ice: #c9f0ff;
|
||||
--frost: #eefaff;
|
||||
--sky: #7dd3fc;
|
||||
--blue: #38bdf8;
|
||||
--deep-blue: #185a86;
|
||||
--gold: #f3d7a3;
|
||||
--text: #f4fbff;
|
||||
--muted: rgba(224, 244, 255, 0.68);
|
||||
--line: rgba(190, 230, 255, 0.17);
|
||||
--glass: rgba(7, 24, 43, 0.58);
|
||||
--glass-strong: rgba(8, 29, 51, 0.82);
|
||||
--shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
|
||||
--radius: 24px;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
background: var(--ink);
|
||||
color: var(--text);
|
||||
font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: rgba(125, 211, 252, 0.35);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--ice);
|
||||
}
|
||||
|
||||
.bg-media {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: -3;
|
||||
overflow: hidden;
|
||||
background:
|
||||
radial-gradient(circle at 28% 18%, rgba(56, 189, 248, 0.18), transparent 38%),
|
||||
radial-gradient(circle at 76% 44%, rgba(24, 90, 134, 0.34), transparent 44%),
|
||||
linear-gradient(145deg, #050d19 0%, #071a30 48%, #0a2742 100%);
|
||||
}
|
||||
|
||||
.bg-video {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
opacity: 0.58;
|
||||
filter: saturate(1.08) contrast(1.04);
|
||||
}
|
||||
|
||||
body.no-video .bg-video {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.bg-shade {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(3, 9, 18, 0.28) 0%, rgba(3, 9, 18, 0.62) 58%, var(--ink) 100%),
|
||||
radial-gradient(circle at 50% 42%, transparent 0%, rgba(3, 9, 18, 0.46) 76%);
|
||||
}
|
||||
|
||||
.bg-aurora {
|
||||
position: absolute;
|
||||
inset: -20%;
|
||||
background:
|
||||
radial-gradient(ellipse at 18% 55%, rgba(125, 211, 252, 0.16), transparent 34%),
|
||||
radial-gradient(ellipse at 82% 32%, rgba(243, 215, 163, 0.08), transparent 28%),
|
||||
radial-gradient(ellipse at 54% 84%, rgba(56, 189, 248, 0.12), transparent 32%);
|
||||
filter: blur(30px);
|
||||
animation: aurora 16s ease-in-out infinite alternate;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.trail {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: -2;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
opacity: 0.58;
|
||||
}
|
||||
|
||||
.trail svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.trail-line {
|
||||
fill: none;
|
||||
stroke: rgba(201, 240, 255, 0.34);
|
||||
stroke-width: 1.4;
|
||||
stroke-linecap: round;
|
||||
stroke-dasharray: 3 22;
|
||||
animation: trailDash 9s linear infinite;
|
||||
}
|
||||
|
||||
.trail-line.two {
|
||||
stroke: rgba(125, 211, 252, 0.26);
|
||||
animation-duration: 13s;
|
||||
animation-direction: reverse;
|
||||
}
|
||||
|
||||
.trail-line.three {
|
||||
stroke: rgba(243, 215, 163, 0.16);
|
||||
animation-duration: 17s;
|
||||
}
|
||||
|
||||
.grain {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
opacity: 0.05;
|
||||
background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.6px, transparent 0.6px);
|
||||
background-size: 3px 3px;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 20;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
padding: 20px clamp(20px, 5vw, 64px);
|
||||
background: linear-gradient(180deg, rgba(3, 9, 18, 0.78), transparent);
|
||||
}
|
||||
|
||||
.brand {
|
||||
color: var(--text);
|
||||
text-decoration: none;
|
||||
font-size: 0.92rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.brand span {
|
||||
color: var(--sky);
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.site-nav a {
|
||||
color: var(--muted);
|
||||
text-decoration: none;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
padding: 9px 14px;
|
||||
border-radius: 999px;
|
||||
transition: color 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
|
||||
.site-nav a:hover {
|
||||
color: var(--text);
|
||||
background: rgba(201, 240, 255, 0.08);
|
||||
}
|
||||
|
||||
.site-nav .nav-back {
|
||||
color: var(--text);
|
||||
border: 1px solid var(--line);
|
||||
background: rgba(7, 24, 43, 0.42);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.lang-switch {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
padding: 3px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 999px;
|
||||
background: rgba(7, 24, 43, 0.42);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.site-nav .lang-switch a {
|
||||
padding: 6px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.site-nav .lang-switch a[aria-current="page"] {
|
||||
color: #04111f;
|
||||
background: linear-gradient(135deg, var(--frost), var(--sky));
|
||||
}
|
||||
|
||||
main {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
width: min(1180px, 100%);
|
||||
margin: 0 auto;
|
||||
padding: 0 clamp(20px, 5vw, 64px);
|
||||
}
|
||||
|
||||
.hero {
|
||||
min-height: 92vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
padding: 150px 0 80px;
|
||||
}
|
||||
|
||||
.eyebrow,
|
||||
.section-kicker {
|
||||
margin: 0 0 22px;
|
||||
color: var(--sky);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.28em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.eyebrow::before {
|
||||
content: "";
|
||||
display: block;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: var(--sky);
|
||||
box-shadow: 0 0 18px rgba(125, 211, 252, 0.9);
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0 0 -0.24em;
|
||||
font-family: "Playfair Display", Georgia, serif;
|
||||
font-size: clamp(2.9rem, 13vw, 9.5rem);
|
||||
font-weight: 600;
|
||||
line-height: 0.88;
|
||||
padding-bottom: 0.28em;
|
||||
letter-spacing: -0.045em;
|
||||
background: linear-gradient(180deg, #ffffff 0%, var(--ice) 48%, var(--sky) 100%);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
filter: drop-shadow(0 22px 54px rgba(56, 189, 248, 0.22));
|
||||
}
|
||||
|
||||
.lede {
|
||||
max-width: 650px;
|
||||
margin: 30px auto 0;
|
||||
color: var(--muted);
|
||||
font-size: clamp(1.02rem, 1.8vw, 1.22rem);
|
||||
font-weight: 400;
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
margin-top: 34px;
|
||||
}
|
||||
|
||||
.button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
padding: 14px 24px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid transparent;
|
||||
text-decoration: none;
|
||||
font-size: 0.94rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.01em;
|
||||
transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.button-primary {
|
||||
color: #04111f;
|
||||
background: linear-gradient(135deg, var(--frost), var(--sky) 48%, var(--blue));
|
||||
box-shadow: 0 14px 38px rgba(56, 189, 248, 0.26);
|
||||
}
|
||||
|
||||
.button-primary:hover {
|
||||
box-shadow: 0 20px 48px rgba(56, 189, 248, 0.36);
|
||||
}
|
||||
|
||||
.button-ghost {
|
||||
color: var(--text);
|
||||
border-color: var(--line);
|
||||
background: rgba(7, 24, 43, 0.38);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.button-ghost:hover {
|
||||
background: rgba(201, 240, 255, 0.09);
|
||||
}
|
||||
|
||||
.hero-meta {
|
||||
margin-top: 26px;
|
||||
color: var(--muted);
|
||||
font-size: 0.82rem;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: 92px 0;
|
||||
scroll-margin-top: 80px;
|
||||
}
|
||||
|
||||
.section h2 {
|
||||
margin: 0;
|
||||
font-family: "Playfair Display", Georgia, serif;
|
||||
font-size: clamp(2.2rem, 4.6vw, 3.7rem);
|
||||
font-weight: 500;
|
||||
line-height: 1.08;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
|
||||
.section-lede {
|
||||
max-width: 680px;
|
||||
margin: 18px auto 0;
|
||||
color: var(--muted);
|
||||
font-size: 1.02rem;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.centered {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.feature-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
margin-top: 42px;
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
padding: 26px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: var(--glass);
|
||||
box-shadow: var(--shadow);
|
||||
backdrop-filter: blur(20px);
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin-bottom: 20px;
|
||||
border: 1px solid rgba(201, 240, 255, 0.28);
|
||||
border-radius: 50%;
|
||||
color: var(--ice);
|
||||
font-size: 1.25rem;
|
||||
background: radial-gradient(circle at 30% 20%, rgba(201, 240, 255, 0.22), transparent 60%);
|
||||
}
|
||||
|
||||
.feature-card h3 {
|
||||
margin: 0 0 10px;
|
||||
font-size: 1.02rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.feature-card p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.68;
|
||||
}
|
||||
|
||||
.downloads {
|
||||
padding-top: 70px;
|
||||
}
|
||||
|
||||
.download-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
max-width: 920px;
|
||||
margin: 44px auto 0;
|
||||
}
|
||||
|
||||
.download-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 34px 30px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: var(--glass-strong);
|
||||
box-shadow: var(--shadow);
|
||||
backdrop-filter: blur(24px);
|
||||
}
|
||||
|
||||
.os-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 84px;
|
||||
padding: 7px 13px;
|
||||
border: 1px solid rgba(201, 240, 255, 0.26);
|
||||
border-radius: 999px;
|
||||
color: var(--ice);
|
||||
font-size: 0.68rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.16em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.download-card h3 {
|
||||
margin: 18px 0 8px;
|
||||
font-size: 1.45rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.download-card > p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
.download-card .button {
|
||||
width: 100%;
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.download-card .button span {
|
||||
font-weight: 600;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.sub-link {
|
||||
display: inline-block;
|
||||
margin-top: 14px;
|
||||
color: var(--ice);
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
text-decoration: underline;
|
||||
text-decoration-color: rgba(201, 240, 255, 0.32);
|
||||
text-underline-offset: 4px;
|
||||
}
|
||||
|
||||
.hint {
|
||||
margin-top: 20px !important;
|
||||
color: rgba(224, 244, 255, 0.54) !important;
|
||||
font-size: 0.78rem !important;
|
||||
line-height: 1.6 !important;
|
||||
}
|
||||
|
||||
.download-note {
|
||||
max-width: 720px;
|
||||
margin: 26px auto 0;
|
||||
color: rgba(224, 244, 255, 0.5);
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.6;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.notes-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
margin-top: 36px;
|
||||
}
|
||||
|
||||
.note-card {
|
||||
padding: 26px;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.note-card h3 {
|
||||
margin: 0 0 9px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.note-card p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.66;
|
||||
}
|
||||
|
||||
.release-list {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
max-width: 860px;
|
||||
margin: 36px auto 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.release-card {
|
||||
padding: 24px 26px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: var(--glass);
|
||||
backdrop-filter: blur(20px);
|
||||
}
|
||||
|
||||
.release-head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.release-version {
|
||||
font-weight: 800;
|
||||
color: var(--ice);
|
||||
}
|
||||
|
||||
.release-date {
|
||||
color: var(--muted);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.release-badge {
|
||||
margin-left: auto;
|
||||
padding: 3px 10px;
|
||||
border: 1px solid rgba(201, 240, 255, 0.28);
|
||||
border-radius: 999px;
|
||||
color: var(--ice);
|
||||
font-size: 0.68rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.release-card ul {
|
||||
margin: 0;
|
||||
padding-left: 18px;
|
||||
color: var(--muted);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.release-card li {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.release-card li:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
width: min(1180px, 100%);
|
||||
margin: 30px auto 0;
|
||||
padding: 30px clamp(20px, 5vw, 64px) 42px;
|
||||
border-top: 1px solid var(--line);
|
||||
color: var(--muted);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.site-footer a {
|
||||
color: var(--muted);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.site-footer a:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
@keyframes aurora {
|
||||
from { transform: translate3d(-2%, -1%, 0) scale(1); }
|
||||
to { transform: translate3d(2%, 2%, 0) scale(1.06); }
|
||||
}
|
||||
|
||||
@keyframes trailDash {
|
||||
to { stroke-dashoffset: -260; }
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.feature-grid,
|
||||
.notes-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.download-grid {
|
||||
grid-template-columns: 1fr;
|
||||
max-width: 560px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.site-header {
|
||||
padding: 16px 18px;
|
||||
}
|
||||
|
||||
.site-nav > a:not(.nav-back) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
min-height: 88vh;
|
||||
padding-top: 126px;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: 68px 0;
|
||||
}
|
||||
|
||||
.feature-grid,
|
||||
.notes-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.download-card {
|
||||
padding: 28px 22px;
|
||||
}
|
||||
|
||||
.bg-video {
|
||||
opacity: 0.42;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.001ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.001ms !important;
|
||||
}
|
||||
}
|
||||
121
web/bootstrap.php
Normal file
121
web/bootstrap.php
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
<?php
|
||||
// Sprachwahl der Rinkplanner-Website.
|
||||
//
|
||||
// Die Sprache kommt aus Accept-Language (der User-Agent enthält keine
|
||||
// Sprachinformation). Reihenfolge der Entscheidung:
|
||||
// 1. ?lang=de|en – explizite Wahl, wird als Cookie gespeichert
|
||||
// 2. Cookie lang – frühere Wahl des Besuchers
|
||||
// 3. Accept-Language
|
||||
// 4. DEFAULT_LANG
|
||||
//
|
||||
// /de/ und /en/ sind eigenständige URLs. "/" leitet nur weiter.
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
const SUPPORTED_LANGS = ['de', 'en'];
|
||||
const DEFAULT_LANG = 'de';
|
||||
const LANG_COOKIE = 'lang';
|
||||
const COOKIE_LIFETIME = 365 * 86400;
|
||||
|
||||
/** "de-DE", "EN", "de_AT" → "de"; unbekannte Sprachen → null. */
|
||||
function normalize_lang(string $value): ?string
|
||||
{
|
||||
$primary = substr(strtolower(trim($value)), 0, 2);
|
||||
return in_array($primary, SUPPORTED_LANGS, true) ? $primary : null;
|
||||
}
|
||||
|
||||
function cookie_lang(): ?string
|
||||
{
|
||||
$raw = $_COOKIE[LANG_COOKIE] ?? null;
|
||||
return is_string($raw) ? normalize_lang($raw) : null;
|
||||
}
|
||||
|
||||
function set_lang_cookie(string $lang): void
|
||||
{
|
||||
if (headers_sent()) {
|
||||
return;
|
||||
}
|
||||
$https = ($_SERVER['HTTPS'] ?? '') !== '' && ($_SERVER['HTTPS'] ?? '') !== 'off';
|
||||
setcookie(LANG_COOKIE, $lang, [
|
||||
'expires' => time() + COOKIE_LIFETIME,
|
||||
'path' => '/',
|
||||
'secure' => $https,
|
||||
'httponly' => false,
|
||||
'samesite' => 'Lax',
|
||||
]);
|
||||
}
|
||||
|
||||
/** Beste unterstützte Sprache aus dem Accept-Language-Header, q-Werte beachtet. */
|
||||
function accept_language(): ?string
|
||||
{
|
||||
$header = $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? '';
|
||||
if (!is_string($header) || trim($header) === '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
$candidates = [];
|
||||
foreach (explode(',', $header) as $position => $entry) {
|
||||
$parts = explode(';', trim($entry));
|
||||
$lang = normalize_lang($parts[0]);
|
||||
if ($lang === null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$quality = 1.0;
|
||||
foreach (array_slice($parts, 1) as $parameter) {
|
||||
if (preg_match('/^\s*q\s*=\s*([0-9.]+)\s*$/i', $parameter, $match) === 1) {
|
||||
$quality = (float) $match[1];
|
||||
}
|
||||
}
|
||||
if ($quality <= 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Pro Sprache zählt der beste Treffer; bei Gleichstand gewinnt die
|
||||
// Reihenfolge im Header.
|
||||
if (!isset($candidates[$lang]) || $quality > $candidates[$lang][0]) {
|
||||
$candidates[$lang] = [$quality, $position];
|
||||
}
|
||||
}
|
||||
|
||||
if ($candidates === []) {
|
||||
return null;
|
||||
}
|
||||
|
||||
uasort($candidates, static fn (array $a, array $b): int => $b[0] <=> $a[0] ?: $a[1] <=> $b[1]);
|
||||
return (string) array_key_first($candidates);
|
||||
}
|
||||
|
||||
function redirect_lang(string $lang): never
|
||||
{
|
||||
header('Vary: Accept-Language, Cookie');
|
||||
header('Location: /' . $lang . '/', true, 302);
|
||||
exit;
|
||||
}
|
||||
|
||||
/** Explizite Sprachwahl aus der URL, z. B. /de/?lang=en. */
|
||||
function requested_lang(): ?string
|
||||
{
|
||||
$raw = $_GET['lang'] ?? null;
|
||||
return is_string($raw) ? normalize_lang($raw) : null;
|
||||
}
|
||||
|
||||
function render_page(string $lang): never
|
||||
{
|
||||
$requested = requested_lang();
|
||||
if ($requested !== null && $requested !== $lang) {
|
||||
set_lang_cookie($requested);
|
||||
redirect_lang($requested);
|
||||
}
|
||||
if ($requested === $lang) {
|
||||
set_lang_cookie($lang);
|
||||
}
|
||||
|
||||
$strings = require __DIR__ . '/i18n.php';
|
||||
$t = $strings[$lang];
|
||||
$alt = $lang === 'de' ? 'en' : 'de';
|
||||
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
require __DIR__ . '/template.php';
|
||||
exit;
|
||||
}
|
||||
6
web/de/index.php
Normal file
6
web/de/index.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
require __DIR__ . '/../bootstrap.php';
|
||||
|
||||
render_page('de');
|
||||
6
web/en/index.php
Normal file
6
web/en/index.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
require __DIR__ . '/../bootstrap.php';
|
||||
|
||||
render_page('en');
|
||||
176
web/i18n.php
Normal file
176
web/i18n.php
Normal file
|
|
@ -0,0 +1,176 @@
|
|||
<?php
|
||||
// Alle Texte der Rinkplanner-Website. Beide Sprachen müssen dieselben
|
||||
// Schlüssel haben; tools/check_web.sh prüft das.
|
||||
//
|
||||
// HTML ist erlaubt (z. B. <code>), die Inhalte stammen ausschließlich aus
|
||||
// dieser Datei und werden unverändert ausgegeben.
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
'de' => [
|
||||
'meta.title' => 'Rinkplanner – Kürplaner für Eiskunstlauf',
|
||||
'meta.description' => 'Rinkplanner: Der Kürplaner für Eiskunstlauf. Elemente setzen, Timings planen, 3D-Vorschau und Cloud-Sync. Test-Builds für macOS und Windows.',
|
||||
|
||||
'nav.label' => 'Seitennavigation',
|
||||
'nav.features' => 'Funktionen',
|
||||
'nav.downloads' => 'Downloads',
|
||||
'nav.news' => 'Was ist neu',
|
||||
'nav.home' => 'Startseite',
|
||||
|
||||
'hero.eyebrow' => 'Eiskunstlauf · Kürplanung',
|
||||
'hero.lede' => 'Von der ersten Idee bis zur fertigen Kür: Elemente platzieren, Timings planen, Sprungkombinationen prüfen und die Kür auf dem Tablet oder Desktop zum Leben erwecken.',
|
||||
'hero.cta_download' => 'Jetzt herunterladen',
|
||||
'hero.cta_features' => 'Funktionen ansehen',
|
||||
'hero.meta' => 'Kostenloser Test-Build · macOS & Windows · 12.11.2026',
|
||||
|
||||
'features.kicker' => 'Alles für die Kür',
|
||||
'features.title' => 'Dein Programm. Deine Linien.',
|
||||
'features.lede' => 'Rinkplanner verbindet Zeichnung, ISU-Elemente und Timing in einer ruhigen Oberfläche – für die Planung am Schreibtisch und die Abnahme auf dem Eis.',
|
||||
|
||||
'feature.editor.title' => 'Kür-Editor',
|
||||
'feature.editor.body' => 'Linien, Bögen und Sections frei zeichnen. Start, Richtung, Kante und Tiefe direkt am Segment bearbeiten.',
|
||||
'feature.elements.title' => 'ISU-Elemente',
|
||||
'feature.elements.body' => 'Sprünge, Pirouetten, Sequenzen und Sprungkombinationen mit Kürzel, Level und Standzeit planen.',
|
||||
'feature.preview.title' => '3D-Vorschau',
|
||||
'feature.preview.body' => 'Die geplante Kür als animierte Vorschau erleben – mit Läufer, Kufenspur und Kameraansicht.',
|
||||
'feature.sync.title' => 'Cloud-Sync',
|
||||
'feature.sync.body' => 'Kürdateien und Musik über das eigene Dropbox-Konto zwischen Desktop und Tablet abgleichen.',
|
||||
'feature.export.title' => 'Export',
|
||||
'feature.export.body' => 'Übersichtliche PDF- und SVG-Blätter für Training, Wettkampf und die Absprache mit dem Trainer.',
|
||||
'feature.tablet.title' => 'Für das Tablet',
|
||||
'feature.tablet.body' => 'Große Touch-Ziele, Zwei-Finger-Zoom und ein Layout, das auch auf dem Eis gut lesbar bleibt.',
|
||||
|
||||
'downloads.kicker' => 'Test-Build',
|
||||
'downloads.title' => 'Rinkplanner herunterladen',
|
||||
'downloads.lede' => 'macOS- und Windows-Installer vom 12.11.2026. Wähle deine Plattform – die Downloads sind direkt einsatzbereit.',
|
||||
'downloads.mac.title' => 'Für den Mac',
|
||||
'downloads.mac.body' => 'Universal Binary für Apple Silicon (macOS 13+) und Intel (macOS 11+).',
|
||||
'downloads.mac.cta' => 'Installer herunterladen',
|
||||
'downloads.mac.hint' => 'DMG öffnen und <code>Rinkplanner.app</code> auf „Programme“ ziehen. Die App ist ad-hoc signiert, nicht notarisiert – beim ersten Start ggf. Rechtsklick → Öffnen, danach genügt ein Doppelklick.',
|
||||
'downloads.windows.title' => 'Für Windows',
|
||||
'downloads.windows.body' => 'Für Windows 10 und Windows 11 (64-Bit). Installation ohne Administratorrechte.',
|
||||
'downloads.windows.cta' => 'Installer herunterladen',
|
||||
'downloads.windows.hint' => 'Installer ausführen und den Anweisungen folgen – inklusive Startmenü-Verknüpfung und Deinstallation. Beim Start kann Windows SmartScreen warnen: „Weitere Informationen“ → „Trotzdem ausführen“.',
|
||||
'downloads.note' => 'Die Builds sind Testversionen und werden regelmäßig aktualisiert. Feedback und Fehlerberichte sind willkommen.',
|
||||
|
||||
'news.kicker' => 'Was ist neu',
|
||||
'news.title' => 'Letzte Änderungen',
|
||||
'news.lede' => 'Die Test-Builds wachsen in kleinen Schritten. Hier steht, was zuletzt dazugekommen ist.',
|
||||
|
||||
'release.0.version' => '0.2.1',
|
||||
'release.0.date' => '12.11.2026 · macOS und Windows',
|
||||
'release.0.badge' => 'Aktuell',
|
||||
'release.0.item.0' => 'Neue Läuferin im Kürkleid, mit deutlich saubererem Gesicht und feineren Konturen.',
|
||||
'release.0.item.1' => '3D-Bande mit Sockel und Fugen – Eisfläche und Bande sind jetzt klar getrennt.',
|
||||
'release.0.item.2' => 'Bei einer Step Sequence werden beim Auswählen alle zugehörigen Teilstrecken mitmarkiert.',
|
||||
'release.0.item.3' => 'Deutlich kleinerer Download: 29 statt 35 MB (Windows) und 65 statt 68 MB (macOS), weil alte Modellvarianten entfernt wurden.',
|
||||
|
||||
'release.1.version' => '0.2.0',
|
||||
'release.1.date' => '11.11.2026 · macOS und Windows',
|
||||
'release.1.item.0' => 'Die App prüft beim Start und über das Datei-Menü, ob eine neue Version bereitsteht.',
|
||||
'release.1.item.1' => 'Neuer Windows-Installer (ohne Administratorrechte) und macOS-Installer als DMG.',
|
||||
'release.1.item.2' => 'Sport-Theme, zentrale Küren-Verwaltung und automatische Auflösung von Sync-Konflikten.',
|
||||
|
||||
'release.2.version' => '0.1.0',
|
||||
'release.2.date' => '10.11.2026 · macOS und Windows',
|
||||
'release.2.item.0' => 'Erste verteilte Test-Builds als DMG und Setup-EXE.',
|
||||
'release.2.item.1' => 'Musikdateien werden mit der Kür synchronisiert; M4A/AAC läuft auf macOS über WAV.',
|
||||
|
||||
'rights.kicker' => 'Gut zu wissen',
|
||||
'rights.title' => 'Deine Daten bleiben bei dir.',
|
||||
'rights.cloud.title' => 'Eigenes Cloud-Konto',
|
||||
'rights.cloud.body' => 'Der Sync läuft über dein persönliches Dropbox-Konto. Es gibt keinen zentralen Rinkplanner-Speicher.',
|
||||
'rights.music.title' => 'Musik in deiner Hand',
|
||||
'rights.music.body' => 'Musikdateien liegen im eigenen Cloud-Ordner. Für die Nutzungsrechte an der Musik bist du selbst verantwortlich.',
|
||||
'rights.care.title' => 'Mit Liebe zum Detail',
|
||||
'rights.care.body' => 'Entwickelt für Eiskunstlauf-Trainer, Läuferinnen und Läufer, die ihre Kür strukturiert planen und teilen möchten.',
|
||||
|
||||
'footer.copyright' => '© 2026 programmschmiede.de',
|
||||
'footer.home' => 'Zur Startseite',
|
||||
'footer.contact' => 'Kontakt',
|
||||
],
|
||||
|
||||
'en' => [
|
||||
'meta.title' => 'Rinkplanner – programme planner for figure skating',
|
||||
'meta.description' => 'Rinkplanner: the programme planner for figure skating. Place elements, plan timings, 3D preview and cloud sync. Test builds for macOS and Windows.',
|
||||
|
||||
'nav.label' => 'Site navigation',
|
||||
'nav.features' => 'Features',
|
||||
'nav.downloads' => 'Downloads',
|
||||
'nav.news' => 'What’s new',
|
||||
'nav.home' => 'Home',
|
||||
|
||||
'hero.eyebrow' => 'Figure skating · Programme planning',
|
||||
'hero.lede' => 'From the first idea to the finished programme: place elements, plan timings, check jump combinations and bring your programme to life on a tablet or desktop.',
|
||||
'hero.cta_download' => 'Download now',
|
||||
'hero.cta_features' => 'See the features',
|
||||
'hero.meta' => 'Free test build · macOS & Windows · 12 Nov 2026',
|
||||
|
||||
'features.kicker' => 'Everything for your programme',
|
||||
'features.title' => 'Your programme. Your lines.',
|
||||
'features.lede' => 'Rinkplanner brings drawing, ISU elements and timing together in one calm interface – for planning at your desk and for sign-off on the ice.',
|
||||
|
||||
'feature.editor.title' => 'Programme editor',
|
||||
'feature.editor.body' => 'Draw lines, curves and sections freely. Edit start, direction, edge and depth right on the segment.',
|
||||
'feature.elements.title' => 'ISU elements',
|
||||
'feature.elements.body' => 'Plan jumps, spins, sequences and jump combinations with abbreviation, level and hold time.',
|
||||
'feature.preview.title' => '3D preview',
|
||||
'feature.preview.body' => 'Watch the planned programme as an animated preview – with skater, blade trail and camera view.',
|
||||
'feature.sync.title' => 'Cloud sync',
|
||||
'feature.sync.body' => 'Sync programme files and music between desktop and tablet through your own Dropbox account.',
|
||||
'feature.export.title' => 'Export',
|
||||
'feature.export.body' => 'Clear PDF and SVG sheets for training, competition and for talking things through with your coach.',
|
||||
'feature.tablet.title' => 'Built for tablets',
|
||||
'feature.tablet.body' => 'Large touch targets, two-finger zoom and a layout that stays readable on the ice.',
|
||||
|
||||
'downloads.kicker' => 'Test build',
|
||||
'downloads.title' => 'Download Rinkplanner',
|
||||
'downloads.lede' => 'macOS and Windows installers from 12 Nov 2026. Pick your platform – the downloads are ready to use.',
|
||||
'downloads.mac.title' => 'For your Mac',
|
||||
'downloads.mac.body' => 'Universal binary for Apple Silicon (macOS 13+) and Intel (macOS 11+).',
|
||||
'downloads.mac.cta' => 'Download installer',
|
||||
'downloads.mac.hint' => 'Open the DMG and drag <code>Rinkplanner.app</code> into Applications. The app is ad-hoc signed, not notarised – on first launch you may need to right-click → Open; after that a double-click is enough.',
|
||||
'downloads.windows.title' => 'For Windows',
|
||||
'downloads.windows.body' => 'For Windows 10 and Windows 11 (64-bit). Installs without administrator rights.',
|
||||
'downloads.windows.cta' => 'Download installer',
|
||||
'downloads.windows.hint' => 'Run the installer and follow the steps – including the Start menu shortcut and uninstaller. On launch, Windows SmartScreen may warn you: “More info” → “Run anyway”.',
|
||||
'downloads.note' => 'These builds are test versions and are updated regularly. Feedback and bug reports are welcome.',
|
||||
|
||||
'news.kicker' => 'What’s new',
|
||||
'news.title' => 'Recent changes',
|
||||
'news.lede' => 'The test builds grow in small steps. Here is what was added most recently.',
|
||||
|
||||
'release.0.version' => '0.2.1',
|
||||
'release.0.date' => '12 Nov 2026 · macOS and Windows',
|
||||
'release.0.badge' => 'Current',
|
||||
'release.0.item.0' => 'A new skater in a competition dress, with a noticeably cleaner face and finer contours.',
|
||||
'release.0.item.1' => '3D boards with plinth and joints – the ice surface and the boards are now clearly separated.',
|
||||
'release.0.item.2' => 'When you select a step sequence, all of its segments are highlighted as well.',
|
||||
'release.0.item.3' => 'A much smaller download: 29 instead of 35 MB (Windows) and 65 instead of 68 MB (macOS), because old model variants were removed.',
|
||||
|
||||
'release.1.version' => '0.2.0',
|
||||
'release.1.date' => '11 Nov 2026 · macOS and Windows',
|
||||
'release.1.item.0' => 'The app checks at startup and from the File menu whether a new version is available.',
|
||||
'release.1.item.1' => 'New Windows installer (no administrator rights) and a macOS installer as a DMG.',
|
||||
'release.1.item.2' => 'Sports theme, central programme management and automatic resolution of sync conflicts.',
|
||||
|
||||
'release.2.version' => '0.1.0',
|
||||
'release.2.date' => '10 Nov 2026 · macOS and Windows',
|
||||
'release.2.item.0' => 'First distributed test builds as a DMG and a setup EXE.',
|
||||
'release.2.item.1' => 'Music files are synced with the programme; M4A/AAC plays via WAV on macOS.',
|
||||
|
||||
'rights.kicker' => 'Good to know',
|
||||
'rights.title' => 'Your data stays with you.',
|
||||
'rights.cloud.title' => 'Your own cloud account',
|
||||
'rights.cloud.body' => 'Sync runs through your personal Dropbox account. There is no central Rinkplanner storage.',
|
||||
'rights.music.title' => 'Music in your hands',
|
||||
'rights.music.body' => 'Music files live in your own cloud folder. You are responsible for the rights to use the music.',
|
||||
'rights.care.title' => 'Made with care',
|
||||
'rights.care.body' => 'Built for figure skating coaches and skaters who want to plan and share their programme in a structured way.',
|
||||
|
||||
'footer.copyright' => '© 2026 programmschmiede.de',
|
||||
'footer.home' => 'Back to the home page',
|
||||
'footer.contact' => 'Contact',
|
||||
],
|
||||
];
|
||||
17
web/index.html
Normal file
17
web/index.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Rinkplanner</title>
|
||||
<link rel="canonical" href="https://rinkplanner.programmschmiede.de/" />
|
||||
<!-- Alte Adresse aus der Zeit vor der Sprachweiche. Der Host erlaubt weder
|
||||
mod_alias noch mod_rewrite, deshalb leitet diese Seite im Browser weiter.
|
||||
Ziel ist /de/ statt /, damit hier keine Weiterleitungsschleife entsteht,
|
||||
falls index.php einmal fehlt. -->
|
||||
<meta http-equiv="refresh" content="0; url=/de/" />
|
||||
<script>window.location.replace("/de/" + window.location.search);</script>
|
||||
</head>
|
||||
<body>
|
||||
<p><a href="/de/">Rinkplanner – zur Startseite</a></p>
|
||||
</body>
|
||||
</html>
|
||||
14
web/index.php
Normal file
14
web/index.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
// Einstiegspunkt: erkennt die Sprache und leitet auf /de/ oder /en/ weiter.
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require __DIR__ . '/bootstrap.php';
|
||||
|
||||
$requested = requested_lang();
|
||||
if ($requested !== null) {
|
||||
set_lang_cookie($requested);
|
||||
redirect_lang($requested);
|
||||
}
|
||||
|
||||
redirect_lang(cookie_lang() ?? accept_language() ?? DEFAULT_LANG);
|
||||
234
web/template.php
Normal file
234
web/template.php
Normal file
|
|
@ -0,0 +1,234 @@
|
|||
<?php
|
||||
// Gemeinsames Markup für /de/ und /en/. Texte kommen aus i18n.php.
|
||||
// Erwartet: $lang ('de'|'en'), $alt (andere Sprache), $t (Texte dieser Sprache).
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$site = 'https://rinkplanner.programmschmiede.de';
|
||||
|
||||
$features = [
|
||||
['icon' => '✎', 'title' => 'feature.editor.title', 'body' => 'feature.editor.body'],
|
||||
['icon' => '✦', 'title' => 'feature.elements.title', 'body' => 'feature.elements.body'],
|
||||
['icon' => '▶', 'title' => 'feature.preview.title', 'body' => 'feature.preview.body'],
|
||||
['icon' => '☁', 'title' => 'feature.sync.title', 'body' => 'feature.sync.body'],
|
||||
['icon' => '⇩', 'title' => 'feature.export.title', 'body' => 'feature.export.body'],
|
||||
['icon' => '★', 'title' => 'feature.tablet.title', 'body' => 'feature.tablet.body'],
|
||||
];
|
||||
|
||||
$releases = [];
|
||||
for ($i = 0; isset($t["release.$i.version"]); $i++) {
|
||||
$items = [];
|
||||
for ($j = 0; isset($t["release.$i.item.$j"]); $j++) {
|
||||
$items[] = $t["release.$i.item.$j"];
|
||||
}
|
||||
$releases[] = [
|
||||
'version' => $t["release.$i.version"],
|
||||
'date' => $t["release.$i.date"],
|
||||
'badge' => $t["release.$i.badge"] ?? null,
|
||||
'items' => $items,
|
||||
];
|
||||
}
|
||||
|
||||
$langLabels = ['de' => 'DE', 'en' => 'EN'];
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= $lang ?>">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#050d19" />
|
||||
<title><?= $t['meta.title'] ?></title>
|
||||
<meta name="description" content="<?= $t['meta.description'] ?>" />
|
||||
<link rel="canonical" href="<?= $site ?>/<?= $lang ?>/" />
|
||||
<link rel="alternate" hreflang="de" href="<?= $site ?>/de/" />
|
||||
<link rel="alternate" hreflang="en" href="<?= $site ?>/en/" />
|
||||
<link rel="alternate" hreflang="x-default" href="<?= $site ?>/" />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<link rel="stylesheet" href="/assets/site.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg-media" aria-hidden="true">
|
||||
<video class="bg-video" autoplay muted loop playsinline preload="auto" poster="/media/hero-poster.jpg">
|
||||
<source src="/media/hero.mp4" type="video/mp4" />
|
||||
</video>
|
||||
<div class="bg-shade"></div>
|
||||
<div class="bg-aurora"></div>
|
||||
</div>
|
||||
|
||||
<div class="trail" aria-hidden="true">
|
||||
<svg viewBox="0 0 1440 900" preserveAspectRatio="none">
|
||||
<path class="trail-line one" d="M-80,720 C220,540 350,780 620,630 S980,340 1180,470 S1320,690 1520,540" />
|
||||
<path class="trail-line two" d="M-60,300 C180,180 360,400 600,250 S980,120 1200,260 S1380,430 1520,300" />
|
||||
<path class="trail-line three" d="M-40,820 C300,700 520,860 760,700 S1100,560 1260,660 S1400,780 1520,700" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="grain" aria-hidden="true"></div>
|
||||
|
||||
<header class="site-header">
|
||||
<a class="brand" href="https://programmschmiede.de/">programmschmiede<span>.de</span></a>
|
||||
<nav class="site-nav" aria-label="<?= $t['nav.label'] ?>">
|
||||
<a href="#features"><?= $t['nav.features'] ?></a>
|
||||
<a href="#downloads"><?= $t['nav.downloads'] ?></a>
|
||||
<a href="#neu"><?= $t['nav.news'] ?></a>
|
||||
<a class="nav-back" href="https://programmschmiede.de/"><?= $t['nav.home'] ?></a>
|
||||
<div class="lang-switch">
|
||||
<?php foreach ($langLabels as $code => $label): ?>
|
||||
<a href="/index.php?lang=<?= $code ?>" lang="<?= $code ?>" hreflang="<?= $code ?>"<?= $code === $lang ? ' aria-current="page"' : '' ?>><?= $label ?></a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="hero">
|
||||
<p class="eyebrow"><?= $t['hero.eyebrow'] ?></p>
|
||||
<h1>Rinkplanner</h1>
|
||||
<p class="lede">
|
||||
<?= $t['hero.lede'] ?>
|
||||
</p>
|
||||
<div class="hero-actions">
|
||||
<a class="button button-primary" href="#downloads"><?= $t['hero.cta_download'] ?></a>
|
||||
<a class="button button-ghost" href="#features"><?= $t['hero.cta_features'] ?></a>
|
||||
</div>
|
||||
<p class="hero-meta"><?= $t['hero.meta'] ?></p>
|
||||
</section>
|
||||
|
||||
<section id="features" class="section">
|
||||
<div class="centered">
|
||||
<p class="section-kicker"><?= $t['features.kicker'] ?></p>
|
||||
<h2><?= $t['features.title'] ?></h2>
|
||||
<p class="section-lede">
|
||||
<?= $t['features.lede'] ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="feature-grid">
|
||||
<?php foreach ($features as $feature): ?>
|
||||
<article class="feature-card">
|
||||
<div class="feature-icon" aria-hidden="true"><?= $feature['icon'] ?></div>
|
||||
<h3><?= $t[$feature['title']] ?></h3>
|
||||
<p><?= $t[$feature['body']] ?></p>
|
||||
</article>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="downloads" class="section downloads">
|
||||
<div class="centered">
|
||||
<p class="section-kicker"><?= $t['downloads.kicker'] ?></p>
|
||||
<h2><?= $t['downloads.title'] ?></h2>
|
||||
<p class="section-lede">
|
||||
<?= $t['downloads.lede'] ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="download-grid">
|
||||
<article class="download-card">
|
||||
<span class="os-badge">macOS</span>
|
||||
<h3><?= $t['downloads.mac.title'] ?></h3>
|
||||
<p><?= $t['downloads.mac.body'] ?></p>
|
||||
<a class="button button-primary" href="https://programmschmiede.de/rinkplanner/download/rinkplanner-setup.dmg" download>
|
||||
<?= $t['downloads.mac.cta'] ?> <span>65 MB</span>
|
||||
</a>
|
||||
<p class="hint">
|
||||
<?= $t['downloads.mac.hint'] ?>
|
||||
</p>
|
||||
</article>
|
||||
|
||||
<article class="download-card">
|
||||
<span class="os-badge">Windows</span>
|
||||
<h3><?= $t['downloads.windows.title'] ?></h3>
|
||||
<p><?= $t['downloads.windows.body'] ?></p>
|
||||
<a class="button button-primary" href="https://programmschmiede.de/rinkplanner/download/rinkplanner-setup.exe" download>
|
||||
<?= $t['downloads.windows.cta'] ?> <span>29 MB</span>
|
||||
</a>
|
||||
<p class="hint">
|
||||
<?= $t['downloads.windows.hint'] ?>
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<p class="download-note">
|
||||
<?= $t['downloads.note'] ?>
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section id="neu" class="section">
|
||||
<div class="centered">
|
||||
<p class="section-kicker"><?= $t['news.kicker'] ?></p>
|
||||
<h2><?= $t['news.title'] ?></h2>
|
||||
<p class="section-lede">
|
||||
<?= $t['news.lede'] ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="release-list">
|
||||
<?php foreach ($releases as $release): ?>
|
||||
<article class="release-card">
|
||||
<div class="release-head">
|
||||
<span class="release-version"><?= $release['version'] ?></span>
|
||||
<span class="release-date"><?= $release['date'] ?></span>
|
||||
<?php if ($release['badge'] !== null): ?>
|
||||
<span class="release-badge"><?= $release['badge'] ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<ul>
|
||||
<?php foreach ($release['items'] as $item): ?>
|
||||
<li><?= $item ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</article>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="section">
|
||||
<div class="centered">
|
||||
<p class="section-kicker"><?= $t['rights.kicker'] ?></p>
|
||||
<h2><?= $t['rights.title'] ?></h2>
|
||||
</div>
|
||||
<div class="notes-grid">
|
||||
<article class="note-card">
|
||||
<h3><?= $t['rights.cloud.title'] ?></h3>
|
||||
<p><?= $t['rights.cloud.body'] ?></p>
|
||||
</article>
|
||||
<article class="note-card">
|
||||
<h3><?= $t['rights.music.title'] ?></h3>
|
||||
<p><?= $t['rights.music.body'] ?></p>
|
||||
</article>
|
||||
<article class="note-card">
|
||||
<h3><?= $t['rights.care.title'] ?></h3>
|
||||
<p><?= $t['rights.care.body'] ?></p>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer class="site-footer">
|
||||
<span><?= $t['footer.copyright'] ?></span>
|
||||
<a href="https://programmschmiede.de/"><?= $t['footer.home'] ?></a>
|
||||
<a href="mailto:kontakt@programmschmiede.de"><?= $t['footer.contact'] ?></a>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
(() => {
|
||||
const video = document.querySelector(".bg-video");
|
||||
if (!video) {
|
||||
return;
|
||||
}
|
||||
const reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)");
|
||||
const updateMotion = () => {
|
||||
if (reduceMotion.matches) {
|
||||
video.pause();
|
||||
} else {
|
||||
video.play().catch(() => {});
|
||||
}
|
||||
};
|
||||
video.addEventListener("error", () => document.body.classList.add("no-video"));
|
||||
if (reduceMotion.addEventListener) {
|
||||
reduceMotion.addEventListener("change", updateMotion);
|
||||
}
|
||||
updateMotion();
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue