-
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.
Merge branch 'dev' of https://github.com/bounswe/bounswe2024group2 in…
…to dev
- Loading branch information
Showing
5 changed files
with
193 additions
and
7 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
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
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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import React from 'react'; | ||
import "../../styles/Profile.css"; | ||
|
||
// Sample data | ||
const userProfile = { | ||
name: 'Deniz Coşkuner', | ||
username: '@danzio', | ||
followers: 151, | ||
following: 32, | ||
posts: 15, | ||
portfolios: 1, | ||
comments: 12, | ||
badges: [ | ||
{ label: 'Highliked', icon: '🏅' }, | ||
{ label: 'Creatager', icon: '🏅' } | ||
] | ||
}; | ||
|
||
const ProfilePage = () => { | ||
return ( | ||
<div className="profile-page"> | ||
<div className="profile-container"> | ||
<div className="profile-avatar"> | ||
<span>IMG</span> | ||
</div> | ||
<div className="profile-right-container"> | ||
<div className="profile-stats"> | ||
<div className="stat-item"> | ||
<p>{userProfile.followers} Followers</p> | ||
</div> | ||
<div className="stat-item"> | ||
<p>{userProfile.following} Following</p> | ||
</div> | ||
<div className="stat-item"> | ||
<p>{userProfile.posts} Posts</p> | ||
</div> | ||
<div className="stat-item"> | ||
<p>{userProfile.portfolios} Portfolios</p> | ||
</div> | ||
<div className="stat-item"> | ||
<p>{userProfile.comments} Comments</p> | ||
</div> | ||
</div> | ||
<div className="profile-info"> | ||
<div className="profile-details"> | ||
<h1>{userProfile.name}</h1> | ||
<p>{userProfile.username}</p> | ||
</div> | ||
<div className="profile-badges"> | ||
{userProfile.badges.map((badge, index) => ( | ||
<div key={index} className="badge"> | ||
<span className="badge-icon">{badge.icon}</span> | ||
<span className="badge-label">{badge.label}</span> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<nav className="profile-selector"> | ||
<button className="selector-item">Posts</button> | ||
<button className="selector-item">Portfolios</button> | ||
<button className="selector-item">Comments</button> | ||
<button className="selector-item">Followers</button> | ||
<button className="selector-item">Following</button> | ||
<button className="selector-item">Settings</button> | ||
</nav> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ProfilePage; |
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
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 |
---|---|---|
@@ -0,0 +1,111 @@ | ||
.profile-page { | ||
width: 100%; | ||
padding: 20px; | ||
margin-top: 0; | ||
position: relative; | ||
} | ||
|
||
.profile-container { | ||
display: flex; | ||
align-items: flex-start; | ||
gap: 20px; | ||
} | ||
|
||
.profile-avatar { | ||
width: 150px; | ||
height: 150px; | ||
background-color: #ddd; | ||
border-radius: 50%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: 3em; | ||
} | ||
|
||
.profile-right-container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
width: 100%; | ||
} | ||
|
||
.profile-stats { | ||
display: flex; | ||
gap: 10px; | ||
} | ||
|
||
.stat-item { | ||
height: 30px; | ||
background-color: #4a90e2; | ||
color: white; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
border-radius: 15px; | ||
text-align: center; | ||
display: flex; | ||
align-items: center; | ||
font-size: 12px; | ||
min-width: 80px; | ||
} | ||
|
||
.profile-info { | ||
display: flex; | ||
align-items: center; | ||
margin-top: 15px; | ||
gap: 20px; | ||
} | ||
|
||
.profile-details h1 { | ||
margin: 0; | ||
} | ||
|
||
.profile-badges { | ||
display: flex; | ||
gap: 10px; | ||
} | ||
|
||
.badge { | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
border: 5px solid #4a90e2; | ||
border-radius: 10px; | ||
padding: 5px 10px; | ||
} | ||
|
||
.badge-icon { | ||
font-size: 3em; | ||
} | ||
|
||
.badge-label { | ||
font-size: 14px; | ||
color: #333; | ||
} | ||
|
||
.profile-selector { | ||
display: flex; | ||
gap: 20px; | ||
margin-top: 20px; | ||
border-bottom: 2px solid #ddd; | ||
padding-bottom: 10px; | ||
} | ||
|
||
.selector-item { | ||
background: none; | ||
border: none; | ||
padding: 10px 15px; | ||
font-size: 16px; | ||
color: #333; | ||
cursor: pointer; | ||
transition: color 0.3s, border-bottom 0.3s; | ||
} | ||
|
||
.selector-item:hover { | ||
color: #4a90e2; | ||
} | ||
|
||
.selector-item:focus { | ||
color: #4a90e2; | ||
border-bottom: 2px solid #4a90e2; | ||
outline: none; | ||
} |