From a2ed505a80aa068d0e510ff02064a8afc3c5d6a0 Mon Sep 17 00:00:00 2001 From: christodharma <13521009@std.stei.itb.ac.id> Date: Tue, 14 Nov 2023 22:37:17 +0700 Subject: [PATCH] fix: component routings changes --- src/App.css | 53 +++++++++++++++++------------------ src/App.tsx | 6 ++-- src/index.tsx | 4 +-- src/pages/AboutPage/index.tsx | 1 - 4 files changed, 31 insertions(+), 33 deletions(-) diff --git a/src/App.css b/src/App.css index 74b5e05..5a25f6d 100644 --- a/src/App.css +++ b/src/App.css @@ -1,38 +1,35 @@ -.App { - text-align: center; -} +@tailwind base; +@tailwind components; +@tailwind utilities; -.App-logo { - height: 40vmin; - pointer-events: none; +@media (prefers-color-scheme: dark) { + :root { + --foreground-rgb: 255, 255, 255; + --background-start-rgb: 0, 0, 0; + --background-end-rgb: 0, 0, 0; + } } -@media (prefers-reduced-motion: no-preference) { - .App-logo { - animation: App-logo-spin infinite 20s linear; - } +body { + @apply text-tertiary; + @apply bg-whitesmoke; +} +* { + @apply font-montserrat; } -.App-header { - background-color: #282c34; - min-height: 100vh; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: calc(10px + 2vmin); - color: white; +.container { + @apply min-w-full; + @apply min-h-screen; + @apply flex; + @apply flex-col; + @apply justify-between; } -.App-link { - color: #61dafb; +h1 { + @apply text-2xl font-bold text-black; } -@keyframes App-logo-spin { - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } +p { + @apply text-base text-black; } diff --git a/src/App.tsx b/src/App.tsx index a53698a..3864696 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,12 @@ import React from 'react'; import logo from './logo.svg'; import './App.css'; +import AboutPage from './pages/AboutPage'; function App() { return ( <div className="App"> - <header className="App-header"> + {/* <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/App.tsx</code> and save to reload. @@ -18,7 +19,8 @@ function App() { > Learn React </a> - </header> + </header> */} + <AboutPage /> </div> ); } diff --git a/src/index.tsx b/src/index.tsx index 1671d1d..032464f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,7 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; -import AboutPage from './pages/AboutPage'; +import App from './App'; import reportWebVitals from './reportWebVitals'; const root = ReactDOM.createRoot( @@ -9,7 +9,7 @@ const root = ReactDOM.createRoot( ); root.render( <React.StrictMode> - <AboutPage /> + <App /> </React.StrictMode> ); diff --git a/src/pages/AboutPage/index.tsx b/src/pages/AboutPage/index.tsx index fd3c2cf..6a721da 100644 --- a/src/pages/AboutPage/index.tsx +++ b/src/pages/AboutPage/index.tsx @@ -1,6 +1,5 @@ // import Navbar from '../components/layouts/Navbar' import React from 'react' -// import Image from 'next/image' import AboutPageView from '../../view/AboutPage' const AboutPage = () => { -- GitLab