Skip to content

Commit

Permalink
refactor: move assets folder into public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
devshinthant committed Jul 4, 2024
1 parent 89c695d commit da7fb82
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion components/sections/HeroLottie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ export default function HeroLottie() {
return (
<div className="absolute hidden md:block left-[-50px] top-[-14px] rotate-270">
<LazyLottie
getAnimationData={() => import("@/app/assets/lottie/hero-lottie.json")}
getAnimationData={() =>
import("@/public/assets/lottie/hero-lottie.json")
}
loop
id="hero-lottie"
/>
Expand Down
4 changes: 2 additions & 2 deletions components/sections/HeroSection.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client"

import HeroLines from "@/app/assets/hero/hero-lines.png"
import heroLottieData from "@/app/assets/lottie/hero-lottie.json"
import HeroLines from "@/public/assets/hero/hero-lines.png"
import heroLottieData from "@/public/assets/lottie/hero-lottie.json"
import Image from "next/image"
import Lottie from "react-lottie"
import SocialLinks from "../SocialLinks"
Expand Down
6 changes: 3 additions & 3 deletions components/sections/HeroTool.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useRef } from "react"
import Code from "@/app/assets/hero/code.png"
import HeroSpinner from "@/app/assets/hero/hero-spinner.webp"
import Source from "@/app/assets/hero/source.png"
import Code from "@/public/assets/hero/code.png"
import HeroSpinner from "@/public/assets/hero/hero-spinner.webp"
import Source from "@/public/assets/hero/source.png"
import { gsap } from "gsap"
import Image from "next/image"

Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.

0 comments on commit da7fb82

Please sign in to comment.