Skip to content

Commit

Permalink
redundant div removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvyshnevska committed Nov 28, 2024
1 parent 8467625 commit 3772b0d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
28 changes: 13 additions & 15 deletions FrontEnd/src/components/CompanyCard/CompanyCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,19 @@ export default function CompanyCard({
</div>
</div>
<div className={styles['company-card__logo']}>
<div className={styles['company-card__logo-ellipse']}>
{profile.logo?.path ? (
<img
src={profile.logo?.path}
alt="Logo"
className={styles['company-card__logo-image']}
/>
) : (
<img
className={styles['company-card__logo-image']}
src={`${process.env.REACT_APP_PUBLIC_URL}/companies-logos/default_logo.png`}
alt=""
/>
)}
</div>
{profile.logo?.path ? (
<img
src={profile.logo?.path}
alt="Logo"
className={styles['company-card__logo-image']}
/>
) : (
<img
className={styles['company-card__logo-image']}
src={`${process.env.REACT_APP_PUBLIC_URL}/companies-logos/default_logo.png`}
alt=""
/>
)}
</div>
</Link>
<div className={styles['company-card__star']}>
Expand Down
11 changes: 3 additions & 8 deletions FrontEnd/src/components/CompanyCard/CompanyCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,14 @@
}

.company-card__logo {
width: 50px;
height: 50px;
position: absolute;
right: 20px;
bottom: 152px;
}

.company-card__logo-ellipse {
width: 50px;
height: 50px;
background: var(--company-card-color);
border-radius: 9999px;
border: 1px solid var(--grey-border-color);
position: absolute;
right: 20px;
bottom: 152px;
}

.company-card__logo-image {
Expand Down

0 comments on commit 3772b0d

Please sign in to comment.