feat: release toolbox portal 0.1.0

This commit is contained in:
2026-07-20 18:40:51 +02:00
commit 5d2e466ad6
55 changed files with 11127 additions and 0 deletions

814
src/styles.css Normal file
View File

@@ -0,0 +1,814 @@
:root {
color-scheme: light dark;
font-family: Inter, Avenir, 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
font-synthesis: none;
text-rendering: optimizeLegibility;
--bg: #f6f7fb;
--surface: #ffffff;
--surface-soft: #eff2f8;
--text: #17203b;
--muted: #667085;
--line: #dfe3ec;
--brand: #28366d;
--brand-hover: #1c2858;
--brand-soft: #e9edff;
--accent: #78d8ca;
--danger: #a63243;
--shadow: 0 16px 44px rgba(24, 34, 68, 0.08);
}
:root[data-theme='dark'] {
color-scheme: dark;
--bg: #0f1422;
--surface: #171d2d;
--surface-soft: #20283a;
--text: #edf1fb;
--muted: #a9b3ca;
--line: #303a50;
--brand: #a9b7ff;
--brand-hover: #c3ccff;
--brand-soft: #252f55;
--accent: #66cdbd;
--danger: #ff9dac;
--shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
@media (prefers-color-scheme: dark) {
:root[data-theme='system'] {
color-scheme: dark;
--bg: #0f1422;
--surface: #171d2d;
--surface-soft: #20283a;
--text: #edf1fb;
--muted: #a9b3ca;
--line: #303a50;
--brand: #a9b7ff;
--brand-hover: #c3ccff;
--brand-soft: #252f55;
--accent: #66cdbd;
--danger: #ff9dac;
--shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
}
* {
box-sizing: border-box;
}
html {
background: var(--bg);
scroll-behavior: smooth;
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
background:
radial-gradient(
circle at 8% 4%,
color-mix(in srgb, var(--accent) 13%, transparent) 0,
transparent 28rem
),
var(--bg);
color: var(--text);
}
button,
input,
select {
color: inherit;
font: inherit;
}
button,
a,
input,
select {
-webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
outline: 3px solid color-mix(in srgb, var(--accent) 70%, var(--brand));
outline-offset: 3px;
}
.site-shell {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.skip-link {
position: fixed;
z-index: 100;
top: 0.75rem;
left: 0.75rem;
padding: 0.7rem 1rem;
border-radius: 0.55rem;
background: var(--surface);
color: var(--text);
transform: translateY(-160%);
}
.skip-link:focus {
transform: translateY(0);
}
.site-header {
position: sticky;
z-index: 20;
top: 0;
border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
background: color-mix(in srgb, var(--bg) 88%, transparent);
backdrop-filter: blur(16px);
}
.header-inner,
main,
.site-footer {
width: min(1160px, calc(100% - 2.5rem));
margin-inline: auto;
}
.header-inner {
min-height: 74px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.brand {
display: inline-flex;
align-items: center;
gap: 0.65rem;
color: var(--text);
text-decoration: none;
}
.brand .logo {
color: var(--brand);
}
.brand > span {
display: grid;
line-height: 1.05;
}
.brand strong {
font-family: Inter, Avenir, 'Segoe UI', ui-sans-serif, sans-serif;
font-size: 1.03rem;
letter-spacing: -0.025em;
}
.brand small {
margin-top: 0.22rem;
color: var(--muted);
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.17em;
text-transform: uppercase;
}
.settings-button,
.state-card button,
.preferences-actions button {
border: 1px solid var(--line);
border-radius: 0.65rem;
background: var(--surface);
cursor: pointer;
font-weight: 600;
}
.settings-button {
padding: 0.62rem 0.82rem;
}
.settings-button:hover,
.state-card button:hover,
.preferences-actions button:hover {
border-color: var(--brand);
color: var(--brand);
}
main {
flex: 1;
}
.hero {
max-width: 750px;
padding: clamp(4.5rem, 9vw, 8.5rem) 0 clamp(3rem, 6vw, 5.2rem);
}
.eyebrow {
margin: 0 0 1rem;
color: var(--brand);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.hero h1 {
margin: 0;
font-family: Inter, Avenir, 'Segoe UI', ui-sans-serif, sans-serif;
font-size: clamp(2.65rem, 7vw, 5.65rem);
line-height: 0.98;
letter-spacing: -0.065em;
}
.hero h1 span {
color: var(--brand);
}
.hero-copy {
max-width: 575px;
margin: 1.75rem 0 0;
color: var(--muted);
font-size: clamp(1rem, 2vw, 1.18rem);
line-height: 1.7;
}
.tool-controls {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.search-field,
.category-field {
display: flex;
min-height: 46px;
align-items: center;
border: 1px solid var(--line);
border-radius: 0.75rem;
background: var(--surface);
}
.search-field {
width: min(360px, 100%);
padding: 0 0.85rem;
gap: 0.55rem;
}
.search-field > span {
color: var(--muted);
font-size: 1.35rem;
}
.search-field input,
.category-field select {
width: 100%;
border: 0;
outline: 0;
background: transparent;
}
.search-field input::placeholder {
color: var(--muted);
}
.category-field {
min-width: 175px;
padding: 0 0.65rem;
}
.category-field select {
cursor: pointer;
}
.hidden-toggle {
display: flex;
align-items: center;
gap: 0.45rem;
margin-left: auto;
color: var(--muted);
cursor: pointer;
font-size: 0.88rem;
}
.hidden-toggle input {
width: 1.05rem;
height: 1.05rem;
accent-color: var(--brand);
}
.app-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
gap: 1.1rem;
padding-bottom: 2rem;
}
.app-card {
min-height: 340px;
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid var(--line);
border-radius: 1.2rem;
background: var(--surface);
box-shadow: var(--shadow);
transition:
border-color 180ms ease,
transform 180ms ease,
box-shadow 180ms ease;
}
.app-card:hover {
border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
transform: translateY(-2px);
box-shadow: 0 20px 54px rgba(24, 34, 68, 0.13);
}
.app-card--hidden {
border-style: dashed;
opacity: 0.7;
}
.app-card__top {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding: 1.35rem 1.35rem 0;
}
.app-card__icon {
width: 52px;
height: 52px;
display: grid;
place-items: center;
overflow: hidden;
border-radius: 0.95rem;
background: var(--brand-soft);
color: var(--brand);
font-family: Inter, Avenir, 'Segoe UI', sans-serif;
font-size: 1.45rem;
font-weight: 700;
}
.app-card__icon img {
width: 100%;
height: 100%;
object-fit: contain;
}
.app-card__actions {
display: flex;
gap: 0.15rem;
}
.icon-button,
.close-button {
width: 32px;
height: 32px;
display: grid;
place-items: center;
border: 0;
border-radius: 50%;
background: transparent;
color: var(--muted);
cursor: pointer;
}
.icon-button:hover:not(:disabled),
.icon-button.is-active {
background: var(--brand-soft);
color: var(--brand);
}
.icon-button:disabled {
cursor: not-allowed;
opacity: 0.28;
}
.app-card__body {
flex: 1;
padding: 1.25rem 1.35rem 1rem;
}
.title-line {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.45rem;
}
.title-line h2 {
margin: 0;
font-family: Inter, Avenir, 'Segoe UI', sans-serif;
font-size: 1.3rem;
letter-spacing: -0.025em;
}
.status-chip,
.tag-row span {
border-radius: 999px;
background: var(--brand-soft);
color: var(--brand);
font-size: 0.68rem;
font-weight: 700;
}
.status-chip {
padding: 0.22rem 0.48rem;
text-transform: uppercase;
}
.status-chip--muted {
background: var(--surface-soft);
color: var(--muted);
}
.app-card__body > p {
margin: 0.75rem 0 0;
color: var(--muted);
line-height: 1.6;
}
.app-card__body .requirements {
font-size: 0.72rem;
}
.app-card__body .privacy-summary {
color: var(--text);
font-size: 0.76rem;
font-weight: 650;
}
.tag-row {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 1rem;
}
.tag-row span {
padding: 0.28rem 0.52rem;
background: var(--surface-soft);
color: var(--muted);
}
.app-card__footer {
min-height: 68px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.85rem 1.35rem;
border-top: 1px solid var(--line);
}
.version {
color: var(--muted);
font-size: 0.78rem;
}
.app-card__meta {
display: grid;
gap: 0.25rem;
}
.source-link,
.site-footer a {
color: var(--brand);
}
.launch-button {
display: inline-flex;
align-items: center;
gap: 0.45rem;
padding: 0.62rem 0.82rem;
border-radius: 0.65rem;
background: var(--brand);
color: var(--surface);
font-size: 0.84rem;
font-weight: 700;
text-decoration: none;
}
:root[data-theme='dark'] .launch-button {
color: #11182a;
}
.launch-button:hover {
background: var(--brand-hover);
}
.state-card {
max-width: 600px;
margin: 0 auto 5rem;
padding: 3rem 2rem;
border: 1px solid var(--line);
border-radius: 1.2rem;
background: var(--surface);
text-align: center;
box-shadow: var(--shadow);
}
.state-card h2 {
margin: 0.8rem 0 0.35rem;
font-family: Inter, Avenir, 'Segoe UI', sans-serif;
}
.state-card p {
margin: 0;
color: var(--muted);
line-height: 1.55;
}
.state-card button {
margin-top: 1.25rem;
padding: 0.7rem 1rem;
}
.state-icon {
width: 46px;
height: 46px;
display: inline-grid;
place-items: center;
border-radius: 50%;
background: var(--brand-soft);
color: var(--brand);
font-size: 1.25rem;
font-weight: 700;
}
.state-card--error .state-icon {
background: color-mix(in srgb, var(--danger) 12%, transparent);
color: var(--danger);
}
.loader {
width: 38px;
height: 38px;
margin: 0 auto;
border: 3px solid var(--line);
border-top-color: var(--brand);
border-radius: 50%;
animation: spin 700ms linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.manifest-errors {
margin: 1.5rem 0 4rem;
padding: 1rem 1.2rem;
border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line));
border-radius: 0.8rem;
background: color-mix(in srgb, var(--danger) 5%, var(--surface));
color: var(--muted);
}
.manifest-errors summary {
cursor: pointer;
color: var(--text);
font-weight: 600;
}
.manifest-errors li + li {
margin-top: 0.5rem;
}
.site-footer {
min-height: 110px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-top: 5rem;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 0.8rem;
}
.site-footer p {
display: flex;
align-items: center;
gap: 0.5rem;
}
.dialog-backdrop {
position: fixed;
z-index: 50;
inset: 0;
display: grid;
place-items: center;
padding: 1rem;
background: rgba(5, 9, 22, 0.56);
backdrop-filter: blur(5px);
}
.preferences-panel {
width: min(560px, 100%);
max-height: calc(100vh - 2rem);
overflow: auto;
padding: 1.5rem;
border: 1px solid var(--line);
border-radius: 1.2rem;
background: var(--surface);
box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}
.preferences-panel > header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
}
.preferences-panel h2 {
margin: 0;
font-family: Inter, Avenir, 'Segoe UI', sans-serif;
letter-spacing: -0.025em;
}
.preferences-panel .eyebrow {
margin-bottom: 0.5rem;
}
.close-button {
flex: 0 0 auto;
background: var(--surface-soft);
color: var(--text);
font-size: 1.3rem;
}
.theme-choice {
margin: 1.5rem 0;
padding: 0;
border: 0;
}
.theme-choice legend {
margin-bottom: 0.6rem;
color: var(--muted);
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
}
.theme-choice > div {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.45rem;
padding: 0.35rem;
border-radius: 0.75rem;
background: var(--surface-soft);
}
.theme-choice button {
padding: 0.62rem;
border: 0;
border-radius: 0.5rem;
background: transparent;
cursor: pointer;
}
.theme-choice button.is-selected {
background: var(--surface);
color: var(--brand);
box-shadow: 0 2px 8px rgba(20, 30, 60, 0.09);
font-weight: 700;
}
.preference-summary {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.6rem;
}
.preference-summary > div {
display: grid;
gap: 0.2rem;
padding: 0.9rem;
border: 1px solid var(--line);
border-radius: 0.7rem;
text-align: center;
}
.preference-summary strong {
font-family: Inter, Avenir, 'Segoe UI', sans-serif;
font-size: 1.25rem;
}
.preference-summary span,
.preferences-copy,
.action-message {
color: var(--muted);
font-size: 0.8rem;
}
.preferences-copy {
margin: 1.1rem 0;
line-height: 1.55;
}
.preferences-actions {
display: flex;
flex-wrap: wrap;
gap: 0.55rem;
}
.preferences-actions button {
padding: 0.62rem 0.78rem;
}
.preferences-actions .danger-button {
margin-left: auto;
color: var(--danger);
}
.action-message {
min-height: 1.2em;
margin: 0.8rem 0 0;
}
.inline-warning {
padding: 0.7rem 0.8rem;
border-radius: 0.6rem;
background: color-mix(in srgb, var(--danger) 8%, var(--surface));
color: var(--danger);
font-size: 0.82rem;
}
.visually-hidden {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
@media (max-width: 700px) {
.header-inner,
main,
.site-footer {
width: min(100% - 1.4rem, 1160px);
}
.header-inner {
min-height: 66px;
}
.settings-button {
font-size: 0;
}
.settings-button span {
font-size: 1.15rem;
}
.hero {
padding-top: 3.8rem;
}
.tool-controls {
align-items: stretch;
flex-direction: column;
}
.search-field,
.category-field {
width: 100%;
}
.hidden-toggle {
margin: 0.25rem 0;
}
.app-card {
min-height: 320px;
}
.site-footer {
min-height: 130px;
align-items: flex-start;
flex-direction: column;
justify-content: center;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}