-
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 branch 'master' into feature/26-FE-startpageUI
- Loading branch information
Showing
25 changed files
with
1,239 additions
and
370 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
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,73 @@ | ||
import * as React from "react"; | ||
import { Box, Grid, Typography, Link } from "@mui/material"; | ||
import SearchBar from "../components/mainpage/SearchBar"; | ||
import ExplanationTrash from "../components/howtopage/ExplanationTrash"; | ||
|
||
import { useLocation } from 'react-router-dom'; | ||
|
||
const HowtoPage = () => { | ||
|
||
const item = useLocation(); | ||
const itemform = item?.state as any; | ||
|
||
const itemImage = itemform.needImages; | ||
const itemKind = itemform.needKind; | ||
|
||
return ( | ||
<Box textAlign={"center"}> | ||
<div> | ||
<SearchBar /> | ||
<Box | ||
sx={{ | ||
borderRadius: 3, | ||
backgroundColor: "white", | ||
width: 700, | ||
height: 350, | ||
margin: "auto", | ||
display: "flex", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
boxShadow: "1px 3px 3px #B0B09A", | ||
mt: 7, | ||
mb: 10, | ||
}}> | ||
<img src={itemImage} style={{ maxWidth: 500, maxHeight: 250 }} /> | ||
|
||
</Box> | ||
|
||
<Grid | ||
container | ||
direction="column" | ||
justifyContent="center" | ||
alignItems="center" | ||
> | ||
<Typography | ||
sx={{ fontSize: 50, mt: 10, fontFamily: "Itim", color: "#737458" }} | ||
> | ||
How to recycle? | ||
</Typography> | ||
<ExplanationTrash | ||
kind={itemKind} | ||
/> | ||
|
||
<Link | ||
href="/mainpage" | ||
style={{ | ||
textDecoration: "none", | ||
fontWeight: "bold", | ||
fontFamily: "Itim", | ||
padding: 100, | ||
color: "#737458", | ||
fontSize: 30, | ||
}} | ||
> | ||
{" "} | ||
Go To Mainpage{" 👉"}{" "} | ||
</Link> | ||
</Grid> | ||
</div> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default HowtoPage; |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export const save_ID = (id: any) => { | ||
console.log(id); | ||
return { | ||
type: "SAVE_ID", | ||
payload: id, | ||
|
Oops, something went wrong.