add image upload, fix styles

This commit is contained in:
smanylov
2025-12-09 16:35:47 +07:00
parent 7e485ee524
commit c8e8be8935
28 changed files with 547 additions and 83 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
import NavLinks from '@/app/ui/nav-links'
import styles from '@/app/page.module.scss'
import styles from '@/app/styles/page.module.scss'
import HeaderPanel from '../ui/header/headerPanel';
import { getQueryClient } from '@/app/providers/getQueryClient';
import { HydrationBoundary, dehydrate } from '@tanstack/react-query';
import { getUserData } from '@/app/lib/action';
import { getUserData } from '@/app/actions/action';
export default async function Layout({ children }: { children: React.ReactNode }) {
const queryClient = getQueryClient();
@@ -19,7 +19,7 @@ export default async function Layout({ children }: { children: React.ReactNode }
<div className="flex">
<HydrationBoundary state={dehydrate(queryClient)}>
<NavLinks />
<div className={`${styles.mainContainter}`}>
<div className={`${styles['main-containter']}`}>
<HeaderPanel />
<main>
{children}
+14
View File
@@ -0,0 +1,14 @@
import ProtectedFilesTable from '@/app/ui/marking-page/protected-files-table';
import ProtectionSummary from '@/app/ui/marking-page/protection-summary';
import TestSection from '@/app/ui/marking-page/test-section';
export default function Page() {
return (
<div>
<h1 className="page-title">Защита аудио</h1>
<ProtectionSummary />
<TestSection />
<ProtectedFilesTable />
</div>
)
}
+3 -3
View File
@@ -1,14 +1,14 @@
import ProtectedFilesTable from '@/app/ui/marking-page/protected-files-table';
import ProtectionSummary from '@/app/ui/marking-page/protection-summary';
import TestSection from '@/app/ui/marking-page/test-section';
import UploadSection from '@/app/ui/marking-page/upload-section';
import UploadSectionImage from '@/app/ui/marking-page/upload-section-image';
export default function Page() {
return (
<div>
<h1 className="page-title">🛡 Защита изображений</h1>
<h1 className="page-title">Защита изображений</h1>
<ProtectionSummary />
<UploadSection />
<UploadSectionImage />
<TestSection />
<ProtectedFilesTable />
</div>
+14
View File
@@ -0,0 +1,14 @@
import ProtectedFilesTable from '@/app/ui/marking-page/protected-files-table';
import ProtectionSummary from '@/app/ui/marking-page/protection-summary';
import TestSection from '@/app/ui/marking-page/test-section';
export default function Page() {
return (
<div>
<h1 className="page-title">Защита видео</h1>
<ProtectionSummary />
<TestSection />
<ProtectedFilesTable />
</div>
)
}