mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-21 14:47:41 +01:00
Make lightbar wider on mobile, move to top
This commit is contained in:
parent
fe7c496e0a
commit
b94b6b0249
2 changed files with 61 additions and 44 deletions
|
@ -19,7 +19,7 @@ export function Navigation(props: NavigationProps) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="absolute inset-x-0 top-0 flex h-[88px] items-center justify-center">
|
<div className="absolute inset-x-0 top-0 flex h-[88px] items-center justify-center">
|
||||||
<div className="absolute inset-x-0 mt-20 flex items-center sm:mt-0">
|
<div className="absolute inset-x-0 -mt-[22%] flex items-center sm:mt-0">
|
||||||
<Lightbar />
|
<Lightbar />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,14 +1,29 @@
|
||||||
.lightbar, .lightbar-visual {
|
.lightbar, .lightbar-visual {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 150vw;
|
width: 500vw;
|
||||||
height: 800px;
|
height: 800px;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.lightbar {
|
||||||
|
left: 50vw;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
@screen sm {
|
||||||
|
.lightbar, .lightbar-visual {
|
||||||
|
width: 150vw;
|
||||||
|
}
|
||||||
|
|
||||||
.lightbar {
|
.lightbar {
|
||||||
left: -25vw;
|
left: -25vw;
|
||||||
|
transform: initial;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lightbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -46,6 +61,7 @@
|
||||||
|
|
||||||
opacity: 0.25;
|
opacity: 0.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
to {
|
to {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
@ -55,6 +71,7 @@
|
||||||
0% {
|
0% {
|
||||||
transform: rotate(180deg) translateZ(0px) translateY(400px) scaleX(0.8);
|
transform: rotate(180deg) translateZ(0px) translateY(400px) scaleX(0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
100% {
|
100% {
|
||||||
transform: rotate(180deg) translateZ(0px) translateY(400px) scaleX(1);
|
transform: rotate(180deg) translateZ(0px) translateY(400px) scaleX(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue