generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Restructured router * Deleted duplicated route * Restructured folders
- Loading branch information
1 parent
5f88a53
commit 8b75cfb
Showing
18 changed files
with
159 additions
and
90 deletions.
There are no files selected for viewing
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import { Outlet } from "react-router-dom"; | ||
import { FooterNav } from "components/components"; | ||
import { HeaderNav } from "tw-components"; | ||
|
||
const DefaultNavLayout = () => { | ||
return ( | ||
<> | ||
<HeaderNav /> | ||
<Outlet /> | ||
<FooterNav /> | ||
</> | ||
); | ||
}; | ||
|
||
export default DefaultNavLayout; |
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,12 @@ | ||
import React from "react"; | ||
import { Outlet } from "react-router-dom"; | ||
|
||
const HomeLayout = () => { | ||
return ( | ||
<> | ||
<Outlet /> | ||
</> | ||
); | ||
}; | ||
|
||
export default HomeLayout; |
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
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
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
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,38 @@ | ||
// External Imports | ||
import React, { useState } from "react"; | ||
|
||
// Internal Imports | ||
import { logoHorizontal } from "assets/images/images"; | ||
import { iconArrowLeft } from "assets/images/images"; | ||
|
||
function AuthNav() { | ||
const [path] = useState(window.location.pathname); | ||
|
||
const Logo = () => { | ||
return ( | ||
<a href="/" rel="noopener noreferrer"> | ||
<img | ||
className="max-h-[24px] md:max-h-[32px]" | ||
src={logoHorizontal} | ||
alt="Civic Tech Jobs - Home" | ||
/> | ||
</a> | ||
); | ||
}; | ||
|
||
return ( | ||
<header className="h-16 py-1 px-3 w-full flex items-center justify-center shadow-[-1px_1px_2px_rgb(51,51,51,0.2)]"> | ||
<div className="grow flex justify-center"> | ||
<a href="/"> | ||
<img src={iconArrowLeft} alt="Back to home arrow" className="w-5" /> | ||
</a> | ||
</div> | ||
<div> | ||
<Logo /> | ||
</div> | ||
<div className="grow"></div> | ||
</header> | ||
); | ||
} | ||
|
||
export default AuthNav; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { default as AuthNav } from "./AuthNav"; | ||
export { default as HeaderNav } from "./HeaderNav"; | ||
export { default as InputGroup } from "./InputGroup"; |
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