Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit 1a88ad7

Browse files
author
Manuel Proß
committed
feat(FE): add responsive two column layout with dummy text
1 parent 7608a71 commit 1a88ad7

File tree

1 file changed

+50
-43
lines changed

1 file changed

+50
-43
lines changed

web/src/app/registration/page.tsx

Lines changed: 50 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ export default function Registration() {
2626
setFormData((prevFormData) => ({ ...prevFormData, [name]: value }));
2727
};
2828
return (
29-
<form className="flex flex-col items-stretch gap-4">
30-
<Input
31-
type="text"
32-
label="Username"
33-
name="username"
34-
id="username"
35-
value={formData.username}
36-
onChange={handleInputChange}
37-
required
38-
/>
39-
<div className="flex justify-between gap-5">
40-
<div className="flex-2/3">
29+
<div className="grid grid-cols-1 xl:grid-cols-2 xl:gap-8">
30+
<form className="flex flex-col items-stretch gap-4">
31+
<Input
32+
type="text"
33+
label="Username"
34+
name="username"
35+
id="username"
36+
value={formData.username}
37+
onChange={handleInputChange}
38+
required
39+
/>
40+
<div className="grid grid-cols-1 xl:grid-cols-2 xl:gap-3">
4141
<Input
4242
type="text"
4343
label="First Name"
@@ -47,8 +47,6 @@ export default function Registration() {
4747
onChange={handleInputChange}
4848
required
4949
/>
50-
</div>
51-
<div className="flex-1">
5250
<Input
5351
type="text"
5452
label="Last Name"
@@ -59,35 +57,44 @@ export default function Registration() {
5957
required
6058
/>
6159
</div>
60+
<Input
61+
type="text"
62+
label="Email Address"
63+
name="email"
64+
id="email"
65+
value={formData.email}
66+
onChange={handleInputChange}
67+
required
68+
/>
69+
<Input
70+
type="password"
71+
label="Password"
72+
name="password"
73+
id="password"
74+
value={formData.password}
75+
onChange={handleInputChange}
76+
required
77+
/>
78+
<Input
79+
type="password"
80+
label="Confirm Password"
81+
name="passwordConfirm"
82+
id="passwordConfirm"
83+
value={formData.passwordConfirm}
84+
onChange={handleInputChange}
85+
required
86+
/>
87+
<input className="btn ml-auto hover:cursor-pointer" type="submit" value="Register" />
88+
</form>
89+
<div>
90+
<h2 className="text-secondary">Please note</h2>
91+
92+
<p>
93+
Lorem ipsum dolor sit amet consectetur adipisicing elit. Vel est adipisci quas, aperiam voluptas,
94+
omnis tempora blanditiis quae fuga eum ullam commodi a perspiciatis provident pariatur sunt
95+
excepturi doloremque! Commodi!
96+
</p>
6297
</div>
63-
<Input
64-
type="text"
65-
label="Email Address"
66-
name="email"
67-
id="email"
68-
value={formData.email}
69-
onChange={handleInputChange}
70-
required
71-
/>
72-
<Input
73-
type="password"
74-
label="Password"
75-
name="password"
76-
id="password"
77-
value={formData.password}
78-
onChange={handleInputChange}
79-
required
80-
/>
81-
<Input
82-
type="password"
83-
label="Confirm Password"
84-
name="passwordConfirm"
85-
id="passwordConfirm"
86-
value={formData.passwordConfirm}
87-
onChange={handleInputChange}
88-
required
89-
/>
90-
<input className="ml-auto" type="submit" value="Register" />
91-
</form>
98+
</div>
9299
);
93100
}

0 commit comments

Comments
 (0)