From 160b8442696c60bdb51bd840c6115dc350a2aa45 Mon Sep 17 00:00:00 2001 From: susumu tomita Date: Thu, 23 May 2024 07:30:28 +0900 Subject: [PATCH] update user registrationpage --- src/app/dashboard/page.tsx | 38 ++++++++++++--------- src/app/users/page.tsx | 67 ++++++++++++++++++++++++++------------ 2 files changed, 70 insertions(+), 35 deletions(-) diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index 62442aa4..366a8039 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -38,28 +38,30 @@ const Dashboard = () => { return (
-
+
-

ダッシュボード

- +

Dashboard

+
-
-

更新されたメモ

+
+

Recent Posts

    {posts.map(post => (
  • {post.title}

    -

    +

    {post.category} - {post.author.name}

    -
    +
    {new Date(post.createdAt).toLocaleString()}
  • @@ -68,18 +70,24 @@ const Dashboard = () => {
-
-

最近見たメモ

-

現在見ているメモはありません。

+
+

Recently Viewed Posts

+

No posts viewed recently.

- - ユーザーを作成 + + Create User - - APIドキュメント + + API Docs
diff --git a/src/app/users/page.tsx b/src/app/users/page.tsx index 18cc248e..65bb86ca 100644 --- a/src/app/users/page.tsx +++ b/src/app/users/page.tsx @@ -2,6 +2,7 @@ import axios from 'axios'; import { useState } from 'react'; import type { NextPage } from 'next'; +import Navbar from '../components/Navbar'; const CreateUser: NextPage = () => { const [email, setEmail] = useState(''); @@ -25,27 +26,53 @@ const CreateUser: NextPage = () => { }; return ( -
-
- - setEmail(e.target.value)} - /> +
+ +
+

Create User

+ +
+ + setEmail(e.target.value)} + className="mt-1 p-2 block w-full border rounded-md bg-black text-white" + /> +
+
+ + setName(e.target.value)} + className="mt-1 p-2 block w-full border rounded-md bg-black text-white" + /> +
+ +
-
- - setName(e.target.value)} - /> -
- - +
); };