Skip to content

Commit 342da52

Browse files
committed
created input element and styled it
1 parent e8f6bc3 commit 342da52

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

www/src/pages/secret.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ import { trpc } from "../utils/trpc";
1515
const secret: NextPage = () => {
1616
return (
1717
<>
18-
<input
19-
type="password"
20-
required
21-
placeholder="password"
22-
className="block w-40 rounded-md border border-gray-300 px-5 py-3 text-base text-gray-900 placeholder-gray-500 shadow-sm focus:border-rose-500 focus:ring-rose-500">
23-
</input>
24-
<button>Submit</button>
18+
<div className = 'flex h-screen items-center justify-center'>
19+
<input
20+
type="password"
21+
required
22+
placeholder="password"
23+
className="block w-50 rounded-md border border-gray-300 px-5 py-3 text-base text-gray-900 placeholder-gray-500 shadow-sm focus:border-rose-500 focus:ring-rose-500 mr-8">
24+
</input>
25+
<button className="blockrounded-md border rounded border-transparent bg-rose-500 px-5 py-3 text-base font-medium text-white shadow hover:bg-rose-600 focus:outline-none focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:px-10">Submit</button>
26+
</div>
2527
</>
2628
);
2729
};

0 commit comments

Comments
 (0)