-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from PaulKreft/reactRouter
reactRouter
- Loading branch information
Showing
6 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
import "./App.css"; | ||
import { Route, Routes } from "react-router-dom"; | ||
import Home from "./components/home.tsx"; | ||
import NotFound from "./components/not-found.tsx"; | ||
|
||
function App() { | ||
return <>Welcome</>; | ||
return ( | ||
<> | ||
<div className="flex min-h-screen flex-col"> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path={"/*"} element={<NotFound />} /> | ||
</Routes> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default function Home() { | ||
return ( | ||
<div className="flex flex-1 flex-col items-center justify-center pb-52"> | ||
<h1 className="text-center text-8xl font-extrabold leading-snug"> | ||
Welcome to <span className="text-[#3A0842]">H</span> | ||
<span className="text-[#9AB87A]">e</span> | ||
<span className="text-[#444B6E]">x</span> | ||
<span className="text-[#247BA0]">H</span> | ||
<span className="text-[#DC851F]">e</span> | ||
<span className="text-[#F8F991]">x</span> | ||
<span className="text-[#720026]">!</span> | ||
</h1> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default function NotFound() { | ||
return <div>Not Found</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters