Skip to content

Commit

Permalink
Add Animation (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-tad authored Jul 2, 2023
1 parent bd53d5a commit ab253c6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions app/src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ const { title } = Astro.props as Props;
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<title>{title}</title>
<script
src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"
>

</script>
</head>
<body>
<slot></slot>
Expand Down
2 changes: 0 additions & 2 deletions app/src/layouts/HomeLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ const currentDate: Date = new Date();
text-decoration: none;
}

position: absolute;
bottom: 0;
width: 100%;
/* Set the fixed height of the footer here */
height: 4rem;
Expand Down
12 changes: 11 additions & 1 deletion app/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ import { Button } from "../components";
<Button label="comp 2804" />
</a>
</div>
<div class="animation"><lottie-player
src="./lottie/animation.json"
background="transparent"
speed="1"
loop
autoplay></lottie-player></div>
</div>
</div>
</div>
</HomeLayout>
Expand Down Expand Up @@ -76,7 +83,10 @@ import { Button } from "../components";
flex-direction: column;
justify-content: space-evenly;
align-items: center;
margin-bottom: 3rem;
margin-top: 2rem;
}

.animation {
width: 950px;
}
</style>

0 comments on commit ab253c6

Please sign in to comment.