-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update the authorization technique to check if user role matches ite priority * include roles as a sign up property, add the history menu to the landing page * fix build errors * Add landing page background image --------- Co-authored-by: Olasunkanmi Oyinlola <olasunkanmioyinlola@Olasunkanmis-Mac-mini.local>
- Loading branch information
1 parent
a07aaad
commit 3294e1f
Showing
5 changed files
with
76 additions
and
29 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,45 @@ | ||
import { CSSProperties } from "react"; | ||
import { Button, Stack } from "react-bootstrap"; | ||
|
||
export const Landing = () => { | ||
const pageStyle: CSSProperties = { | ||
margin: 0, | ||
padding: 0, | ||
overflowY: "hidden", | ||
}; | ||
|
||
const backgroundOverlayStyle: CSSProperties = { | ||
position: "fixed", | ||
top: 0, | ||
left: 0, | ||
width: "100%", | ||
height: "100%", | ||
backgroundImage: `url(public/food-background.jpg)`, | ||
backgroundSize: "cover", | ||
backgroundPosition: "center", | ||
opacity: 0.5, | ||
}; | ||
|
||
const buttonStyle: CSSProperties = { | ||
width: "80%", | ||
margin: "auto", | ||
borderRadius: 0, | ||
}; | ||
return ( | ||
<div className="d-flex flex-column" style={pageStyle}> | ||
<div style={backgroundOverlayStyle}></div> | ||
<Stack direction="vertical" gap={3} className="p-3 fixed-bottom"> | ||
<Button | ||
className="w-10" | ||
size="lg" | ||
style={{ ...buttonStyle, backgroundColor: "#407c54", borderColor: "#407c54" }} | ||
> | ||
ORDER NOW | ||
</Button> | ||
<Button variant="dark" className="w-10" size="sm" style={buttonStyle}> | ||
Order HISTORY | ||
</Button> | ||
</Stack> | ||
</div> | ||
); | ||
}; |