0

Logo now uses clamp to determine size

This commit is contained in:
t1enne 2022-07-03 12:34:55 +02:00
parent b279f8f707
commit e73013affb
2 changed files with 5 additions and 5 deletions

View File

@ -1,11 +1,11 @@
.logo {
.root {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden;
width: 120px;
height: 120px;
width: clamp(5vw, 90px, 120px);
height: clamp(5vw, 90px, 120px);
border-radius: 50%;
border-width: 3px;
border-style: solid;
@ -26,4 +26,4 @@
background-size: cover;
background-position: center;
overflow: hidden;
}
}

View File

@ -6,7 +6,7 @@ interface Props {
export default function Logo({ src }: Props) {
return (
<div className={s.logo}>
<div className={s.root}>
<div className={s.container}>
<div className={s.image} style={{ backgroundImage: `url(${src})` }} />
</div>