login and register tabs, initial user dashboard

This commit is contained in:
Nathaniel Tampus
2023-03-19 20:53:59 +08:00
parent 20b26448ae
commit f564298c93
5 changed files with 320 additions and 52 deletions

View File

@@ -0,0 +1,26 @@
"use client";
export default function Guest({ currentName }: { currentName: string }) {
return (
<div className="form-control">
<label className="label">
<span className="label-text">Hello, {currentName}!</span>
</label>
<label className="input-group">
<span>Name</span>
<input
type="text"
pattern="[A-Za-z0-9]+"
title="Alphanumeric characters only"
id="guestName"
name="guestName"
placeholder="Enter name here..."
className="input input-bordered w-full"
maxLength={16}
minLength={2}
required
/>
</label>
</div>
);
}