feat: added languages

This commit is contained in:
2026-04-28 13:52:38 +02:00
parent d5d995c50d
commit 735b5fc206
19 changed files with 1300 additions and 592 deletions
+227
View File
@@ -43,6 +43,11 @@ html.no-js {
.hero-meta {
display: none;
}
.language-overlay,
.language-switcher {
display: none !important;
}
}
body,
@@ -1065,3 +1070,225 @@ hr {
justify-items: center;
}
}
.language-overlay {
position: fixed;
inset: 0;
z-index: 9999;
display: grid;
place-items: center;
padding: 1.25rem;
background:
radial-gradient(circle at top, rgba(239, 191, 157, 0.16), transparent 28%),
linear-gradient(180deg, rgba(4, 4, 6, 0.7), rgba(7, 7, 10, 0.9));
backdrop-filter: blur(14px);
}
.language-card {
display: grid;
gap: 1rem;
width: min(100%, 520px);
padding: clamp(1rem, 4vw, 1.35rem);
background:
radial-gradient(circle at top left, rgba(239, 191, 157, 0.16), transparent 26%),
linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(10, 10, 14, 0.62);
}
.language-card-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.75rem;
}
.language-copy {
display: grid;
gap: 0;
}
.language-card h2,
.language-card p {
margin: 0;
}
.language-copy h2 {
font-size: clamp(1.85rem, 4vw, 2.5rem);
line-height: 1;
letter-spacing: -0.04em;
}
.language-options {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.75rem;
}
.language-option {
position: relative;
display: grid;
gap: 0.45rem;
justify-items: center;
align-content: center;
min-height: 8.5rem;
padding: 1rem 0.9rem;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 20px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)), rgba(10, 10, 14, 0.34);
color: inherit;
text-align: center;
cursor: pointer;
transition:
transform var(--transition-fast),
border-color var(--transition-fast),
box-shadow var(--transition-fast),
background var(--transition-fast);
}
.language-option:hover {
transform: translateY(-2px);
border-color: rgba(255, 255, 255, 0.28);
box-shadow:
0 0 0 1px rgba(255, 255, 255, 0.1),
0 14px 28px rgba(0, 0, 0, 0.16);
}
.language-option-active {
border-color: rgba(239, 191, 157, 0.64);
background: linear-gradient(180deg, rgba(239, 191, 157, 0.14), rgba(255, 255, 255, 0.05)), rgba(10, 10, 14, 0.48);
box-shadow:
0 0 0 1px rgba(239, 191, 157, 0.22),
0 18px 34px rgba(0, 0, 0, 0.2);
}
.language-option strong {
font-size: 1.32rem;
line-height: 1.08;
letter-spacing: -0.03em;
}
.language-option-accent,
.language-switcher-tag {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 1.9rem;
padding: 0.18rem 0.7rem;
border-radius: 999px;
font-size: 0.76rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.language-option-accent {
color: var(--accent-strong);
background: rgba(239, 191, 157, 0.12);
border: 1px solid rgba(239, 191, 157, 0.24);
}
.language-close {
width: 2.8rem;
height: 2.8rem;
border: 1px solid var(--border-soft);
border-radius: 999px;
background: rgba(255, 255, 255, 0.04);
color: var(--text-primary);
font: inherit;
font-size: 1.4rem;
cursor: pointer;
transition:
transform var(--transition-fast),
border-color var(--transition-fast),
background var(--transition-fast);
}
.language-close:hover {
transform: translateY(-2px);
border-color: rgba(255, 255, 255, 0.42);
background: rgba(255, 255, 255, 0.08);
}
.language-switcher {
position: fixed;
right: 1rem;
top: 1rem;
z-index: 2000;
display: inline-flex;
align-items: center;
gap: 0.7rem;
min-height: 3.5rem;
padding: 0.55rem 0.8rem 0.55rem 0.55rem;
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 999px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)), rgba(12, 12, 16, 0.82);
color: var(--text-primary);
box-shadow: var(--shadow-soft);
backdrop-filter: blur(18px);
cursor: pointer;
transition:
transform var(--transition-fast),
border-color var(--transition-fast),
background var(--transition-fast);
}
.language-switcher:hover {
transform: translateY(-2px);
border-color: rgba(255, 255, 255, 0.52);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)), rgba(18, 18, 24, 0.9);
}
.language-switcher-tag {
min-width: 2.3rem;
color: #111214;
background: #f7f1ea;
}
.language-switcher-copy {
display: grid;
justify-items: start;
line-height: 1.1;
}
.language-switcher-copy strong {
font-size: 0.78rem;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.language-switcher-copy span {
color: var(--text-muted);
font-size: 0.9rem;
}
.app-content[aria-hidden='true'] {
user-select: none;
pointer-events: none;
}
@media (max-width: 700px) {
.language-card {
width: min(100%, 460px);
gap: 0.9rem;
padding: 0.95rem;
}
.language-card-header {
display: grid;
}
.language-options {
grid-template-columns: 1fr;
}
.language-copy h2 {
font-size: clamp(1.9rem, 9vw, 2.5rem);
}
.language-option {
min-height: auto;
}
.language-switcher {
right: 0.75rem;
top: 0.75rem;
}
}