mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 13:03:43 +00:00
Make the web app consume the live mount contract
Add the first control-plane UI over the verified backend seam so exports, issued DAV credentials, and Finder instructions can be exercised from the running stack.
This commit is contained in:
parent
b5f8ea9c52
commit
87de69520c
8 changed files with 773 additions and 51 deletions
|
|
@ -12,7 +12,7 @@
|
|||
}
|
||||
|
||||
.hero {
|
||||
max-width: 860px;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto 32px;
|
||||
padding: 32px;
|
||||
border-radius: 28px;
|
||||
|
|
@ -42,32 +42,252 @@
|
|||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.grid {
|
||||
max-width: 860px;
|
||||
.heroMeta {
|
||||
margin-top: 22px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.heroMeta div {
|
||||
padding: 16px;
|
||||
border-radius: 18px;
|
||||
background: rgba(247, 251, 252, 0.12);
|
||||
border: 1px solid rgba(247, 251, 252, 0.14);
|
||||
}
|
||||
|
||||
.heroMeta dt {
|
||||
margin: 0 0 8px;
|
||||
font-size: 0.76rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
opacity: 0.76;
|
||||
}
|
||||
|
||||
.heroMeta dd {
|
||||
margin: 0;
|
||||
font-size: 0.98rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.layout {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
||||
gap: 18px;
|
||||
grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
|
||||
gap: 22px;
|
||||
}
|
||||
|
||||
.card {
|
||||
display: block;
|
||||
padding: 22px;
|
||||
border-radius: 20px;
|
||||
.panel {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 18px;
|
||||
padding: 24px;
|
||||
border-radius: 28px;
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
border: 1px solid rgba(18, 48, 67, 0.1);
|
||||
box-shadow: 0 18px 50px rgba(18, 48, 67, 0.1);
|
||||
}
|
||||
|
||||
.panelHeader {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.sectionEyebrow {
|
||||
margin: 0;
|
||||
font-size: 0.76rem;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
color: #527082;
|
||||
}
|
||||
|
||||
.sectionTitle {
|
||||
margin: 8px 0 0;
|
||||
font-size: clamp(1.4rem, 2vw, 1.85rem);
|
||||
color: #10212d;
|
||||
}
|
||||
|
||||
.sectionMeta {
|
||||
align-self: center;
|
||||
padding: 8px 12px;
|
||||
border-radius: 999px;
|
||||
background: #eff6f5;
|
||||
color: #26485b;
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
|
||||
.notice {
|
||||
padding: 14px 16px;
|
||||
border-radius: 18px;
|
||||
background: #fff1de;
|
||||
color: #7a4a12;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.emptyState {
|
||||
padding: 22px;
|
||||
border-radius: 22px;
|
||||
background: #f3f8f7;
|
||||
border: 1px dashed rgba(18, 48, 67, 0.16);
|
||||
color: #395667;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.exportList {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.exportCard,
|
||||
.exportCardSelected {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
padding: 20px;
|
||||
border-radius: 22px;
|
||||
border: 1px solid rgba(18, 48, 67, 0.08);
|
||||
box-shadow: 0 12px 30px rgba(18, 48, 67, 0.08);
|
||||
background: #fbfdfd;
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition:
|
||||
transform 140ms ease,
|
||||
box-shadow 140ms ease,
|
||||
border-color 140ms ease;
|
||||
}
|
||||
|
||||
.card h2 {
|
||||
margin: 0 0 10px;
|
||||
.exportCard:hover,
|
||||
.exportCardSelected:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 12px 26px rgba(18, 48, 67, 0.08);
|
||||
}
|
||||
|
||||
.card p {
|
||||
.exportCardSelected {
|
||||
border-color: rgba(29, 84, 102, 0.28);
|
||||
background: linear-gradient(180deg, #f4fbfa 0%, #eef8f6 100%);
|
||||
}
|
||||
|
||||
.exportCardTop {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.exportTitle {
|
||||
margin: 0;
|
||||
line-height: 1.6;
|
||||
font-size: 1.1rem;
|
||||
color: #123043;
|
||||
}
|
||||
|
||||
.exportId {
|
||||
margin: 6px 0 0;
|
||||
color: #527082;
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
.exportProtocol {
|
||||
flex-shrink: 0;
|
||||
padding: 8px 10px;
|
||||
border-radius: 999px;
|
||||
background: #eaf3f1;
|
||||
color: #1d5466;
|
||||
font-size: 0.82rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.exportFacts,
|
||||
.mountMeta {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.exportFactWide {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.exportFacts dt,
|
||||
.mountMeta dt {
|
||||
margin: 0 0 6px;
|
||||
font-size: 0.76rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: #5d7888;
|
||||
}
|
||||
|
||||
.exportFacts dd,
|
||||
.mountMeta dd {
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
color: #123043;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.mountPanel {
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.mountStatus {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.mountTitle {
|
||||
margin: 8px 0 0;
|
||||
font-size: 1.3rem;
|
||||
color: #123043;
|
||||
}
|
||||
|
||||
.mountBadge {
|
||||
flex-shrink: 0;
|
||||
padding: 8px 12px;
|
||||
border-radius: 999px;
|
||||
background: #123043;
|
||||
color: #f7fbfc;
|
||||
font-size: 0.84rem;
|
||||
}
|
||||
|
||||
.copyFields {
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.instructions {
|
||||
padding: 18px 20px;
|
||||
border-radius: 22px;
|
||||
background: #f4f8fa;
|
||||
border: 1px solid rgba(18, 48, 67, 0.08);
|
||||
}
|
||||
|
||||
.instructionsTitle {
|
||||
margin: 0 0 12px;
|
||||
color: #123043;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.instructionsList {
|
||||
padding-left: 20px;
|
||||
color: #304e60;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.inlineCode {
|
||||
padding: 2px 6px;
|
||||
border-radius: 8px;
|
||||
background: rgba(18, 48, 67, 0.08);
|
||||
color: #123043;
|
||||
}
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
|
|
@ -75,7 +295,19 @@
|
|||
padding-inline: 16px;
|
||||
}
|
||||
|
||||
.hero {
|
||||
.hero,
|
||||
.panel {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.panelHeader,
|
||||
.mountStatus,
|
||||
.exportCardTop {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.exportFacts,
|
||||
.mountMeta {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue