pedromsfaria commited on
Commit
7edd191
·
verified ·
1 Parent(s): 28eec5f

Upload pages/_app.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. pages/_app.js +36 -0
pages/_app.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import '../styles/globals.css'
2
+ import { useEffect } from 'react'
3
+ import { useRouter } from 'next/router'
4
+
5
+ function MyApp({ Component, pageProps }) {
6
+ const router = useRouter()
7
+
8
+ useEffect(() => {
9
+ // Remove the server-side injected CSS
10
+ const jssStyles = document.querySelector('#jss-server-side')
11
+ if (jssStyles) {
12
+ jssStyles.parentElement.removeChild(jssStyles)
13
+ }
14
+ }, [])
15
+
16
+ return (
17
+ <div className="min-h-screen bg-gray-900 text-white">
18
+ <header className="bg-gray-800 p-4 flex justify-between items-center">
19
+ <h1 className="text-2xl font-bold">Plinko Game</h1>
20
+ <a
21
+ href="https://huggingface.co/spaces/akhaliq/anycoder"
22
+ target="_blank"
23
+ rel="noopener noreferrer"
24
+ className="text-blue-400 hover:text-blue-300 transition-colors"
25
+ >
26
+ Built with anycoder
27
+ </a>
28
+ </header>
29
+ <main className="container mx-auto p-4">
30
+ <Component {...pageProps} />
31
+ </main>
32
+ </div>
33
+ )
34
+ }
35
+
36
+ export default MyApp