feat: init
This commit is contained in:
7
src/app/analytics/page.tsx
Normal file
7
src/app/analytics/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { AnalyticsWorkspace } from "@/widgets/template-ui";
|
||||
|
||||
export default function Page() {
|
||||
return <AnalyticsWorkspace />;
|
||||
}
|
||||
7
src/app/dashboard/page.tsx
Normal file
7
src/app/dashboard/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { OpsDashboard } from "@/widgets/template-ui";
|
||||
|
||||
export default function Page() {
|
||||
return <OpsDashboard />;
|
||||
}
|
||||
146
src/app/globals.css
Normal file
146
src/app/globals.css
Normal file
@@ -0,0 +1,146 @@
|
||||
@import "tailwindcss";
|
||||
@import "tw-animate-css";
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: var(--font-sans);
|
||||
--font-mono: var(--font-display);
|
||||
--color-sidebar-ring: var(--sidebar-ring);
|
||||
--color-sidebar-border: var(--sidebar-border);
|
||||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||||
--color-sidebar-accent: var(--sidebar-accent);
|
||||
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
||||
--color-sidebar-primary: var(--sidebar-primary);
|
||||
--color-sidebar-foreground: var(--sidebar-foreground);
|
||||
--color-sidebar: var(--sidebar);
|
||||
--color-chart-5: var(--chart-5);
|
||||
--color-chart-4: var(--chart-4);
|
||||
--color-chart-3: var(--chart-3);
|
||||
--color-chart-2: var(--chart-2);
|
||||
--color-chart-1: var(--chart-1);
|
||||
--color-ring: var(--ring);
|
||||
--color-input: var(--input);
|
||||
--color-border: var(--border);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
--color-muted: var(--muted);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
--color-secondary: var(--secondary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
--color-primary: var(--primary);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
--color-popover: var(--popover);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
--color-card: var(--card);
|
||||
--radius-sm: calc(var(--radius) - 4px);
|
||||
--radius-md: calc(var(--radius) - 2px);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) + 4px);
|
||||
}
|
||||
|
||||
:root {
|
||||
--radius: 0.375rem;
|
||||
--background: oklch(0.972 0.004 255);
|
||||
--foreground: oklch(0.16 0.012 255);
|
||||
--card: oklch(1 0 0);
|
||||
--card-foreground: oklch(0.16 0.012 255);
|
||||
--popover: oklch(1 0 0);
|
||||
--popover-foreground: oklch(0.16 0.012 255);
|
||||
--primary: oklch(0.39 0.105 186);
|
||||
--primary-foreground: oklch(0.985 0 0);
|
||||
--secondary: oklch(0.92 0.008 255);
|
||||
--secondary-foreground: oklch(0.16 0.012 255);
|
||||
--muted: oklch(0.94 0.006 255);
|
||||
--muted-foreground: oklch(0.48 0.015 255);
|
||||
--accent: oklch(0.74 0.14 72);
|
||||
--accent-foreground: oklch(0.16 0.012 255);
|
||||
--destructive: oklch(0.58 0.22 28);
|
||||
--border: oklch(0.84 0.008 255);
|
||||
--input: oklch(0.84 0.008 255);
|
||||
--ring: oklch(0.39 0.105 186);
|
||||
--chart-1: oklch(0.39 0.105 186);
|
||||
--chart-2: oklch(0.74 0.14 72);
|
||||
--chart-3: oklch(0.55 0.12 210);
|
||||
--chart-4: oklch(0.72 0.12 145);
|
||||
--chart-5: oklch(0.62 0.16 35);
|
||||
--sidebar: oklch(1 0 0);
|
||||
--sidebar-foreground: oklch(0.16 0.012 255);
|
||||
--sidebar-primary: oklch(0.39 0.105 186);
|
||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
||||
--sidebar-accent: oklch(0.92 0.008 255);
|
||||
--sidebar-accent-foreground: oklch(0.16 0.012 255);
|
||||
--sidebar-border: oklch(0.84 0.008 255);
|
||||
--sidebar-ring: oklch(0.39 0.105 186);
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: oklch(0.145 0.012 255);
|
||||
--foreground: oklch(0.985 0 0);
|
||||
--card: oklch(0.19 0.012 255);
|
||||
--card-foreground: oklch(0.985 0 0);
|
||||
--popover: oklch(0.19 0.012 255);
|
||||
--popover-foreground: oklch(0.985 0 0);
|
||||
--primary: oklch(0.39 0.105 186);
|
||||
--primary-foreground: oklch(0.985 0 0);
|
||||
--secondary: oklch(0.25 0.012 255);
|
||||
--secondary-foreground: oklch(0.985 0 0);
|
||||
--muted: oklch(0.25 0.012 255);
|
||||
--muted-foreground: oklch(0.72 0.012 255);
|
||||
--accent: oklch(0.74 0.14 72);
|
||||
--accent-foreground: oklch(0.985 0 0);
|
||||
--destructive: oklch(0.704 0.191 22.216);
|
||||
--border: oklch(1 0 0 / 12%);
|
||||
--input: oklch(1 0 0 / 15%);
|
||||
--ring: oklch(0.39 0.105 186);
|
||||
--sidebar: oklch(0.19 0.012 255);
|
||||
--sidebar-foreground: oklch(0.985 0 0);
|
||||
--sidebar-primary: oklch(0.39 0.105 186);
|
||||
--sidebar-primary-foreground: oklch(0.985 0 0);
|
||||
--sidebar-accent: oklch(0.25 0.012 255);
|
||||
--sidebar-accent-foreground: oklch(0.985 0 0);
|
||||
--sidebar-border: oklch(1 0 0 / 12%);
|
||||
--sidebar-ring: oklch(0.39 0.105 186);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
font-family: var(--font-sans), system-ui, sans-serif;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
.font-display {
|
||||
font-family: var(--font-display), var(--font-sans), system-ui, sans-serif;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes grainient-shift {
|
||||
0% { transform: translate3d(-3%, -2%, 0) scale(1); }
|
||||
50% { transform: translate3d(3%, 2%, 0) scale(1.04); }
|
||||
100% { transform: translate3d(-3%, -2%, 0) scale(1); }
|
||||
}
|
||||
|
||||
.grainient-field {
|
||||
background:
|
||||
radial-gradient(circle at 18% 20%, oklch(0.84 0.23 142 / 70%), transparent 26%),
|
||||
radial-gradient(circle at 72% 18%, oklch(0.72 0.22 186 / 75%), transparent 28%),
|
||||
radial-gradient(circle at 52% 78%, oklch(0.72 0.22 264 / 65%), transparent 30%),
|
||||
linear-gradient(135deg, oklch(0.92 0.22 116), oklch(0.78 0.2 196));
|
||||
animation: grainient-shift 12s ease-in-out infinite;
|
||||
}
|
||||
42
src/app/layout.tsx
Normal file
42
src/app/layout.tsx
Normal file
@@ -0,0 +1,42 @@
|
||||
import type { Metadata } from "next";
|
||||
import { IBM_Plex_Mono, Inter } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import { ThemeProvider } from "@/shared/hooks/theme-provider";
|
||||
import { ThemeMessageListener } from "@/shared/hooks/theme-message-listener";
|
||||
import { SiteHeader, SiteFooter } from "@/widgets/template-ui";
|
||||
|
||||
const mono = IBM_Plex_Mono({
|
||||
variable: "--font-display",
|
||||
weight: ["400", "500", "600", "700"],
|
||||
subsets: ["latin", "cyrillic"],
|
||||
});
|
||||
|
||||
const sans = Inter({
|
||||
variable: "--font-sans",
|
||||
weight: ["400", "500", "600", "700", "800"],
|
||||
subsets: ["latin", "cyrillic"],
|
||||
});
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "FreightOps Control — logistics dashboard",
|
||||
description: "Утилитарный ops dashboard-шаблон для fulfillment, доставок, возвратов и аналитики.",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return (
|
||||
<html lang="ru" suppressHydrationWarning>
|
||||
<body className={`${mono.variable} ${sans.variable} antialiased`}>
|
||||
<ThemeProvider attribute="class" defaultTheme="light" enableSystem disableTransitionOnChange>
|
||||
<ThemeMessageListener />
|
||||
<SiteHeader />
|
||||
<main>{children}</main>
|
||||
<SiteFooter />
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
7
src/app/page.tsx
Normal file
7
src/app/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { OpsDashboard } from "@/widgets/template-ui";
|
||||
|
||||
export default function Page() {
|
||||
return <OpsDashboard />;
|
||||
}
|
||||
7
src/app/returns/page.tsx
Normal file
7
src/app/returns/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { ReturnsWorkspace } from "@/widgets/template-ui";
|
||||
|
||||
export default function Page() {
|
||||
return <ReturnsWorkspace />;
|
||||
}
|
||||
7
src/app/routes/page.tsx
Normal file
7
src/app/routes/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { RoutesWorkspace } from "@/widgets/template-ui";
|
||||
|
||||
export default function Page() {
|
||||
return <RoutesWorkspace />;
|
||||
}
|
||||
7
src/app/settings/page.tsx
Normal file
7
src/app/settings/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { SettingsWorkspace } from "@/widgets/template-ui";
|
||||
|
||||
export default function Page() {
|
||||
return <SettingsWorkspace />;
|
||||
}
|
||||
7
src/app/shipments/page.tsx
Normal file
7
src/app/shipments/page.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { ShipmentControl } from "@/widgets/template-ui";
|
||||
|
||||
export default function Page() {
|
||||
return <ShipmentControl />;
|
||||
}
|
||||
Reference in New Issue
Block a user