diff --git a/src/App.css b/src/App.css index e1c10c6..0ef653a 100644 --- a/src/App.css +++ b/src/App.css @@ -37,3 +37,29 @@ .read-the-docs { color: #888; } + +.table-row { + display: flex; + justify-content: center; + align-items: center; +} + +.table-cell { + padding: 10px; /* Add padding to cells */ + width: 150px; + justify-content: center; + align-items: center; +} + +.table-time { + padding: 10px; /* Add padding to cells */ + width: 300px; + align-items: center; + justify-content: center; +} +.table-cell:last-child { + padding: 10px; /* Add padding to cells */ + width: 300px; + align-items: center; + justify-content: center; +} diff --git a/src/App.jsx b/src/App.jsx index 9d138e2..84528c4 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,20 +1,76 @@ import logo from "/logo.png"; import "./App.css"; +import { useState } from "react"; +import { useEffect } from "react"; +import Clock from "./Clock"; +import Container from "react-bootstrap/Container"; +import Row from "react-bootstrap/Row"; +import Col from "react-bootstrap/Col"; -function App() { +export default function App() { return ( - <> -
- Edit src/App.jsx and save to test HMR
-
Asia/Seoul
+ +
+
Asia/Singapore
+ +
+
Europe/London
+ +
+
{date.toLocaleString("en-GB", { timeZone: `${props.timeZone}` })}
+ > + ); +} diff --git a/src/main.jsx b/src/main.jsx index ac77a71..3be7432 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -1,5 +1,6 @@ import ReactDOM from "react-dom/client"; import App from "./App.jsx"; import "./index.css"; +// import "bootstrap/dist/css/bootstrap.min.css"; ReactDOM.createRoot(document.getElementById("root")).render(