-
Notifications
You must be signed in to change notification settings - Fork 2
Reorganize files into new directories #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,9 @@ import { StrictMode } from "react"; | |
| import { createRoot } from "react-dom/client"; | ||
| import { BrowserRouter, Routes, Route } from "react-router"; | ||
| import "./index.css"; | ||
| import Layout from "./components/Layout.tsx"; | ||
| import Home from "./routes/Home.tsx"; | ||
| import About from "./routes/About.tsx"; | ||
| import Layout from "./components/Layout/index.tsx"; | ||
| import Home from "./routes/Home/index.tsx"; | ||
| import About from "./routes/About/index.tsx"; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because these components are exported as default, I believe we can change all of these to leave off the import Home from "./routes/Home"; |
||
|
|
||
| const root = document.getElementById("root"); | ||
|
|
||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| export default function About() { | ||
| return ( | ||
| <main className="min-h-[25vh] grid place-items-center bg-primary"> | ||
| <h3 className="text-3xl text-secondary">About Code Cafe</h3> | ||
| </main> | ||
| ); | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| import Hero from "./Hero.tsx"; | ||
| import Features from "./Features.tsx"; | ||
| import CTA from "./CTA.tsx"; | ||
| import Showcase from "./Showcase.tsx"; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here as above |
||
|
|
||
| export default function Home() { | ||
| return ( | ||
| <> | ||
| <Hero /> | ||
| <Features /> | ||
| <Showcase /> | ||
| <CTA /> | ||
| </> | ||
| ); | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I believe these don't need the
.tsxending, and I think it's convention to leave it off