Skip to content

Commit

Permalink
feat: add lottie anims to index page
Browse files Browse the repository at this point in the history
remove lottie example page
  • Loading branch information
sragabor committed Jan 24, 2024
1 parent 3ab07f3 commit 0217b3c
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 367 deletions.
1 change: 0 additions & 1 deletion src/anim/anim-p1.json

This file was deleted.

1 change: 0 additions & 1 deletion src/anim/groovyWalk.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/anim/anim-p3.json → src/anim/trans-anim-1.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/anim/anim-p2.json → src/anim/trans-anim-2.json

Large diffs are not rendered by default.

29 changes: 0 additions & 29 deletions src/components/lottie-version-1.js

This file was deleted.

225 changes: 0 additions & 225 deletions src/components/lottie-version-2.js

This file was deleted.

39 changes: 0 additions & 39 deletions src/components/lottie-version-3.js

This file was deleted.

4 changes: 4 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import Seo from "../components/seo";
import HomeHeroSection from "../components/sections/home-hero-section";

import TwoColumnH2 from "../components/sections/two-column-h2";
import lottiAnim1 from "../anim/trans-anim-1.json";
import lottiAnim2 from "../anim/trans-anim-2.json";

const IndexPage = () => {
const [isModalOpen, setIsModalOpen] = useState(false);
Expand Down Expand Up @@ -57,6 +59,7 @@ const IndexPage = () => {
image={"graph-scale.png"}
buttonPrimaryTitle={"Learn Celestia"}
buttonPrimaryUrl={"/what-is-celestia/"}
anim={lottiAnim1}
/>
<TwoColumnH2
direction={"rtl"}
Expand All @@ -70,6 +73,7 @@ const IndexPage = () => {
buttonPrimaryUrl={"/build/"}
buttonSecondaryTitle={"Deploy"}
buttonSecondaryUrl={"/build#deploy"}
anim={lottiAnim2}
/>

<section id={`${heroData.buttons[1]?.url.replace(/\s+/g, "-").toLowerCase()}`} className='explore-celestia'>
Expand Down
70 changes: 0 additions & 70 deletions src/pages/lottie.js

This file was deleted.

0 comments on commit 0217b3c

Please sign in to comment.