Skip to content

Commit

Permalink
feat: add BannerUpdate component and update profile banner functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
deepraj21 committed Nov 19, 2024
1 parent be84b4e commit a23ab1f
Show file tree
Hide file tree
Showing 7 changed files with 342 additions and 258 deletions.
9 changes: 9 additions & 0 deletions client/src/components/Settings/BannerUpdate.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@


const BannerUpdate = () => {
return (
<div>BannerUpdate</div>
)
}

export default BannerUpdate
14 changes: 7 additions & 7 deletions client/src/components/Settings/UpdateProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ const UpdateProfile = () => {
};

return (
<div className='p-2 mt-4 grid gap-6 sm:w-80'>
<div className=' mt-4 grid gap-6 sm:w-80'>
<h2 className='text-xl font-semibold dark:text-neutral-100'>
Update Profile
</h2>
<form onSubmit={handleSubmit} className='grid gap-4'>
<ScrollArea className='h-60 overflow-y-auto p-4'>
<div>
<ScrollArea className='h-60 overflow-y-auto p-2'>
<div className='p-2'>
<Label htmlFor='profileImage' className='dark:text-neutral-200 mb-1'>
Profile Image
</Label>
<UploadComponent onFileChange={handleFileChange} />
</div>
<div>
<div className='p-2'>
<Label htmlFor='name' className='dark:text-neutral-200'>
Name
</Label>
Expand All @@ -127,7 +127,7 @@ const UpdateProfile = () => {
className='mt-1'
/>
</div>
<div>
<div className='p-2'>
<Label htmlFor='bio' className='dark:text-neutral-200'>
Bio
</Label>
Expand All @@ -141,7 +141,7 @@ const UpdateProfile = () => {
className='mt-1'
/>
</div>
<div>
<div className='p-2'>
<Label htmlFor='location' className='dark:text-neutral-200'>
Location
</Label>
Expand All @@ -155,7 +155,7 @@ const UpdateProfile = () => {
className='mt-1'
/>
</div>
<div className='grid grid-cols-1 sm:grid-cols-2 gap-6'>
<div className='grid grid-cols-1 sm:grid-cols-2 gap-6 p-2'>
<div>
<Label htmlFor='githubUsername' className='dark:text-neutral-200'>
GitHub
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Settings/WebappSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const WebappSettings = () => {
</h2>
<ModeToggle />
<h2 className='text-xl font-semibold mb-4 dark:text-neutral-100 mt-4'>
Delete Acc
Delete Account
</h2>
<DeleteAccount />
</div>
Expand Down
Loading

0 comments on commit a23ab1f

Please sign in to comment.