Skip to content

Commit

Permalink
refactor: restructured page components
Browse files Browse the repository at this point in the history
  • Loading branch information
swernerx committed Jul 30, 2024
1 parent ae5ce0b commit 8b52a07
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions app/components/page/body/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Body"
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link } from "@remix-run/react"

import { Spacer } from "../spacer/Spacer"
import { Spacer } from "../../spacer/Spacer"
import { root } from "./Footer.css"

export function Footer() {
Expand Down
1 change: 1 addition & 0 deletions app/components/page/footer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Footer"
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions app/components/page/header/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Header"
File renamed without changes
4 changes: 4 additions & 0 deletions app/components/page/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from "./body"
export * from "./footer"
export * from "./header"
export * from "./main"
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions app/components/page/main/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Main"
5 changes: 1 addition & 4 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ import {
} from "@remix-run/react"
import type { PropsWithChildren } from "react"

import { Body } from "./components/body/Body"
import { FavIcon } from "./components/favicon/FavIcon"
import { Footer } from "./components/footer/Footer"
import { Header } from "./components/header/Header"
import { Main } from "./components/main/Main"
import { Body, Footer, Header, Main } from "./components/page"

export function Layout({ children }: PropsWithChildren) {
return (
Expand Down

0 comments on commit 8b52a07

Please sign in to comment.