-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix comments and sponsors from overflowing + Standardize site headers…
… in social/analytics (#306)
- Loading branch information
1 parent
5e9af52
commit e053f69
Showing
10 changed files
with
84 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { useTranslation } from 'react-i18next' | ||
|
||
import BatchSponsorLogo from '@components/batches/BatchSponsorLogo' | ||
import type { BatchSponsor } from '@services/api' | ||
|
||
type Props = { | ||
readonly sponsors: BatchSponsor[], | ||
} | ||
|
||
const SiteHeaderSponsors = (props: Props) => { | ||
const { t } = useTranslation<'analytics'>() | ||
|
||
return ( | ||
<div className='d-flex flex-wrap gap-2 align-items-center'> | ||
<label className='fw-bold'> | ||
<span className='material-symbols-outlined align-bottom'>group</span> | ||
<span className='ms-1'>{t('analyticsSite.sponsors')}:</span> | ||
</label> | ||
<div className='d-flex flex-wrap gap-4'> | ||
{props.sponsors.map(sponsor => <BatchSponsorLogo key={sponsor.id} sponsor={sponsor} />)} | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default SiteHeaderSponsors |
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
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
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