-
-
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 #47 from Vets-Who-Code/RouterCreated
Router Switch Created #33
- Loading branch information
Showing
11 changed files
with
392 additions
and
16,964 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,113 @@ | ||
.btn-gr{ | ||
width:auto; | ||
height:46px; | ||
font-size: 0.875rem; | ||
background-color: var(--hashflag-red); | ||
margin-left:20px; | ||
|
||
} | ||
.container{ | ||
width:100%; | ||
max-width:1300px; | ||
margin:0 auto; | ||
height:calc(100vh - 72px); | ||
display:flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
} | ||
|
||
|
||
|
||
.landing-text{ | ||
padding:1rem 1.5rem; | ||
} | ||
|
||
/* .landing-text h1 span{ | ||
display: block; | ||
} */ | ||
|
||
|
||
.landing-text h1{ | ||
text-align: center; | ||
margin-bottom:2rem; | ||
} | ||
|
||
.landing-text p{ | ||
font-size: 1.3125rem; | ||
margin-bottom:1rem; | ||
line-height: 1.3; | ||
} | ||
|
||
.landing-image{ | ||
padding:1rem 1.5rem; | ||
width:auto; | ||
display:none; | ||
|
||
} | ||
|
||
.landing-btn button img#right-arrow{ | ||
width:15%; | ||
margin-left:10px; | ||
} | ||
|
||
.btn{ | ||
padding: 12px 12px; | ||
text-align: center; | ||
margin-top: 2rem; | ||
font-weight: 700; | ||
cursor: pointer; | ||
border: none; | ||
border-radius: 4px; | ||
transition: all 0.5s ease-in-out; | ||
text-transform: capitalize; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: var(--hashflag-white); | ||
} | ||
.btn:hover { | ||
transform: scale(1.05); | ||
box-shadow: 12px 12px 30px 20px rgba(0,0,0,0.1); | ||
|
||
} | ||
|
||
|
||
@media only screen and (min-width:768px){ | ||
|
||
.container{ | ||
margin-top:72px; | ||
} | ||
.landing-image{ | ||
display: block; | ||
|
||
} | ||
|
||
} | ||
|
||
@media only screen and (min-width:1024px){ | ||
|
||
.landing-text h1{ | ||
text-align: left; | ||
} | ||
.container{ | ||
flex-direction: row; | ||
justify-content: space-between; | ||
} | ||
|
||
.landing-btn{ | ||
width:100%; | ||
display: flex; | ||
justify-content: flex-start; | ||
} | ||
} | ||
|
||
@media only screen and (min-width:1440px){ | ||
.landing-text h1 span{ | ||
display: inline-block; | ||
} | ||
.container{ | ||
height:calc(100vh - 200px); | ||
} | ||
} |
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,21 @@ | ||
import React from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import './ErrorPage.css' | ||
//for testing purposes... can leave or remove once deployed. | ||
|
||
function ErrorPage() { | ||
const navigate = useNavigate(); | ||
return ( | ||
<div> | ||
<h1>Error! Page Not Found!</h1> | ||
<button | ||
className="btn btn-gr" | ||
onClick={() => navigate('/',{ approved: true })} | ||
> | ||
Go Back | ||
</button> | ||
</div> | ||
); | ||
} | ||
|
||
export default ErrorPage; |
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,112 @@ | ||
.btn-gr{ | ||
width:auto; | ||
height:46px; | ||
font-size: 0.875rem; | ||
background-color: var(--hashflag-red); | ||
|
||
} | ||
.container{ | ||
width:100%; | ||
max-width:1300px; | ||
margin:0 auto; | ||
height:calc(100vh - 72px); | ||
display:flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
} | ||
|
||
|
||
|
||
.landing-text{ | ||
padding:1rem 1.5rem; | ||
} | ||
|
||
/* .landing-text h1 span{ | ||
display: block; | ||
} */ | ||
|
||
|
||
.landing-text h1{ | ||
text-align: center; | ||
margin-bottom:2rem; | ||
} | ||
|
||
.landing-text p{ | ||
font-size: 1.3125rem; | ||
margin-bottom:1rem; | ||
line-height: 1.3; | ||
} | ||
|
||
.landing-image{ | ||
padding:1rem 1.5rem; | ||
width:auto; | ||
display:none; | ||
|
||
} | ||
|
||
.landing-btn button img#right-arrow{ | ||
width:15%; | ||
margin-left:10px; | ||
} | ||
|
||
.btn{ | ||
padding: 12px 12px; | ||
text-align: center; | ||
margin-top: 2rem; | ||
font-weight: 700; | ||
cursor: pointer; | ||
border: none; | ||
border-radius: 4px; | ||
transition: all 0.5s ease-in-out; | ||
text-transform: capitalize; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: var(--hashflag-white); | ||
} | ||
.btn:hover { | ||
transform: scale(1.05); | ||
box-shadow: 12px 12px 30px 20px rgba(0,0,0,0.1); | ||
|
||
} | ||
|
||
|
||
@media only screen and (min-width:768px){ | ||
|
||
.container{ | ||
margin-top:72px; | ||
} | ||
.landing-image{ | ||
display: block; | ||
|
||
} | ||
|
||
} | ||
|
||
@media only screen and (min-width:1024px){ | ||
|
||
.landing-text h1{ | ||
text-align: left; | ||
} | ||
.container{ | ||
flex-direction: row; | ||
justify-content: space-between; | ||
} | ||
|
||
.landing-btn{ | ||
width:100%; | ||
display: flex; | ||
justify-content: flex-start; | ||
} | ||
} | ||
|
||
@media only screen and (min-width:1440px){ | ||
.landing-text h1 span{ | ||
display: inline-block; | ||
} | ||
.container{ | ||
height:calc(100vh - 200px); | ||
} | ||
} |
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,14 @@ | ||
import React from 'react' | ||
import PrevNextButton from '../PrevNextButton/PrevNextButton' | ||
import './PersonalInfo.css' | ||
|
||
function PersonalInfo() { | ||
return ( | ||
<div> | ||
<h1>Personal Info</h1> | ||
<PrevNextButton /> | ||
</div> | ||
); | ||
} | ||
|
||
export default PersonalInfo |
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,8 @@ | ||
|
||
.btn-gr{ | ||
width:auto; | ||
height:46px; | ||
font-size: 0.875rem; | ||
background-color: var(--hashflag-red); | ||
|
||
} |
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,34 @@ | ||
import React from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import './PrevNextButton.css' | ||
import RightArrow from "../../images/right-arrow.png"; | ||
|
||
|
||
function PrevNextButton() { | ||
const navigate = useNavigate(); | ||
return ( | ||
<> | ||
<div> | ||
<button | ||
className="btn btn-gr" | ||
id="btn-blank" | ||
onClick={() => navigate(-1)} | ||
> | ||
Prev | ||
</button> | ||
<button | ||
className="btn btn-gr" | ||
id="btn-next" | ||
onClick={() => navigate(1)} | ||
> | ||
Next | ||
<img src={RightArrow} alt="" id="right-arrow" /> | ||
</button> | ||
|
||
<div></div> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default PrevNextButton; |
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