mirror of
				https://github.com/csehviktor/status-monitor.git
				synced 2025-08-08 18:06:14 +02:00 
			
		
		
		
	init ui
This commit is contained in:
		
							
								
								
									
										12
									
								
								ui/src/App.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								ui/src/App.tsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| import { BrowserRouter, Route, Routes } from "react-router-dom"; | ||||
| import { HomePage } from "@/pages/home"; | ||||
|  | ||||
| export default function App() { | ||||
|     return ( | ||||
|         <BrowserRouter> | ||||
|             <Routes> | ||||
|                 <Route path="/" element={<HomePage />} /> | ||||
|             </Routes> | ||||
|         </BrowserRouter> | ||||
|     ); | ||||
| } | ||||
							
								
								
									
										5
									
								
								ui/src/index.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								ui/src/index.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| @import "tailwindcss"; | ||||
|  | ||||
| body { | ||||
|     @apply bg-gray-950 text-gray-300; | ||||
| } | ||||
							
								
								
									
										10
									
								
								ui/src/main.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								ui/src/main.tsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| import { StrictMode } from "react"; | ||||
| import { createRoot } from "react-dom/client"; | ||||
| import App from "@/App.tsx"; | ||||
| import "@/index.css"; | ||||
|  | ||||
| createRoot(document.getElementById("root")!).render( | ||||
|     <StrictMode> | ||||
|         <App /> | ||||
|     </StrictMode>, | ||||
| ); | ||||
							
								
								
									
										8
									
								
								ui/src/pages/home.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								ui/src/pages/home.tsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| export function HomePage() { | ||||
|     return ( | ||||
|         <div> | ||||
|             <h1>Welcome to Status Monitor</h1> | ||||
|             <p>This is the home page.</p> | ||||
|         </div> | ||||
|     ); | ||||
| } | ||||
							
								
								
									
										1
									
								
								ui/src/vite-env.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								ui/src/vite-env.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| /// <reference types="vite/client" /> | ||||
		Reference in New Issue
	
	Block a user