login and register tabs, initial user dashboard
This commit is contained in:
26
client/src/components/auth/Guest.tsx
Normal file
26
client/src/components/auth/Guest.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user