Add SubHomePage component and minor styling updates
Introduced the SubHomePage component to enhance modularity of the home page. Adjusted styling to include margins and a dark mode class for the body element.
This commit is contained in:
parent
4d6962afb5
commit
92bb6bf367
@ -15,7 +15,7 @@ export default function RootLayout({
|
||||
}) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<body className={"h-screen w-screen bg-card flex flex-col justify-between items-center police-ubuntu"}>
|
||||
<body className={"h-screen w-screen bg-card flex flex-col justify-between items-center police-ubuntu dark"}>
|
||||
<Header/>
|
||||
{children}
|
||||
<Footer/>
|
||||
|
@ -8,6 +8,9 @@ import {
|
||||
ResizablePanel,
|
||||
ResizablePanelGroup
|
||||
} from 'apps/frontend/src/components/ui/resizable';
|
||||
import {
|
||||
SubHomePage
|
||||
} from 'apps/frontend/src/components/sub-pages/sub-home-page';
|
||||
|
||||
export enum ESubPage {
|
||||
Home,
|
||||
@ -32,7 +35,7 @@ export default function HomePage() {
|
||||
</ResizablePanel>
|
||||
<ResizableHandle withHandle />
|
||||
<ResizablePanel
|
||||
className={"w-full flex justify-center items-center"}>
|
||||
className={"w-full flex justify-center items-center m-3"}>
|
||||
<SubPage currentSubPage={currentSubPage}/>
|
||||
</ResizablePanel>
|
||||
</ResizablePanelGroup>
|
||||
@ -73,7 +76,7 @@ export interface ISubPageProps {
|
||||
function SubPage(props: ISubPageProps) {
|
||||
switch (props.currentSubPage) {
|
||||
case ESubPage.Home:
|
||||
return (<>Home</>)
|
||||
return (<SubHomePage/>)
|
||||
case ESubPage.Documentation:
|
||||
return (<>Doc</>)
|
||||
default:
|
||||
|
14
apps/frontend/src/components/sub-pages/sub-home-page.tsx
Normal file
14
apps/frontend/src/components/sub-pages/sub-home-page.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
|
||||
export interface SubHomePageProps {
|
||||
|
||||
}
|
||||
|
||||
export function SubHomePage(props: SubHomePageProps) {
|
||||
const [isLoaded, setIsLoaded] = useState<boolean>(false);
|
||||
|
||||
return (<section className={"w-full h-full rounded bg-card"}>
|
||||
|
||||
</section>)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user