refactor: public design review

This commit is contained in:
Carlos Valente
2025-02-15 12:59:06 +01:00
committed by Carlos Valente
parent 1edde03bb4
commit 9c41f8ff6b
20 changed files with 420 additions and 259 deletions
@@ -0,0 +1,5 @@
.viewLogo {
max-width: 100%;
max-height: 100%;
display: block;
}
@@ -1,5 +1,7 @@
import { projectLogoPath } from '../../api/constants';
import './ViewLogo.scss';
interface ViewLogoProps {
name: string;
className: string;
@@ -7,5 +9,11 @@ interface ViewLogoProps {
export default function ViewLogo(props: ViewLogoProps) {
const { name, className } = props;
return <img alt='' src={`${projectLogoPath}/${name}`} className={className} />;
// we wrap the image in a div to help maintain the aspect ratio
return (
<div className={className}>
<img alt='' src={`${projectLogoPath}/${name}`} className='viewLogo' />
</div>
);
}