feat(ui): align stage-1 screens with the design mockup
- main screen follows 시안 ①: header steps, pier list with type filter and multi-select, viewer with 아이소/정면/측면/평면, part toggles in mockup order, input panel and result sections - import moved to a modal dialog following 시안 ④: project name (required), file drop and pick, per-sheet recognition with selectable piers, preview of pier and bearing tables, glossary of Excel column names - Esc closes the dialog and focus stays inside it (native dialog) - 44px touch targets and 2px focus rings; colours from the mockup tokens Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
01d2bf4958
commit
69922cfa35
3 files changed
+1081
-319
No files matched your search
+465
-108
@@ -1,25 +1,16 @@
|
||||
/* Tokens from 시안 (RAG/Pierzainer UI 시안 (1).html): background, primary action, dimension colour. */
|
||||
:root {
|
||||
--bg: #f5f7fa;
|
||||
--bg: #faf9f5;
|
||||
--panel: #ffffff;
|
||||
--text: #1d2733;
|
||||
--muted: #5b6878;
|
||||
--line: #d5dce4;
|
||||
--line: #d9d6cc;
|
||||
--primary: #1f5fa8;
|
||||
--warn: #9a5b00;
|
||||
--dim: #4a5868;
|
||||
--warn: #8a5300;
|
||||
--error: #9b2c2c;
|
||||
--focus: 2px solid #1f5fa8;
|
||||
color-scheme: light dark;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme='light']) {
|
||||
--bg: #111820;
|
||||
--panel: #1a232d;
|
||||
--text: #e6ebf0;
|
||||
--muted: #9aa7b4;
|
||||
--line: #2d3a47;
|
||||
--primary: #5b93d6;
|
||||
--warn: #e0a24a;
|
||||
}
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -33,172 +24,341 @@ body {
|
||||
font: 14px/1.5 system-ui, 'Noto Sans KR', sans-serif;
|
||||
}
|
||||
|
||||
button,
|
||||
select,
|
||||
input,
|
||||
label {
|
||||
font: inherit;
|
||||
h2 {
|
||||
font-size: 16px;
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 14px;
|
||||
margin: 0 0 6px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 13px;
|
||||
margin: 12px 0 6px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.small {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
button,
|
||||
select,
|
||||
.file {
|
||||
input {
|
||||
font: inherit;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
button:focus-visible,
|
||||
select:focus-visible,
|
||||
input:focus-visible {
|
||||
input:focus-visible,
|
||||
summary:focus-visible {
|
||||
outline: var(--focus);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: var(--panel);
|
||||
color: var(--text);
|
||||
padding: 0 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.btn.small {
|
||||
min-height: 44px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.btn.primary {
|
||||
background: var(--primary);
|
||||
border-color: var(--primary);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn:disabled {
|
||||
opacity: 0.45;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn[aria-pressed='true'] {
|
||||
border-color: var(--primary);
|
||||
color: var(--primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* --- header ------------------------------------------------------------- */
|
||||
|
||||
.app {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.top {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding: 10px 16px;
|
||||
background: var(--panel);
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.top h1 {
|
||||
font-size: 18px;
|
||||
margin: 0;
|
||||
.brand {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.stage {
|
||||
font-size: 13px;
|
||||
.brand strong {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.steps {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.step {
|
||||
padding: 8px 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.step.current {
|
||||
border-color: var(--primary);
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.step em {
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
margin-left: 8px;
|
||||
color: var(--muted);
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.primary {
|
||||
background: var(--primary);
|
||||
color: #fff;
|
||||
border: 0;
|
||||
border-radius: 6px;
|
||||
padding: 0 14px;
|
||||
cursor: pointer;
|
||||
.status-line {
|
||||
margin: 0;
|
||||
padding: 8px 16px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.file {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
/* --- layout ------------------------------------------------------------- */
|
||||
|
||||
.file input {
|
||||
font-size: 12px;
|
||||
max-width: 220px;
|
||||
}
|
||||
|
||||
.layout {
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: 240px 1fr 320px;
|
||||
grid-template-columns: 260px minmax(0, 1fr) 320px;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
min-height: calc(100vh - 80px);
|
||||
padding: 0 16px 12px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.side,
|
||||
.results,
|
||||
.viewer {
|
||||
.panel {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.side section,
|
||||
.results section {
|
||||
margin-bottom: 16px;
|
||||
.inputs {
|
||||
margin: 0 16px 16px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 15px;
|
||||
margin: 0 0 8px;
|
||||
/* --- pier list ---------------------------------------------------------- */
|
||||
|
||||
.pier-tools {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--muted);
|
||||
.pier-tools label {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
select {
|
||||
width: 100%;
|
||||
padding: 6px;
|
||||
padding: 4px 8px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: var(--panel);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.parts label,
|
||||
.views button {
|
||||
display: flex;
|
||||
.pier-items {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
max-height: 70vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.pier-items li {
|
||||
display: grid;
|
||||
grid-template-columns: 28px 1fr auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 44px;
|
||||
gap: 6px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.pier-items input[type='checkbox'] {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin: 8px;
|
||||
}
|
||||
|
||||
.pier-name {
|
||||
border: 0;
|
||||
background: none;
|
||||
text-align: left;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.pier-name[aria-pressed='true'] {
|
||||
color: var(--primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.badge {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.badge.error {
|
||||
color: var(--error);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* --- viewer ------------------------------------------------------------- */
|
||||
|
||||
.viewer-head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.viewer-head h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.views {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 8px;
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.views button {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
background: var(--panel);
|
||||
color: var(--text);
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
.views .btn {
|
||||
min-width: 64px;
|
||||
}
|
||||
|
||||
.views button[aria-pressed='true'] {
|
||||
border-color: var(--primary);
|
||||
color: var(--primary);
|
||||
font-weight: 600;
|
||||
#origin {
|
||||
margin-left: auto;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.canvas {
|
||||
width: 100%;
|
||||
height: calc(100vh - 140px);
|
||||
height: 62vh;
|
||||
min-height: 420px;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
background: #e9eef4;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
.parts {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
margin: 10px 0 0;
|
||||
padding: 6px 10px;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 4px 6px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
td:first-child {
|
||||
.parts legend {
|
||||
color: var(--muted);
|
||||
width: 48%;
|
||||
font-size: 12px;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
.parts-row {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.parts-row label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-height: 44px;
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.parts-row input {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
/* --- results ------------------------------------------------------------ */
|
||||
|
||||
.results section {
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding-bottom: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.kv {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 2px 8px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.kv.wide {
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
}
|
||||
|
||||
.kv div {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
border-bottom: 1px dotted var(--line);
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.kv dt {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.kv dd {
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.issues {
|
||||
@@ -208,21 +368,218 @@ td:first-child {
|
||||
|
||||
.issues li {
|
||||
margin-bottom: 6px;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.issues .code {
|
||||
font-weight: 600;
|
||||
font-weight: 700;
|
||||
color: var(--warn);
|
||||
}
|
||||
|
||||
.issues .sheet-ok {
|
||||
font-weight: 600;
|
||||
color: var(--primary);
|
||||
.issues .code.E {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.layout {
|
||||
details {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
min-height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* --- import dialog (④) --------------------------------------------------- */
|
||||
|
||||
#import-dialog {
|
||||
width: min(1140px, 96vw);
|
||||
max-height: 92vh;
|
||||
padding: 0;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 10px;
|
||||
background: var(--panel);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
#import-dialog::backdrop {
|
||||
background: rgba(20, 28, 38, 0.35);
|
||||
}
|
||||
|
||||
.dlg-head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.dlg-head h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.dlg-steps {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
flex: 1;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.dlg-steps li {
|
||||
padding: 4px 10px;
|
||||
border-radius: 999px;
|
||||
background: #f0eee6;
|
||||
}
|
||||
|
||||
.dlg-body {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 16px;
|
||||
padding: 16px;
|
||||
overflow: auto;
|
||||
max-height: 70vh;
|
||||
}
|
||||
|
||||
.dlg-col section {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.field {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
margin-bottom: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.field input {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
padding: 4px 8px;
|
||||
background: var(--panel);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.drop {
|
||||
border: 2px dashed var(--line);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.drop.over {
|
||||
border-color: var(--primary);
|
||||
}
|
||||
|
||||
.drop p {
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.drop-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.sheet-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sheet-list > li {
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
padding: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.sheet-list .ok {
|
||||
color: var(--primary);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sheet-list .bad {
|
||||
color: var(--error);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.sheet-pier {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.sheet-pier input {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.rules {
|
||||
margin: 0;
|
||||
padding-left: 18px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.terms th {
|
||||
text-align: left;
|
||||
width: 40%;
|
||||
color: var(--muted);
|
||||
font-weight: 400;
|
||||
padding: 4px 6px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.terms td {
|
||||
padding: 4px 6px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.grid-table th,
|
||||
.grid-table td {
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding: 4px 6px;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.grid-table th {
|
||||
color: var(--muted);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.dlg-foot {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
padding: 12px 16px;
|
||||
border-top: 1px solid var(--line);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
#dlg-selected {
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.dlg-body {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user