Spaces:
Build error
Build error
Mehdi commited on
Upload pages/_app.js with huggingface_hub
Browse files- pages/_app.js +18 -20
pages/_app.js
CHANGED
|
@@ -1,20 +1,8 @@
|
|
| 1 |
-
import { useEffect } from 'react'
|
| 2 |
-
import { Toaster } from 'react-hot-toast'
|
| 3 |
import '../styles/globals.css'
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
function
|
| 6 |
-
useEffect(() => {
|
| 7 |
-
// Initialize RTL and Persian language
|
| 8 |
-
document.documentElement.dir = 'rtl'
|
| 9 |
-
document.documentElement.lang = 'fa'
|
| 10 |
-
|
| 11 |
-
// Load Persian font
|
| 12 |
-
const link = document.createElement('link')
|
| 13 |
-
link.href = 'https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap'
|
| 14 |
-
link.rel = 'stylesheet'
|
| 15 |
-
document.head.appendChild(link)
|
| 16 |
-
}, [])
|
| 17 |
-
|
| 18 |
return (
|
| 19 |
<>
|
| 20 |
<Component {...pageProps} />
|
|
@@ -23,14 +11,24 @@ function MyApp({ Component, pageProps }) {
|
|
| 23 |
toastOptions={{
|
| 24 |
duration: 4000,
|
| 25 |
style: {
|
| 26 |
-
background: '#
|
| 27 |
color: '#fff',
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
},
|
| 30 |
|
| 31 |
/>
|
| 32 |
</>
|
| 33 |
)
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
export default MyApp
|
|
|
|
|
|
|
|
|
|
| 1 |
import '../styles/globals.css'
|
| 2 |
+
import { Toaster } from 'react-hot-toast'
|
| 3 |
+
import { motion } from 'framer-motion'
|
| 4 |
|
| 5 |
+
export default function App({ Component, pageProps }) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
return (
|
| 7 |
<>
|
| 8 |
<Component {...pageProps} />
|
|
|
|
| 11 |
toastOptions={{
|
| 12 |
duration: 4000,
|
| 13 |
style: {
|
| 14 |
+
background: '#1f2937',
|
| 15 |
color: '#fff',
|
| 16 |
+
border: '1px solid #374151',
|
| 17 |
+
},
|
| 18 |
+
success: {
|
| 19 |
+
iconTheme: {
|
| 20 |
+
primary: '#10b981',
|
| 21 |
+
secondary: '#fff',
|
| 22 |
+
},
|
| 23 |
+
},
|
| 24 |
+
error: {
|
| 25 |
+
iconTheme: {
|
| 26 |
+
primary: '#ef4444',
|
| 27 |
+
secondary: '#fff',
|
| 28 |
+
},
|
| 29 |
},
|
| 30 |
|
| 31 |
/>
|
| 32 |
</>
|
| 33 |
)
|
| 34 |
+
}
|
|
|
|
|
|