Skip to content

Commit

Permalink
profile-detail, img
Browse files Browse the repository at this point in the history
  • Loading branch information
BelousSofiya committed Nov 22, 2023
1 parent 9e0ed21 commit 421d98b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ const CompanyCard = ({ companyData, isAuthorized }) => {
<div className={styles['company-card']}>
<div className={styles['company-card__block']}>
<div className={styles['company-card__image-frame']}>
{companyData.banner_image ? (
<img src={companyData.banner_image} alt="Company Banner" />
) : (
<img
className={styles['company-card__image']}
src={`${process.env.REACT_APP_PUBLIC_URL}/svg/profile-view-image-empty.svg`}
alt={companyData.name}
/>
)}
</div>
<div className={styles['company-card__text-block']}>
<div className={styles['company-card__text-block__header']}>
Expand All @@ -132,7 +141,7 @@ const CompanyCard = ({ companyData, isAuthorized }) => {
<div className={styles['company-card__name-text']}>
<Link
className={styles['company-card__name-text_link']}
to={`/profile/${companyData.id}`}
to={`/profile-detail/${companyData.id}`}
>
{companyData.name}
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@
height: 220px;
}
.company-card__image {
width: 360px;
height: 290px;
width: 103px;
height: 80px;
flex-shrink: 0;
border-radius: 11px;
margin-top: 80px;
margin-left: 125px;
object-fit: cover;
opacity: 0.7;
}
Expand Down

0 comments on commit 421d98b

Please sign in to comment.