diff options
author | rohan09-raj <rajrohan1914@gmail.com> | 2024-02-19 20:50:51 +0530 |
---|---|---|
committer | Blaster4385 <blaster4385@tablaster.dev> | 2024-02-21 23:52:45 +0530 |
commit | 7ef0354687bb6abeda97a32ebcb0e39de91691e5 (patch) | |
tree | 76e0d842e9d5688d1526ddc9c627d8465d1e4a7c /client/src/pages | |
parent | 63f1cbe9c0a52b9b3a8724b7c6f47957414bda8a (diff) |
feat: Implement frontend UI for minibin
- Use prism.js for syntax highlighting
- USe react-router-dom for routing
Diffstat (limited to 'client/src/pages')
-rw-r--r-- | client/src/pages/Home/Home.jsx | 18 | ||||
-rw-r--r-- | client/src/pages/Home/Home.module.css | 6 |
2 files changed, 24 insertions, 0 deletions
diff --git a/client/src/pages/Home/Home.jsx b/client/src/pages/Home/Home.jsx new file mode 100644 index 0000000..32bb815 --- /dev/null +++ b/client/src/pages/Home/Home.jsx @@ -0,0 +1,18 @@ +import { Routes, Route } from "react-router-dom"; +import styles from "./Home.module.css"; +import Header from "../../components/Header/Header"; +import Editor from "../../components/Editor/Editor"; + +const Home = () => { + return ( + <div className={styles.home}> + <Header /> + <Routes> + <Route path="/" element={<Editor />} /> + <Route path="/:id" element={<Editor />} /> + </Routes> + </div> + ); +}; + +export default Home; diff --git a/client/src/pages/Home/Home.module.css b/client/src/pages/Home/Home.module.css new file mode 100644 index 0000000..45b0b07 --- /dev/null +++ b/client/src/pages/Home/Home.module.css @@ -0,0 +1,6 @@ +.home { + display: flex; + flex-direction: column; + height: 100vh; + width: 100vw; +} |