feat: update seat map dxf workflow and organization ui

This commit is contained in:
hyunho
2026-03-25 18:00:09 +09:00
parent 8f073e1458
commit e62a6a5458
27 changed files with 2517660 additions and 125 deletions

View File

@@ -182,12 +182,11 @@
}
.header-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
margin-left: auto;
margin-right: 48px;
display: inline-flex;
justify-content: center;
gap: 8px;
gap: 24px;
flex-wrap: nowrap;
white-space: nowrap;
z-index: 1;
@@ -197,33 +196,32 @@
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 34px;
padding: 0 14px;
border-radius: 999px;
border: 1px solid #dbe2ea;
background: #f8fafc;
color: var(--color-text-muted);
font-size: 12px;
font-weight: 800;
min-height: 48px;
padding: 0 4px;
border-radius: 0;
border: none;
border-bottom: 3px solid transparent;
background: transparent;
color: #64748b;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
transition: all 0.2s ease;
}
.nav-pill.active {
background: var(--color-accent);
border-color: transparent;
color: #fff;
box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
background: transparent;
border-bottom-color: var(--color-accent);
color: var(--color-text);
}
.nav-pill.muted {
color: #64748b;
color: #94a3b8;
}
.nav-pill:hover {
transform: translateY(-1px);
border-color: #c7d2fe;
box-shadow: 0 8px 18px rgba(148, 163, 184, 0.16);
transform: none;
color: var(--color-accent);
}
.header-actions {
@@ -242,6 +240,34 @@
border-radius: 999px;
font-size: 11px;
font-weight: 800;
transition: all 0.2s ease;
}
.icon-button {
width: 38px;
height: 38px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
background: #f8fafc;
}
.icon-button:hover {
background: #f1f5f9;
border-color: #cbd5e1;
color: var(--color-accent);
transform: translateY(-1px);
}
.icon-button svg {
width: 18px;
height: 18px;
stroke: currentColor;
stroke-width: 2.5;
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
}
.ghost-button-soft {
@@ -291,26 +317,16 @@
color: var(--color-text-muted);
}
.icon-button {
width: 34px;
padding: 0;
justify-content: center;
}
.icon-button svg {
width: 15px;
height: 15px;
stroke: currentColor;
stroke-width: 1.9;
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
.user-chip-caret {
color: var(--color-text-muted);
font-size: 10px;
line-height: 1;
}
.user-popover {
position: absolute;
top: calc(100% + 10px);
right: 42px;
right: 0;
min-width: 220px;
padding: 14px;
border: 1px solid #dbe2ea;
@@ -340,6 +356,19 @@
font-weight: 700;
}
.user-popover-action {
width: 100%;
margin-top: 10px;
min-height: 38px;
border: none;
border-radius: 12px;
background: #0f172a;
color: #fff;
font-size: 11px;
font-weight: 800;
cursor: pointer;
}
.dashboard-main {
flex: 1;
min-height: calc(100vh - 68px);
@@ -371,6 +400,514 @@
background: transparent;
}
.seatmap-layout {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
gap: 12px;
padding: 18px;
background:
linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.92)),
radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 32%);
}
.seatmap-topbar {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 16px;
}
.seatmap-topbar h3,
.seatmap-panel-head h4 {
margin: 0;
}
.seatmap-topbar .eyebrow {
margin-bottom: 4px;
}
.seatmap-actions {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.seatmap-status {
min-height: 20px;
margin: 0;
color: #475569;
font-size: 12px;
font-weight: 700;
}
.seatmap-status[data-tone="error"] {
color: #b91c1c;
}
.seatmap-status[data-tone="success"] {
color: #047857;
}
.seatmap-content {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) 320px;
gap: 16px;
}
.seatmap-board-panel,
.seatmap-panel {
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 24px;
background: rgba(255, 255, 255, 0.88);
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}
.seatmap-board-panel {
min-height: 0;
overflow: hidden;
padding: 0;
}
.seatmap-board-wrap {
width: 100%;
height: 100%;
overflow: auto;
border-radius: 24px;
background: #fff;
padding: 0;
overscroll-behavior: contain;
}
.seatmap-board-wrap.is-panning {
cursor: grabbing;
}
.seatmap-board {
min-width: 100%;
height: 100%;
}
.seatmap-dxf-canvas {
position: relative;
width: 100%;
min-height: 100%;
margin: 0 auto;
border-radius: 24px;
overflow: hidden;
box-shadow: none;
background: #fff;
}
.seatmap-dxf-stage {
position: relative;
transform-origin: center center;
transition: transform 0.12s ease-out;
}
.seatmap-dxf-preview {
position: relative;
z-index: 1;
line-height: 0;
filter: contrast(1.9) saturate(1.1) brightness(0.88);
}
.seatmap-preview-svg {
display: block;
width: 100%;
height: auto;
background: #fff;
}
.seatmap-preview-svg .seatmap-dxf-entity {
stroke: #000 !important;
stroke-opacity: 1 !important;
stroke-width: 12 !important;
}
.seatmap-preview-svg .seatmap-dxf-chair-entity {
stroke: #2563eb !important;
stroke-opacity: 1 !important;
stroke-width: 6 !important;
}
.seatmap-preview-svg rect {
fill: #fff !important;
}
.seatmap-dxf-slots {
position: absolute;
inset: 0;
z-index: 2;
}
.seatmap-slot {
position: absolute;
transform: translate(-50%, -50%);
width: 30px;
min-height: 30px;
border: 0;
border-radius: 999px;
background: transparent;
pointer-events: auto;
transition: box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.seatmap-slot.editable:hover {
box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.4);
background: rgba(37, 99, 235, 0.12);
transform: translate(-50%, -50%) scale(1.02);
}
.seatmap-slot.occupied {
width: 34px;
min-height: 34px;
background: transparent;
}
.seatmap-slot.empty {
opacity: 0.14;
}
.seatmap-canvas {
position: relative;
width: min(100%, 1240px);
margin: 0 auto;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}
.seatmap-image {
display: block;
width: 100%;
height: auto;
user-select: none;
-webkit-user-drag: none;
}
.seatmap-grid {
position: absolute;
inset: 0;
display: grid;
grid-template-columns: repeat(var(--seatmap-cols), 1fr);
grid-template-rows: repeat(var(--seatmap-rows), 1fr);
gap: var(--seatmap-gap);
padding: var(--seatmap-gap);
}
.seatmap-cell {
position: relative;
min-width: 0;
min-height: 0;
border: 1px dashed rgba(15, 23, 42, 0.14);
background: rgba(255, 255, 255, 0.12);
transition: border-color 0.18s ease, background 0.18s ease;
}
.seatmap-cell.editable:hover {
border-color: rgba(14, 165, 233, 0.62);
background: rgba(14, 165, 233, 0.12);
}
.seatmap-cell.occupied {
background: rgba(255, 255, 255, 0.18);
}
.seatmap-cell-label {
position: absolute;
top: 4px;
left: 4px;
padding: 2px 6px;
border-radius: 999px;
background: rgba(15, 23, 42, 0.72);
color: rgba(255, 255, 255, 0.92);
font-size: 10px;
font-weight: 800;
letter-spacing: 0.04em;
}
.seatmap-member-card {
position: absolute;
inset: 22px 6px 6px;
display: flex;
align-items: center;
gap: 8px;
padding: 8px;
border: 1px solid rgba(255, 255, 255, 0.4);
border-radius: 14px;
background: rgba(15, 23, 42, 0.8);
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
color: #fff;
overflow: hidden;
}
.seatmap-member-card.draggable {
cursor: grab;
}
.seatmap-member-avatar {
width: 34px;
height: 34px;
border-radius: 12px;
overflow: hidden;
flex: 0 0 auto;
background: rgba(255, 255, 255, 0.2);
}
.seatmap-member-avatar img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.seatmap-member-avatar-fallback {
display: inline-flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 12px;
font-weight: 900;
letter-spacing: 0.04em;
}
.seatmap-member-text {
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.seatmap-member-text strong,
.seatmap-member-text em {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.seatmap-member-text strong {
font-size: 12px;
}
.seatmap-member-text em {
color: rgba(226, 232, 240, 0.84);
font-size: 10px;
font-style: normal;
}
.seatmap-sidebar {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
gap: 14px;
}
.seatmap-panel {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
gap: 12px;
padding: 16px;
}
.seatmap-sidebar .seatmap-panel:last-child {
flex: 1;
}
.seatmap-panel-head p {
margin: 6px 0 0;
color: #64748b;
font-size: 12px;
}
.seatmap-form,
.seatmap-form-grid {
display: grid;
gap: 10px;
}
.seatmap-form label,
.seatmap-form > div,
.seatmap-search {
display: grid;
gap: 6px;
}
.seatmap-form span {
color: #475569;
font-size: 11px;
font-weight: 800;
}
.seatmap-form input,
.seatmap-search input,
.seatmap-form button {
width: 100%;
max-width: 100%;
box-sizing: border-box;
min-height: 38px;
border-radius: 12px;
font: inherit;
}
.seatmap-form input,
.seatmap-search input {
border: 1px solid #d7dee8;
padding: 0 12px;
background: #fff;
color: #0f172a;
}
.seatmap-file-input {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
gap: 10px;
width: 100%;
max-width: 100%;
min-height: 48px;
padding: 8px 10px;
box-sizing: border-box;
border: 1px solid #d7dee8;
border-radius: 14px;
background: linear-gradient(180deg, #fff, #f8fafc);
cursor: pointer;
}
.seatmap-file-input input {
display: none;
}
.seatmap-file-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 32px;
padding: 0 12px;
border-radius: 10px;
background: #0f172a;
color: #fff;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.01em;
}
.seatmap-file-name {
min-width: 0;
color: #475569;
font-size: 12px;
font-weight: 700;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.seatmap-form button {
border: 0;
background: #0f172a;
color: #fff;
font-size: 12px;
font-weight: 800;
cursor: pointer;
}
.seatmap-member-list {
flex: 1;
min-height: 0;
overflow: auto;
display: flex;
flex-direction: column;
gap: 8px;
padding-right: 4px;
}
.seatmap-member-list .seatmap-member-card {
position: relative;
inset: auto;
}
.seatmap-member-card-compact {
position: relative;
inset: auto;
min-height: 42px;
padding: 10px 12px;
border-radius: 12px;
background: #3f4658;
border: 1px solid rgba(148, 163, 184, 0.14);
box-shadow: none;
}
.seatmap-member-text-inline {
flex-direction: row;
align-items: baseline;
gap: 6px;
}
.seatmap-member-text-inline strong {
font-size: 13px;
}
.seatmap-member-text-inline em {
display: inline;
color: rgba(226, 232, 240, 0.8);
font-size: 11px;
}
.seatmap-slot .seatmap-member-card {
inset: auto;
left: 50%;
top: 50%;
min-width: 48px;
transform: translate(-50%, -50%);
border-radius: 8px;
padding: 3px 4px;
gap: 4px;
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
.seatmap-slot .seatmap-member-avatar {
width: 14px;
height: 14px;
border-radius: 4px;
}
.seatmap-slot .seatmap-member-text strong {
font-size: 8px;
}
.seatmap-slot .seatmap-member-text em {
display: none;
}
.seatmap-dxf-stage {
cursor: grab;
}
.seatmap-list-empty,
.seatmap-empty-card {
display: grid;
place-items: center;
min-height: 120px;
border: 1px dashed rgba(148, 163, 184, 0.4);
border-radius: 18px;
background: rgba(248, 250, 252, 0.8);
color: #64748b;
text-align: center;
padding: 18px;
}
.seatmap-empty-card strong {
display: block;
color: #0f172a;
margin-bottom: 8px;
}
@media (max-width: 1180px) {
.dashboard-header {
flex-wrap: wrap;
@@ -390,6 +927,14 @@
.header-actions {
flex-wrap: wrap;
}
.seatmap-content {
grid-template-columns: 1fr;
}
.seatmap-sidebar {
order: -1;
}
}
@media (max-width: 980px) {
@@ -414,6 +959,15 @@
.login-form-wrap {
padding: 28px;
}
.seatmap-layout {
padding: 12px;
}
.seatmap-topbar {
align-items: flex-start;
flex-direction: column;
}
}
@media (max-width: 720px) {
@@ -424,4 +978,28 @@
.main-stage {
height: calc(100vh - 68px);
}
.seatmap-board {
min-width: 640px;
}
.seatmap-member-card {
inset: 20px 4px 4px;
padding: 6px;
gap: 6px;
}
.seatmap-member-avatar {
width: 28px;
height: 28px;
border-radius: 10px;
}
.seatmap-member-text strong {
font-size: 11px;
}
.seatmap-member-text em {
font-size: 9px;
}
}