Logo now uses clamp to determine size
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
.logo {
|
.root {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: 120px;
|
width: clamp(5vw, 90px, 120px);
|
||||||
height: 120px;
|
height: clamp(5vw, 90px, 120px);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border-width: 3px;
|
border-width: 3px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
@@ -26,4 +26,4 @@
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ interface Props {
|
|||||||
|
|
||||||
export default function Logo({ src }: Props) {
|
export default function Logo({ src }: Props) {
|
||||||
return (
|
return (
|
||||||
<div className={s.logo}>
|
<div className={s.root}>
|
||||||
<div className={s.container}>
|
<div className={s.container}>
|
||||||
<div className={s.image} style={{ backgroundImage: `url(${src})` }} />
|
<div className={s.image} style={{ backgroundImage: `url(${src})` }} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user