Skip to content

Commit

Permalink
loader
Browse files Browse the repository at this point in the history
  • Loading branch information
g4ze committed Oct 20, 2024
1 parent bc132ac commit 37264c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/Loading.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

import Image from "next/image";
import { useState, useEffect } from "react";
import gdg_logo from "../../public/assets/logo_gdg.png";

export default function LoadingScreen() {
const publicPath = process.env.NEXT_PUBLIC_PUBLIC_PATH ;

const [loading, setLoading] = useState(true);

useEffect(() => {
Expand All @@ -23,7 +24,7 @@ export default function LoadingScreen() {
<div className="fixed inset-0 flex items-center justify-center bg-white z-50">
<div className="animate-spin">
<Image
src={gdg_logo}
src={publicPath+"assets/logo_gdg.png"}
alt="GDG Logo"
width={50}
height={25}
Expand Down

0 comments on commit 37264c7

Please sign in to comment.