feat: Add web localization
This commit is contained in:
+58
-1
@@ -60,6 +60,49 @@ textarea {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.language-switcher {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
z-index: 3;
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
padding: 6px;
|
||||
border: 1px solid rgba(115, 88, 58, 0.18);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 251, 244, 0.92);
|
||||
box-shadow: 0 12px 24px rgba(99, 73, 45, 0.08);
|
||||
}
|
||||
|
||||
.language-button {
|
||||
min-width: 52px;
|
||||
padding: 10px 12px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font-family: "IBM Plex Mono", monospace;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background 160ms ease,
|
||||
color 160ms ease,
|
||||
transform 160ms ease;
|
||||
}
|
||||
|
||||
.language-button:hover {
|
||||
transform: translateY(-1px);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.language-button.is-active {
|
||||
background: linear-gradient(180deg, var(--accent), var(--accent-strong));
|
||||
color: #fff8f2;
|
||||
box-shadow: 0 10px 20px rgba(202, 67, 27, 0.22);
|
||||
}
|
||||
|
||||
.page-noise {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
@@ -645,6 +688,10 @@ textarea {
|
||||
}
|
||||
|
||||
@media (max-width: 1080px) {
|
||||
.app-shell {
|
||||
padding-top: 88px;
|
||||
}
|
||||
|
||||
.hero,
|
||||
.layout {
|
||||
grid-template-columns: 1fr;
|
||||
@@ -661,10 +708,20 @@ textarea {
|
||||
.app-shell {
|
||||
width: calc(100% - 16px);
|
||||
margin: 8px auto;
|
||||
padding: 16px;
|
||||
padding: 84px 16px 16px;
|
||||
border-radius: 24px;
|
||||
}
|
||||
|
||||
.language-switcher {
|
||||
top: 14px;
|
||||
right: 14px;
|
||||
}
|
||||
|
||||
.language-button {
|
||||
min-width: 48px;
|
||||
padding: 9px 10px;
|
||||
}
|
||||
|
||||
.hero-mark {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user