Skip to content

Commit

Permalink
feat: selecting profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
borkopetrovicc committed Jul 16, 2023
1 parent 9bb2fa5 commit b6a978f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/ProfileBox/AddNewProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const AddNewProfile = ({ onClick }: Props) => {
/>
</svg>
</div>
<h2 className={styles.title}>Add new</h2>
<h2 className={styles.title}>Add profile</h2>
</div>
);
};
Expand Down
14 changes: 7 additions & 7 deletions src/components/ProfileBox/ProfileBox.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

.inner {
position: relative;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 4px;
border: 2px solid rgba(95, 114, 152);
border-radius: 74px;
&:hover {
border: 1px solid variables.$white;
opacity: 0.8;
Expand All @@ -27,7 +27,7 @@
position: relative;
width: 140px;
height: 140px;
padding: 10px;
padding: 25px;
img {
position: relative;
transition: all 0.5s ease;
Expand All @@ -49,9 +49,8 @@
justify-content: center;
align-items: center;
// border: 1px solid rgba(255, 255, 255, 0.3);
background: #1F232C;
border: 1px solid transparent;
border-radius: 100px;
border: 1px solid white;
border-radius: 75px;
}
.overlay {
position: absolute;
Expand All @@ -64,12 +63,13 @@
height: 100%;
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 95%);
border: 1px solid transparent;
border-radius: 4px;
border-radius: 75px;
}

&:hover {
.box {
border: 1px solid variables.$white;
border-radius: 50%;
opacity: 0.8;
}
h2 {
Expand Down
6 changes: 3 additions & 3 deletions src/containers/Profiles/Profiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Profiles = ({ editMode = false }: Props) => {
<h2 className={styles.heading}>Create your profile</h2>
</div>
) : (
<h2 className={styles.heading}>{!editMode ? 'Who’s watching?' : 'Manage profiles'}</h2>
<h2 className={styles.heading}>Who’s watching?</h2>
)}
<div className={styles.flex}>
{data?.responseData.collection?.map((profile: Profile) => (
Expand All @@ -93,12 +93,12 @@ const Profiles = ({ editMode = false }: Props) => {
image={profile.avatar_url}
/>
))}
{canAddNew && !editMode && <AddNewProfile onClick={() => navigate('/u/profiles/create')} />}
{canAddNew && <AddNewProfile onClick={() => navigate('/u/profiles/create')} />}
</div>
{activeProfiles > 0 && (
<>
{!editMode ? (
<Button onClick={() => navigate('/u/profiles/edit')} label="Edit profiles" variant="outlined" size="large" />
<Button onClick={() => navigate('/u/profiles/edit')} label="Manage profiles" variant="outlined" size="large" />
) : (
<Button onClick={() => navigate('/u/profiles')} label="Done" variant="outlined" size="large" />
)}
Expand Down

0 comments on commit b6a978f

Please sign in to comment.