Skip to content

Commit

Permalink
fix: improve landing page for mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
avinash2wards committed Sep 23, 2023
1 parent d0c08c7 commit 899a1fd
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/components/participants.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ export default function ParticipantsCard({
};
return (
<>
{isAdmin ? (
<>
<h1 className="text-lg text-primary font-bold">Create a Room</h1>
</>
) : (
<>
<h1 className="text-lg text-primary font-bold">Join a room</h1>
<h1 className="">{`You have been invited to join a room`}</h1>
</>
)}
<form onSubmit={handleSubmit}>
<form onSubmit={handleSubmit} className="flex flex-col gap-4">
<div>
{isAdmin ? (
<>
<h1 className="text-lg text-primary font-bold">Create a Room</h1>
</>
) : (
<>
<h1 className="text-lg text-primary font-bold">Join a room</h1>
<h1 className="">{`You have been invited to join a room`}</h1>
</>
)}
</div>
<div className="form-control">
<input
onChange={(e) => {
Expand All @@ -49,7 +51,7 @@ export default function ParticipantsCard({
)}
/>
</div>
<div className="form-control mt-6 w-fit self-end">
<div className="form-control">
<button
className="btn btn-primary text-base-100 normal-case"
type="submit"
Expand Down

0 comments on commit 899a1fd

Please sign in to comment.