feat(device-manager): add standalone project workspace
This commit is contained in:
@@ -0,0 +1,418 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
background: #0b0d0f;
|
||||
}
|
||||
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
width: 100%;
|
||||
min-width: 320px;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
overflow: hidden;
|
||||
background:
|
||||
radial-gradient(circle at 76% 18%, rgb(185 255 74 / 0.09), transparent 34%),
|
||||
radial-gradient(circle at 12% 84%, rgb(79 127 255 / 0.08), transparent 31%),
|
||||
#0b0d0f;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
textarea {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.device-manager-boot {
|
||||
display: grid;
|
||||
height: 100%;
|
||||
place-items: center;
|
||||
color: var(--nodedc-text-secondary);
|
||||
font: 500 0.9rem/1.4 var(--nodedc-font-family);
|
||||
}
|
||||
|
||||
.device-manager-brand {
|
||||
color: var(--nodedc-text-primary);
|
||||
font-size: 0.86rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.15em;
|
||||
}
|
||||
|
||||
.device-manager-workspace-trigger {
|
||||
display: inline-grid;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.device-manager-stage {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
padding: clamp(2.25rem, 5vw, 5.5rem);
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.device-manager-hero {
|
||||
display: flex;
|
||||
max-width: 1420px;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 2rem;
|
||||
margin: 0 auto 2.5rem;
|
||||
}
|
||||
|
||||
.device-manager-hero > div:first-child {
|
||||
max-width: 780px;
|
||||
}
|
||||
|
||||
.device-manager-hero span,
|
||||
.device-manager-section-title span {
|
||||
color: rgb(var(--nodedc-accent-rgb));
|
||||
font-size: 0.68rem;
|
||||
font-weight: 760;
|
||||
letter-spacing: 0.16em;
|
||||
}
|
||||
|
||||
.device-manager-hero h1 {
|
||||
max-width: 760px;
|
||||
margin: 0.7rem 0 0.9rem;
|
||||
color: var(--nodedc-text-primary);
|
||||
font-size: clamp(2.25rem, 5vw, 5.4rem);
|
||||
font-weight: 520;
|
||||
letter-spacing: -0.065em;
|
||||
line-height: 0.98;
|
||||
}
|
||||
|
||||
.device-manager-hero p {
|
||||
max-width: 680px;
|
||||
margin: 0;
|
||||
color: var(--nodedc-text-secondary);
|
||||
font-size: clamp(0.96rem, 1.4vw, 1.14rem);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.device-manager-hero__actions {
|
||||
display: flex;
|
||||
min-width: min(100%, 390px);
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.device-manager-hero__actions .nodedc-select-anchor {
|
||||
min-width: 210px;
|
||||
}
|
||||
|
||||
.device-manager-alert {
|
||||
display: flex;
|
||||
max-width: 1420px;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
margin: 0 auto 1.25rem;
|
||||
border-radius: 18px;
|
||||
background: rgb(var(--nodedc-danger-rgb) / 0.11);
|
||||
color: var(--nodedc-text-primary);
|
||||
padding: 0.7rem 0.8rem 0.7rem 1rem;
|
||||
}
|
||||
|
||||
.device-manager-alert span {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.device-manager-metrics {
|
||||
display: grid;
|
||||
max-width: 1420px;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 1rem;
|
||||
margin: 0 auto 3.5rem;
|
||||
}
|
||||
|
||||
.device-manager-metric {
|
||||
display: grid;
|
||||
min-height: 142px;
|
||||
align-content: space-between;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.device-manager-metric > span:first-child {
|
||||
color: var(--nodedc-text-secondary);
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.device-manager-metric > strong {
|
||||
color: var(--nodedc-text-primary);
|
||||
font-size: clamp(2rem, 3vw, 3.25rem);
|
||||
font-weight: 520;
|
||||
letter-spacing: -0.05em;
|
||||
}
|
||||
|
||||
.device-manager-metric .nodedc-status {
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.device-manager-projects {
|
||||
max-width: 1420px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.device-manager-section-title {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 1.15rem;
|
||||
}
|
||||
|
||||
.device-manager-section-title h2 {
|
||||
margin: 0.35rem 0 0;
|
||||
font-size: 1.45rem;
|
||||
font-weight: 560;
|
||||
}
|
||||
|
||||
.device-manager-section-title small {
|
||||
color: var(--nodedc-text-muted);
|
||||
}
|
||||
|
||||
.device-manager-project-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.device-project-card {
|
||||
display: grid;
|
||||
min-height: 210px;
|
||||
grid-template-columns: auto 1fr auto;
|
||||
grid-template-rows: 1fr auto;
|
||||
gap: 1rem;
|
||||
border: 0;
|
||||
border-radius: var(--nodedc-radius-card);
|
||||
background: var(--nodedc-glass-panel-bg-soft);
|
||||
color: var(--nodedc-text-primary);
|
||||
padding: 1.25rem;
|
||||
text-align: left;
|
||||
box-shadow: var(--nodedc-glass-panel-shadow);
|
||||
cursor: pointer;
|
||||
transition: background 160ms ease, transform 160ms ease;
|
||||
}
|
||||
|
||||
.device-project-card:hover {
|
||||
background: var(--nodedc-glass-control-hover);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.device-project-card__icon,
|
||||
.device-manager-entity__icon {
|
||||
display: grid;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
background: rgb(var(--nodedc-accent-rgb) / 0.12);
|
||||
color: rgb(var(--nodedc-accent-rgb));
|
||||
}
|
||||
|
||||
.device-project-card__body {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 0.35rem;
|
||||
}
|
||||
|
||||
.device-project-card__body small,
|
||||
.device-project-card__body span,
|
||||
.device-project-card__stats {
|
||||
color: var(--nodedc-text-secondary);
|
||||
font-size: 0.78rem;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.device-project-card__body strong {
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.device-project-card__stats {
|
||||
display: flex;
|
||||
grid-column: 1 / 3;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
|
||||
.device-project-card__stats b {
|
||||
color: var(--nodedc-text-primary);
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
|
||||
.device-project-card > .nodedc-status {
|
||||
grid-column: 3;
|
||||
align-self: end;
|
||||
}
|
||||
|
||||
.device-manager-empty {
|
||||
display: grid;
|
||||
min-height: 220px;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
gap: 0.65rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.device-manager-empty h3,
|
||||
.device-manager-empty p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.device-manager-empty p,
|
||||
.device-manager-card-copy {
|
||||
color: var(--nodedc-text-secondary);
|
||||
font-size: 0.82rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.device-manager-panel-empty {
|
||||
display: grid;
|
||||
min-height: 220px;
|
||||
place-items: center;
|
||||
color: var(--nodedc-text-secondary);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.device-manager-stack,
|
||||
.device-manager-entity-list {
|
||||
display: grid;
|
||||
gap: 0.85rem;
|
||||
}
|
||||
|
||||
.device-manager-panel-toolbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.device-manager-panel-toolbar p {
|
||||
margin: 0;
|
||||
color: var(--nodedc-text-secondary);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.device-manager-entity {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.85rem;
|
||||
}
|
||||
|
||||
.device-manager-entity__icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
.device-manager-entity__body {
|
||||
display: grid;
|
||||
flex: 1;
|
||||
gap: 0.18rem;
|
||||
}
|
||||
|
||||
.device-manager-entity__body small {
|
||||
overflow: hidden;
|
||||
color: var(--nodedc-text-secondary);
|
||||
font-size: 0.74rem;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.device-manager-overview-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 0.9rem;
|
||||
}
|
||||
|
||||
.device-manager-overview-grid .nodedc-settings-card {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.device-manager-capabilities {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.45rem;
|
||||
}
|
||||
|
||||
.device-manager-capabilities span {
|
||||
border-radius: 999px;
|
||||
background: var(--nodedc-glass-control-bg);
|
||||
color: var(--nodedc-text-secondary);
|
||||
padding: 0.45rem 0.7rem;
|
||||
font-size: 0.72rem;
|
||||
}
|
||||
|
||||
.device-manager-form {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.device-manager-form textarea {
|
||||
min-height: 110px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.device-manager-hero {
|
||||
align-items: start;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.device-manager-hero__actions {
|
||||
width: 100%;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.device-manager-metrics {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
body { overflow: auto; }
|
||||
|
||||
.device-manager-stage {
|
||||
padding: 2rem 1rem 4rem;
|
||||
}
|
||||
|
||||
.device-manager-hero h1 {
|
||||
font-size: clamp(2.25rem, 14vw, 3.5rem);
|
||||
}
|
||||
|
||||
.device-manager-hero__actions,
|
||||
.device-manager-panel-toolbar,
|
||||
.device-manager-section-title {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.device-manager-hero__actions > *,
|
||||
.device-manager-hero__actions .nodedc-select-anchor {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.device-manager-metrics,
|
||||
.device-manager-overview-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.device-manager-overview-grid .nodedc-settings-card {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.device-project-card {
|
||||
grid-template-columns: auto 1fr;
|
||||
}
|
||||
|
||||
.device-project-card > .nodedc-status {
|
||||
grid-column: 2;
|
||||
justify-self: end;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user