mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-03 20:30:48 +04:00
Work on game edit
This commit is contained in:
@@ -35,32 +35,30 @@ export default function Login() {
|
||||
className="flex flex-col items-center justify-evenly"
|
||||
>
|
||||
<h2 className="pb-4 text-4xl">.Torrent</h2>
|
||||
{(["username", "password"] as ("username" | "password")[]).map(
|
||||
(field) => (
|
||||
<label
|
||||
className="flex flex-col items-start relative w-64 py-1"
|
||||
key={field}
|
||||
>
|
||||
<input
|
||||
{...register(field)}
|
||||
className="peer/search w-full rounded-lg bg-bg4 px-2 h-10"
|
||||
placeholder=" "
|
||||
autoComplete="off"
|
||||
/>
|
||||
<span
|
||||
className="peer-focus/search:opacity-0
|
||||
{(["username", "password"] as (keyof LoginForm)[]).map((field) => (
|
||||
<label
|
||||
className="flex flex-col items-start relative w-64 py-1"
|
||||
key={field}
|
||||
>
|
||||
<input
|
||||
{...register(field)}
|
||||
className="peer/search w-full rounded-lg bg-bg4 px-2 h-10"
|
||||
placeholder=" "
|
||||
autoComplete="off"
|
||||
/>
|
||||
<span
|
||||
className="peer-focus/search:opacity-0
|
||||
peer-[:not(:placeholder-shown)]/search:opacity-0
|
||||
transition-opacity h-0 flex items-center relative bottom-5 left-4
|
||||
text-lg"
|
||||
>
|
||||
{loginFormFieldNames[field]}
|
||||
</span>
|
||||
<p className="text-sm text-err w-full text-center">
|
||||
{errors[field]?.message}
|
||||
</p>
|
||||
</label>
|
||||
)
|
||||
)}
|
||||
>
|
||||
{loginFormFieldNames[field]}
|
||||
</span>
|
||||
<p className="text-sm text-err w-full text-center">
|
||||
{errors[field]?.message}
|
||||
</p>
|
||||
</label>
|
||||
))}
|
||||
|
||||
<input
|
||||
type="submit"
|
||||
|
||||
Reference in New Issue
Block a user