Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #494

Merged
merged 8 commits into from
Feb 16, 2024
Merged
16 changes: 2 additions & 14 deletions frontend/src/pages/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { CSSProperties, useState } from "react";
import { CSSProperties } from "react";
import { Button, Stack } from "react-bootstrap";
import { CallToAction } from "../components/Utilities/modal";
import { AuthModal } from "../components/Utilities/AuthModal";

export const Landing = () => {
const [showModal, setShowModal] = useState<boolean>(false);
const handleCloseModal = () => setShowModal(false);
const handleShowModal = () => setShowModal(true);
const pageStyle: CSSProperties = {
margin: 0,
padding: 0,
Expand All @@ -19,7 +14,7 @@ export const Landing = () => {
left: 0,
width: "100%",
height: "100%",
backgroundImage: `url(/food-background.jpg)`,
backgroundImage: `url(public/food-background.jpg)`,
backgroundSize: "cover",
backgroundPosition: "center",
opacity: 0.5,
Expand All @@ -35,7 +30,6 @@ export const Landing = () => {
<div style={backgroundOverlayStyle}></div>
<Stack direction="vertical" gap={3} className="p-3 fixed-bottom">
<Button
onClick={handleShowModal}
className="w-10"
size="lg"
style={{ ...buttonStyle, backgroundColor: "#407c54", borderColor: "#407c54" }}
Expand All @@ -46,12 +40,6 @@ export const Landing = () => {
Order HISTORY
</Button>
</Stack>

<div>
<CallToAction handleAction={handleCloseModal} handleClose={handleCloseModal} show={showModal}>
<AuthModal />
</CallToAction>
</div>
</div>
);
};
Loading