Add new features and enhancements to the WebUI and dashboard components
- Updated package.json to include new dependencies: `@radix-ui/react-dialog` and `cmdk`. - Enhanced global styles in globals.css for improved visual depth in dark mode. - Refactored dashboard page components to improve layout and accessibility, including new icons and responsive design adjustments. - Implemented suspense handling in commands page for better loading states. - Improved sidebar navigation with new icons and mobile responsiveness. - Added FieldAnchor components across various forms for better accessibility and structure. - Enhanced commands manager with search parameter handling for improved user experience. - Updated multiple module forms to include FieldAnchor for consistent layout and accessibility.
This commit is contained in:
@@ -9,7 +9,9 @@
|
||||
--secondary: #f1f1f5;
|
||||
--secondary-foreground: #111116;
|
||||
--border: #e4e4ea;
|
||||
--ring: #6366f1;
|
||||
--radius: 0.625rem;
|
||||
--hero-glow: rgba(99, 102, 241, 0.12);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@@ -22,6 +24,7 @@
|
||||
--secondary: #1b1b22;
|
||||
--secondary-foreground: #e6e6ea;
|
||||
--border: #23232b;
|
||||
--hero-glow: rgba(99, 102, 241, 0.18);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,10 +42,11 @@ body {
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
|
||||
background: var(--background);
|
||||
color: var(--foreground);
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -72,6 +76,14 @@ a {
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 40;
|
||||
background: color-mix(in srgb, var(--background) 80%, transparent);
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
header .bar {
|
||||
display: flex;
|
||||
height: 3.5rem;
|
||||
@@ -82,8 +94,9 @@ header .bar {
|
||||
.brand {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
gap: 0.625rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.brand img {
|
||||
@@ -110,12 +123,12 @@ nav {
|
||||
font-weight: 500;
|
||||
border: 1px solid transparent;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
|
||||
transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
|
||||
}
|
||||
|
||||
.btn-lg {
|
||||
height: 2.75rem;
|
||||
padding: 0 1.25rem;
|
||||
padding: 0 1.35rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
@@ -126,6 +139,7 @@ nav {
|
||||
|
||||
.btn-primary:hover {
|
||||
filter: brightness(0.95);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
@@ -152,17 +166,35 @@ main {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.hero-section::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -20% 20% auto;
|
||||
height: 55%;
|
||||
background: radial-gradient(ellipse at center, var(--hero-glow), transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hero {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2rem;
|
||||
padding-top: 4rem;
|
||||
gap: 1.5rem;
|
||||
min-height: calc(100vh - 3.5rem);
|
||||
justify-content: center;
|
||||
padding-top: 3.5rem;
|
||||
padding-bottom: 4rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.hero {
|
||||
padding-top: 5rem;
|
||||
padding-top: 4rem;
|
||||
padding-bottom: 5rem;
|
||||
}
|
||||
}
|
||||
@@ -170,45 +202,65 @@ main {
|
||||
.hero-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
gap: 0.875rem;
|
||||
animation: rise 0.55s ease both;
|
||||
}
|
||||
|
||||
.hero-brand img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
.hero-brand h1 {
|
||||
margin: 0;
|
||||
font-size: 2.25rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.025em;
|
||||
font-size: 2.75rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.04em;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.hero h1 {
|
||||
font-size: 3rem;
|
||||
.hero-brand h1 {
|
||||
font-size: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
.hero p {
|
||||
.hero-headline {
|
||||
margin: 0;
|
||||
max-width: 42rem;
|
||||
font-size: 1.125rem;
|
||||
max-width: 36rem;
|
||||
font-size: 1.35rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
line-height: 1.35;
|
||||
animation: rise 0.55s ease 0.08s both;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.hero-headline {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.hero-subtitle {
|
||||
margin: 0;
|
||||
max-width: 36rem;
|
||||
font-size: 1.05rem;
|
||||
color: var(--muted-foreground);
|
||||
animation: rise 0.55s ease 0.16s both;
|
||||
}
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
animation: rise 0.55s ease 0.24s both;
|
||||
}
|
||||
|
||||
.stats {
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
padding-top: 3.5rem;
|
||||
padding-bottom: 3.5rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
@@ -217,63 +269,75 @@ main {
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
.stat-card {
|
||||
background: var(--card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 1rem 1.25rem;
|
||||
padding: 1.35rem 1.5rem;
|
||||
transition: border-color 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.stat-card:hover {
|
||||
border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.card-label {
|
||||
margin: 0 0 0.5rem;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.06em;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted-foreground);
|
||||
}
|
||||
|
||||
.card-value {
|
||||
margin: 0;
|
||||
font-size: 1.875rem;
|
||||
font-weight: 600;
|
||||
font-size: 2rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.03em;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.features {
|
||||
padding-top: 3rem;
|
||||
padding-bottom: 3rem;
|
||||
padding-top: 3.5rem;
|
||||
padding-bottom: 4rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2rem;
|
||||
gap: 2.5rem;
|
||||
}
|
||||
|
||||
.features > .intro h2 {
|
||||
margin: 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 600;
|
||||
font-size: 1.75rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
|
||||
.features > .intro p {
|
||||
margin: 0.5rem 0 0;
|
||||
max-width: 36rem;
|
||||
color: var(--muted-foreground);
|
||||
}
|
||||
|
||||
.group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
gap: 0.85rem;
|
||||
}
|
||||
|
||||
.group h3 {
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.05em;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 650;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--muted-foreground);
|
||||
}
|
||||
|
||||
.grid {
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
gap: 0.85rem;
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
@@ -288,16 +352,31 @@ main {
|
||||
}
|
||||
}
|
||||
|
||||
.module-card {
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 1.1rem 1.2rem;
|
||||
transition: border-color 0.2s ease, background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.module-card:hover {
|
||||
border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
|
||||
background: color-mix(in srgb, var(--primary) 6%, transparent);
|
||||
}
|
||||
|
||||
.module-title {
|
||||
margin: 0 0 0.5rem;
|
||||
margin: 0 0 0.4rem;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.module-desc {
|
||||
margin: 0;
|
||||
font-size: 0.875rem;
|
||||
color: var(--muted-foreground);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
footer .bar {
|
||||
@@ -404,3 +483,27 @@ footer a:hover {
|
||||
.legal-lines {
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
@keyframes rise {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.hero-brand,
|
||||
.hero-headline,
|
||||
.hero-subtitle,
|
||||
.actions,
|
||||
.stat-card,
|
||||
.module-card,
|
||||
.btn {
|
||||
animation: none !important;
|
||||
transition: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user