Skip to content

Commit

Permalink
feat: home page mobile style
Browse files Browse the repository at this point in the history
  • Loading branch information
jojoo-eth committed Dec 16, 2024
1 parent 70d756a commit f91bfd9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions docs/website/components/index/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -489,16 +489,20 @@ const Index = ({
>
<div className="relative w-full">
<img
src="/home/move-vm-light.svg"
src="/home/move-vm-light.png"
alt="features logo"
className="w-full h-auto object-cover transition-opacity duration-300"
style={{ opacity: isMoveVmHovered ? 0 : 1 }}
style={{
opacity: isMoveVmHovered ? 0 : 1,
}}
/>
<img
src="/home/move-vm-dark.svg"
src="/home/move-vm-dark.png"
alt="features logo"
className="w-full h-auto object-cover absolute inset-0 transition-opacity duration-300"
style={{ opacity: isMoveVmHovered ? 1 : 0 }}
style={{
opacity: isMoveVmHovered ? 1 : 0,
}}
/>
</div>
</div>
Expand Down Expand Up @@ -551,7 +555,7 @@ const Index = ({
</div>
<div className="flex flex-wrap justify-center items-center w-full md:w-auto relative cursor-pointer -mt-[7vw]">
<div className="relative w-screen">
<img src="/home/road-sign.svg" alt="road-sign" className="w-screen h-auto" />
<img src="/home/road-sign.png" alt="road-sign" className="w-screen h-auto" />
</div>
<div className="relative w-screen mt-[120px]">
{/* left car */}
Expand All @@ -575,7 +579,7 @@ const Index = ({
${carMoving.right ? 'scale-[0.05] translate-y-[-15vw] translate-x-[-34vw] opacity-0' : ''}`}
style={{ display: carVisibility.right ? 'block' : 'none' }}
/>
<img src="/home/ground.svg" alt="road-sign" className="w-screen h-auto" />
<img src="/home/ground.svg" alt="ground" className="w-screen h-auto" />
<button
className="absolute inset-0 w-1/3 bottom-0 left-[18%] transform -translate-x-1/2 h-full bg-transparent cursor-pointer"
onClick={() => handleCarAnimation('left')}
Expand Down
Binary file added docs/website/public/home/move-vm-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/website/public/home/move-vm-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/website/public/home/move-vm-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/website/public/home/road-sign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f91bfd9

Please sign in to comment.