Skip to content

Single place to convert your 2D floor plans to 3d model (no LLM)

Python
5.4 KB
Raw Blame
:root {
  --bg: #f4f1ea; --panel: #ffffff; --ink: #1f2326; --muted: #6b7076; --line: #ddd6c8; --accent: #b0562b; --accent-ink: #fff;
  --ok: #2f7d4a; --bad: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #16181b; --panel: #1f2226; --ink: #ecebe7; --muted: #9aa0a6; --line: #34383d; --accent: #e07a48;
    --ok: #6cc08a; --bad: #f28b82; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--accent); }
button, select, input { font: inherit; }
.btn { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; font-weight: 600; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.btn:disabled { opacity: .5; cursor: default; }
h1 { font-size: 28px; margin: 0 0 6px; }
.muted { color: var(--muted); }
/* ---- home page */
.wrap { max-width: 720px; margin: 0 auto; padding: 56px 20px 64px; }
.brand { font-weight: 700; letter-spacing: .02em; color: var(--accent); margin: 0 0 28px; }
.home h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
#ascii { position: fixed; inset: 0; z-index: -1; margin: 0; overflow: hidden; pointer-events: none; user-select: none; white-space: pre;
  font: 14px/16px ui-monospace, "DejaVu Sans Mono", Menlo, Consolas, monospace; color: var(--accent); opacity: .38;
  /* dimmer behind the page's centre column so the text stays easy to read */
  mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 440px), rgba(0, 0, 0, .3) calc(50% - 340px), rgba(0, 0, 0, .3) calc(50% + 340px), #000 calc(50% + 440px), #000 100%); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.drop { display: block; border: 2px dashed var(--line); border-radius: 16px; padding: 44px 20px; text-align: center; background: var(--panel);
  margin: 32px 0 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.drop svg { width: 40px; height: 40px; color: var(--accent); display: block; margin: 0 auto 12px; }
.drop b { font-size: 18px; display: block; }
.drop span { color: var(--muted); font-size: 14px; }
.drop.busy { pointer-events: none; opacity: .7; }
#msg { min-height: 22px; margin: 0; font-size: 14px; text-align: center; }
.steps { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .04em; margin: 14px 0 0; }
.setup { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 8px; }
.setup h2 { font-size: 16px; margin: 0 0 8px; }
.setup ul { margin: 0 0 12px; padding-left: 18px; }
.setup li { margin: 4px 0; }
.setup .muted { margin: 8px 0 0; font-size: 14px; }
.recent { margin-top: 48px; }
.recent h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.jobs { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.job { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; }
.jobs:not(.all) .job:nth-child(n+6) { display: none; }
.job .main { flex: 1; min-width: 0; padding: 11px 0; text-decoration: none; color: var(--ink); }
.job .main:hover .name { color: var(--accent); }
.job .name { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .sub { display: block; font-size: 13px; color: var(--muted); }
.job .edit { font-size: 13px; white-space: nowrap; }
.chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; color: var(--muted);
  background: color-mix(in srgb, var(--muted) 14%, transparent); }
.chip.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.chip.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.more { margin-top: 10px; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 4px 0; font-size: 14px; }
.links { text-align: center; margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.links .more, .job .del { margin: 0; }
.job .del { font-size: 13px; color: var(--bad); }
.empty { padding: 16px 14px; color: var(--muted); font-size: 14px; }
.furn { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 20px; }
.furn figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.furn img, .furn .wait { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.furn .wait { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.furn figcaption { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.furn b { flex: 1 1 100%; }
.furn .more { margin: 0; font-size: 13px; }
@media (max-width: 560px) { .wrap { padding-top: 32px; } }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s; }
.err { color: var(--bad); }