Skip to content

Commit

Permalink
Merge pull request #199 from Tinna23/feat/EditProfilePage
Browse files Browse the repository at this point in the history
Feat: Implement edit Profile page UI
  • Loading branch information
Ibinola authored Feb 27, 2025
2 parents 33b6ede + 3d1e7c0 commit d5fc4bc
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/app/(root)/edit-profile/page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import EditProfile from '../../../components/EditProfile'
import React from 'react'
// import EditProfile from '../../components/EditProfile'

const page = () => {
return (
<div>
<EditProfile />
</div>
)
}

export default page
80 changes: 80 additions & 0 deletions frontend/components/EditProfile.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
"use client"
import { Camera, ChevronDown } from "lucide-react"
import Image from "next/image"

export default function ProfilePage() {
return (
<div className="min-h-auto bg-[#f5f5f5]">

{/* Main Content */}
<main className="flex justify-center py-6">
<div className="bg-white w-full max-w-2xl p-5 rounded-lg shadow-sm">
{/* Profile Picture */}
<div className="flex justify-center mb-8">
<div className="relative">
<div className="w-32 h-32 rounded-full bg-[#f5f5f5] border-4 border-[#f5f5f5] overflow-hidden">
<Image
src="/john.png"
alt="Profile picture"
width={128}
height={128}
className="object-cover"
/>
</div>
<div className="absolute bottom-0 right-0 bg-[#f5f5f5] p-2 rounded-full">
<Camera size={20} className="text-[#464646]" />
</div>
</div>
</div>

{/* Form Fields */}
<div className="space-y-6">
<div>
<label htmlFor="fullName" className="block text-[#464646] mb-2">
Full Name
</label>
<input
id="fullName"
type="text"
placeholder="John Elliot Stones"
onChange={(e) => setFullName(e.target.value)}
className="w-full px-4 py-3 border border-[#828282] rounded-md"
/>
</div>

<div>
<label htmlFor="username" className="block text-[#464646] mb-2">
Username
</label>
<input
id="username"
type="text"
placeholder="Johnny"
onChange={(e) => setUsername(e.target.value)}
className="w-full px-4 py-3 border border-[#828282] rounded-md"
/>
</div>

<div>
<label htmlFor="email" className="block text-[#464646] mb-2">
Email
</label>
<input
id="email"
type="email"
placeholder="[email protected]"
onChange={(e) => setEmail(e.target.value)}
className="w-full px-4 py-3 border border-[#828282] rounded-md"
/>
</div>

<div className="flex justify-end">
<button className="bg-[#797979] hover:bg-[#696969] text-white px-8 py-2 rounded-full">Save</button>
</div>
</div>
</div>
</main>
</div>
)
}

Binary file added frontend/public/john.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d5fc4bc

Please sign in to comment.