feat: add create article form and admin page for article management
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import { siteConfig } from '@/site.config';
|
||||
import CreateArticleForm from '@/ui/components/internal/create-article-form';
|
||||
|
||||
const Home = async () => {
|
||||
const AdminPage = async () => {
|
||||
return (
|
||||
<div className='flex flex-col items-center justify-center'>
|
||||
<h1 className='mb-4 text-4xl font-bold'>Admin</h1>
|
||||
<p className='text-lg'>Welcome {siteConfig.name}!</p>
|
||||
<div className='container mx-auto py-10 min-h-3/4'>
|
||||
<div className='h-full rounded-lg border border-border bg-card p-6'>
|
||||
<h2 className='mb-6 text-2xl font-bold'>Create New Article</h2>
|
||||
<CreateArticleForm />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Home;
|
||||
export default AdminPage;
|
||||
|
||||
Reference in New Issue
Block a user