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 (
<div>
<div className="mb-8 hidden md:block">
<h2 className="text-3xl font-bold sm:text-4xl">Profile</h2>
<p className="mt-2 text-gray-400">Update your profile details below.</p>
<h2 className="text-2xl font-bold sm:text-3xl">Profile</h2>
<p className="mt-0.5 text-gray-400">
Update and set up your public profile below.
</p>
</div>
<UploadProfilePicture
type="avatar"

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

Loading…
Cancel
Save