Skip to content

Commit 03741ab

Browse files
committed
Reorganize files into new directories
1 parent 231164d commit 03741ab

File tree

12 files changed

+27
-27
lines changed

12 files changed

+27
-27
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Header from "./Header";
2-
import Footer from "./Footer";
1+
import Header from "./Header.tsx";
2+
import Footer from "./Footer.tsx";
33
import { Outlet } from "react-router";
44

55
export default function Layout() {

src/main.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { StrictMode } from "react";
22
import { createRoot } from "react-dom/client";
33
import { BrowserRouter, Routes, Route } from "react-router";
44
import "./index.css";
5-
import Layout from "./components/Layout.tsx";
6-
import Home from "./routes/Home.tsx";
7-
import About from "./routes/About.tsx";
5+
import Layout from "./components/Layout/index.tsx";
6+
import Home from "./routes/Home/index.tsx";
7+
import About from "./routes/About/index.tsx";
88

99
const root = document.getElementById("root");
1010

src/routes/About.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/routes/About/index.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function About() {
2+
return (
3+
<main className="min-h-[25vh] grid place-items-center bg-primary">
4+
<h3 className="text-3xl text-secondary">About Code Cafe</h3>
5+
</main>
6+
);
7+
}

src/routes/Home.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)