created base structure of admin page

This commit is contained in:
Janis
2023-01-12 09:15:47 +01:00
parent f657485d33
commit 8f7092cd72
5 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import React from "react";
export default function AdminArticlesCreate() {
return (
<div>
<h1>Create a new article</h1>
</div>
);
}

View File

@@ -0,0 +1,13 @@
import React from "react";
function AdminArticlesPage() {
return (
<div>
<h1>Page to manage articles</h1>
<a href="/admin/articles/create">create new article</a> <br />
<p>List of existing articles</p>
</div>
);
}
export default AdminArticlesPage;

View File

@@ -0,0 +1,9 @@
import React from "react";
export default function AdminCategoriesCreate() {
return (
<div>
<h1>Create a new category</h1>
</div>
);
}

View File

@@ -0,0 +1,11 @@
import React from "react";
export default function AdminCategoriesPage() {
return (
<div>
<h1>Page to manage categories</h1>
<a href="/admin/categories/create">create new category</a> <br />
<p>List of existing category</p>
</div>
);
}

10
app/admin/page.tsx Normal file
View File

@@ -0,0 +1,10 @@
import React from "react";
export default function AdminPage() {
return (
<div>
<h1>AdminPage to manage explainegy</h1>
<a href="/admin/articles/">articles</a> <a href="/admin/categories/">categories</a> <br />
</div>
);
}