simple sign up page

This commit is contained in:
2025-02-14 14:19:11 +01:00
parent f19a38ee0c
commit b4b2abde0f
8 changed files with 248 additions and 24 deletions
+3 -18
View File
@@ -1,24 +1,9 @@
'use client';
import { PostRequest } from '@/platform';
export default function Home() {
const test: PostRequest = {
content: 'Hello, World - Idk, Made this post for testing my API lol',
platforms: [],
};
return (
<button
className="w-max mx-auto my-auto"
onClick={async () => {
await fetch('/api/posts', {
method: 'POST',
body: JSON.stringify(test),
});
}}
>
Post now
</button>
<div>
<h1 className="text-2xl">The ultimate social media manager</h1>
</div>
);
}