Spaces:
Running
Running
fullstuckdev
commited on
Commit
•
52f7c56
1
Parent(s):
4522b38
fix metadata
Browse files- README.md +1 -0
- src/app/layout.tsx +9 -28
- src/app/providers.tsx +31 -0
README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
---
|
2 |
title: Medication Ai
|
3 |
emoji: 🐢
|
|
|
4 |
colorFrom: gray
|
5 |
colorTo: pink
|
6 |
sdk: docker
|
|
|
1 |
---
|
2 |
title: Medication Ai
|
3 |
emoji: 🐢
|
4 |
+
app_port: 3000
|
5 |
colorFrom: gray
|
6 |
colorTo: pink
|
7 |
sdk: docker
|
src/app/layout.tsx
CHANGED
@@ -1,38 +1,19 @@
|
|
1 |
-
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
const roboto = Roboto({
|
8 |
-
weight: ['300', '400', '500', '700'],
|
9 |
-
subsets: ['latin'],
|
10 |
-
})
|
11 |
-
|
12 |
-
const theme = createTheme({
|
13 |
-
palette: {
|
14 |
-
mode: 'light',
|
15 |
-
primary: {
|
16 |
-
main: '#2563eb',
|
17 |
-
},
|
18 |
-
},
|
19 |
-
typography: {
|
20 |
-
fontFamily: roboto.style.fontFamily,
|
21 |
-
},
|
22 |
-
})
|
23 |
|
24 |
export default function RootLayout({
|
25 |
children,
|
26 |
-
}:
|
27 |
children: React.ReactNode
|
28 |
-
}
|
29 |
return (
|
30 |
-
<html lang="
|
31 |
<body>
|
32 |
-
<
|
33 |
-
<CssBaseline />
|
34 |
-
{children}
|
35 |
-
</ThemeProvider>
|
36 |
</body>
|
37 |
</html>
|
38 |
)
|
|
|
1 |
+
import Providers from './providers'
|
2 |
|
3 |
+
export const metadata = {
|
4 |
+
title: 'Sistem Rekomendasi Obat',
|
5 |
+
description: 'Sistem rekomendasi obat berbasis AI untuk membantu tenaga kesehatan',
|
6 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
export default function RootLayout({
|
9 |
children,
|
10 |
+
}: {
|
11 |
children: React.ReactNode
|
12 |
+
}) {
|
13 |
return (
|
14 |
+
<html lang="id">
|
15 |
<body>
|
16 |
+
<Providers>{children}</Providers>
|
|
|
|
|
|
|
17 |
</body>
|
18 |
</html>
|
19 |
)
|
src/app/providers.tsx
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
'use client'
|
2 |
+
|
3 |
+
import { ThemeProvider, createTheme } from '@mui/material/styles'
|
4 |
+
import CssBaseline from '@mui/material/CssBaseline'
|
5 |
+
import { Roboto } from 'next/font/google'
|
6 |
+
|
7 |
+
const roboto = Roboto({
|
8 |
+
weight: ['300', '400', '500', '700'],
|
9 |
+
subsets: ['latin'],
|
10 |
+
})
|
11 |
+
|
12 |
+
const theme = createTheme({
|
13 |
+
palette: {
|
14 |
+
mode: 'light',
|
15 |
+
primary: {
|
16 |
+
main: '#2563eb',
|
17 |
+
},
|
18 |
+
},
|
19 |
+
typography: {
|
20 |
+
fontFamily: roboto.style.fontFamily,
|
21 |
+
},
|
22 |
+
})
|
23 |
+
|
24 |
+
export default function Providers({ children }: { children: React.ReactNode }) {
|
25 |
+
return (
|
26 |
+
<ThemeProvider theme={theme}>
|
27 |
+
<CssBaseline />
|
28 |
+
{children}
|
29 |
+
</ThemeProvider>
|
30 |
+
)
|
31 |
+
}
|