Skip to content

Commit

Permalink
Created new route for deployed path when opening site to redirect to …
Browse files Browse the repository at this point in the history
…Home component. Initially it rendered a blank home page.
  • Loading branch information
dllopis committed Feb 13, 2024
1 parent d73f029 commit ae7d03c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const App = () => {
<NavigationBar />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/cryptology-networking-study-app/" element={<Home />} />
<Route path="/Chapter/1/flashcards" element={<KeyTermsCarousel chapter="1" />} />
<Route path="/Chapter/1" element={<KeyTerms chapter="1" />} />
</Routes>
Expand Down
2 changes: 1 addition & 1 deletion src/components/KeyTerms.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const KeyTermsComponent = (props) => {

return (
<div className="container-fluid d-flex flex-column mt-5">
<h1 className="mt-4 mb-4 text-center">Key Terms: Chapter {props.chapter}</h1>
<h1 className="display-6 mt-4 mb-4">Key Terms: Chapter {props.chapter}</h1>
<div className="row g-4 justify-content-center">
{keyTerms.map(([term, definition]) => (
<div key={term} className="col-12 col-md-6 col-lg-4">
Expand Down

0 comments on commit ae7d03c

Please sign in to comment.