-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
569 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
VITE_PINATA_JWT = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySW5mb3JtYXRpb24iOnsiaWQiOiI5ZTU3ZjdlYy1kZGUxLTRiZjYtYWQ5OS0zNGExYzQ3NWRkY2MiLCJlbWFpbCI6ImZlcm5hbmRvbG91aXM1NUBnbWFpbC5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwicGluX3BvbGljeSI6eyJyZWdpb25zIjpbeyJkZXNpcmVkUmVwbGljYXRpb25Db3VudCI6MSwiaWQiOiJGUkExIn0seyJkZXNpcmVkUmVwbGljYXRpb25Db3VudCI6MSwiaWQiOiJOWUMxIn1dLCJ2ZXJzaW9uIjoxfSwibWZhX2VuYWJsZWQiOmZhbHNlLCJzdGF0dXMiOiJBQ1RJVkUifSwiYXV0aGVudGljYXRpb25UeXBlIjoic2NvcGVkS2V5Iiwic2NvcGVkS2V5S2V5IjoiZDc5YTUzMTA1NjljZGZlMzA5OWEiLCJzY29wZWRLZXlTZWNyZXQiOiJmMmFhM2VlZWFlMTIxZTI3NzQwZWY4ZmMyMTcwZTFhYmQ1ODk4ZjI3ODEwMTlhNGVhZjYzYzUwM2JiMDYwNDBkIiwiZXhwIjoxNzYxNDY3NTY3fQ.d3V5-DcdIi7hM-tr-nlesBuZgTEj5EEM_yAmFngQQbo | ||
VITE_PINATA_GATEAWAY = d79a5310569cdfe3099a | ||
VITE_IDANALYZER_API_KEY = JXy7kcF9Tlyyjes2rYmmVtQU0RR6dxck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,4 @@ | |
"tailwindcss": "^3.4.14", | ||
"vite": "^5.4.8" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ const Footer = () => { | |
); | ||
}; | ||
|
||
export default Footer; | ||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* eslint-disable react/prop-types */ | ||
import { useState, useEffect } from "react"; | ||
import { Outlet } from "react-router-dom"; | ||
import Navbar from "./Navbar"; | ||
import Footer from "./Footer"; | ||
import LoadingScreen from "../ui/loading-screen"; | ||
import { BackgroundBeamsWithCollision } from "../ui/background-beams-with-collision"; | ||
|
||
const Layout = ({ handleConnect, principal }) => { | ||
|
||
const [isLoading, setIsLoading] = useState(true); | ||
|
||
useEffect(() => { | ||
setTimeout(() => { | ||
setIsLoading(false); | ||
}, 2500); | ||
}) | ||
|
||
if (isLoading) { | ||
return <LoadingScreen /> | ||
} | ||
|
||
return ( | ||
<> | ||
<Navbar handleConnect={handleConnect} principal={principal} /> | ||
<BackgroundBeamsWithCollision className="min-h-screen h-full w-full flex flex-col items-center justify-center font-poppins"> | ||
<Outlet /> | ||
</BackgroundBeamsWithCollision> | ||
<Footer /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,4 +72,4 @@ const Navbar = ({ principal, handleConnect }) => { | |
); | ||
}; | ||
|
||
export default Navbar; | ||
export default Navbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,4 @@ export const TextGenerateEffect = ({ | |
</div> | ||
</div> | ||
); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,4 +70,4 @@ export const idlFactory = ({ IDL }) => { | |
}; | ||
export const init = ({ IDL }) => { | ||
return []; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
import { idlFactory } from "../idl/service.did"; | ||
import { Actor, HttpAgent } from "@dfinity/agent"; | ||
|
||
|
Oops, something went wrong.