forked from fasakinhenry/BornPikin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat(profile): Create profile section of the app
- Implement profile section with user details and settings - Ensure integration and functionality within the app Footer: 0.1.16
- Loading branch information
1 parent
678c2b1
commit 0fb42c3
Showing
1 changed file
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,78 @@ | ||
import React from 'react'; | ||
import ProfileImage from "../assets/profile.jpg" | ||
|
||
const Profile = () => { | ||
return ( | ||
<div> | ||
<h1 className='text-2xl font-bold mb-4'>My Profile</h1> | ||
{/* Add profile information and editing functionality here */} | ||
<div className='max-w-4xl mx-auto p-8'> | ||
<div className='flex flex-col items-center mb-6'> | ||
<img | ||
src={ProfileImage} | ||
alt='Profile' | ||
className='w-24 h-24 rounded-full mb-4' | ||
/> | ||
<button className='px-4 py-2 bg-blue-500 text-white rounded-lg'> | ||
Change Picture | ||
</button> | ||
</div> | ||
|
||
<div className='bg-white p-4 rounded-lg shadow mb-6'> | ||
<h2 className='font-semibold mb-4'>Account Details</h2> | ||
<div className='grid grid-cols-1 md:grid-cols-2 gap-4'> | ||
<div> | ||
<label className='block font-medium text-gray-700'>Name</label> | ||
<p className='text-gray-600'>Mama Angel</p> | ||
</div> | ||
<div> | ||
<label className='block font-medium text-gray-700'>Email</label> | ||
<p className='text-gray-600'>[email protected]</p> | ||
</div> | ||
<div> | ||
<label className='block font-medium text-gray-700'>Phone</label> | ||
<p className='text-gray-600'>+1234567890</p> | ||
</div> | ||
<div> | ||
<label className='block font-medium text-gray-700'>Address</label> | ||
<p className='text-gray-600'>123 Street Name, City, Country</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className='bg-white p-4 rounded-lg shadow mb-6'> | ||
<h2 className='font-semibold mb-4'>Health Information</h2> | ||
<div className='grid grid-cols-1 md:grid-cols-2 gap-4'> | ||
<div> | ||
<label className='block font-medium text-gray-700'> | ||
Blood Group | ||
</label> | ||
<p className='text-gray-600'>O+</p> | ||
</div> | ||
<div> | ||
<label className='block font-medium text-gray-700'>Allergies</label> | ||
<p className='text-gray-600'>None</p> | ||
</div> | ||
<div> | ||
<label className='block font-medium text-gray-700'> | ||
Medical Conditions | ||
</label> | ||
<p className='text-gray-600'>None</p> | ||
</div> | ||
<div> | ||
<label className='block font-medium text-gray-700'> | ||
Medications | ||
</label> | ||
<p className='text-gray-600'>None</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className='flex justify-between items-center'> | ||
<button className='px-4 py-2 bg-gray-300 text-gray-800 rounded-lg'> | ||
Settings | ||
</button> | ||
<button className='px-4 py-2 bg-red-600 text-white rounded-lg'> | ||
Logout | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|