Update UI for public form

pull/5494/head
Kamran Ahmed 8 months ago
parent f0c8121d42
commit a42d9cfb64
  1. 6
      src/components/UpdateProfile/UpdateProfileForm.tsx
  2. 32
      src/components/UpdateProfile/UpdatePublicProfileForm.tsx

@ -69,8 +69,10 @@ export function UpdateProfileForm() {
return ( return (
<div> <div>
<div className="mb-8 hidden md:block"> <div className="mb-8 hidden md:block">
<h2 className="text-3xl font-bold sm:text-4xl">Profile</h2> <h2 className="text-2xl font-bold sm:text-3xl">Profile</h2>
<p className="mt-2 text-gray-400">Update your profile details below.</p> <p className="mt-0.5 text-gray-400">
Update and set up your public profile below.
</p>
</div> </div>
<UploadProfilePicture <UploadProfilePicture
type="avatar" type="avatar"

@ -203,8 +203,13 @@ export function UpdatePublicProfileForm() {
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
<h3 className="text-2xl font-bold">Public Profile</h3> <h3 className="text-2xl font-bold">Public Profile</h3>
{publicProfileUrl && ( {publicProfileUrl && (
<a href={publicProfileUrl} target="_blank" className="shrink-0"> <a
<ArrowUpRight className="h-6 w-6 stroke-[3]" /> href={publicProfileUrl}
target="_blank"
className="flex shrink-0 flex-row items-center gap-1 rounded-md border border-black py-0.5 pl-1 pr-1.5 text-xs transition-colors hover:bg-black hover:text-white"
>
<ArrowUpRight className="h-3 w-3 stroke-[3]" />
Visit Profile
</a> </a>
)} )}
</div> </div>
@ -491,8 +496,8 @@ export function UpdatePublicProfileForm() {
/> />
</div> </div>
<div> <div className="flex flex-col gap-2">
<div className="flex items-center gap-2"> <div className="flex select-none items-center gap-2 rounded-md border px-2 hover:bg-gray-100">
<input <input
type="checkbox" type="checkbox"
name="isEmailVisible" name="isEmailVisible"
@ -500,12 +505,15 @@ export function UpdatePublicProfileForm() {
checked={isEmailVisible} checked={isEmailVisible}
onChange={(e) => setIsEmailVisible(e.target.checked)} onChange={(e) => setIsEmailVisible(e.target.checked)}
/> />
<label htmlFor="isEmailVisible" className=""> <label
Show my Email htmlFor="isEmailVisible"
className="flex-grow cursor-pointer py-1.5"
>
Make my email public
</label> </label>
</div> </div>
<div className="flex select-none items-center gap-2"> <div className="flex select-none items-center gap-2 rounded-md border px-2 hover:bg-gray-100">
<input <input
type="checkbox" type="checkbox"
name="isAvailableForHire" name="isAvailableForHire"
@ -513,15 +521,13 @@ export function UpdatePublicProfileForm() {
checked={isAvailableForHire} checked={isAvailableForHire}
onChange={(e) => setIsAvailableForHire(e.target.checked)} onChange={(e) => setIsAvailableForHire(e.target.checked)}
/> />
<label htmlFor="isAvailableForHire" className=""> <label
htmlFor="isAvailableForHire"
className="flex-grow cursor-pointer py-1.5"
>
Available for Hire Available for Hire
</label> </label>
</div> </div>
{isAvailableForHire && (
<p className="mt-1 text-sm text-slate-500">
Make sure to keep your progress updated for potential employers.
</p>
)}
</div> </div>
<button <button

Loading…
Cancel
Save