split-bill: styles enhancements

This commit is contained in:
2025-11-23 17:51:40 +03:00
parent 207541136f
commit e3e95628dc
3 changed files with 116 additions and 116 deletions

View File

@@ -167,7 +167,7 @@
flex-direction: row; flex-direction: row;
justify-content: space-around; justify-content: space-around;
gap: 1rem; gap: 1rem;
background-color: white; background-color: var(--secondary-background);
box-shadow: none; box-shadow: none;
} }

View File

@@ -154,3 +154,25 @@
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
} }
} }
.checkoutButtonContainer {
width: 100%;
padding: 16px 16px 0;
position: sticky;
bottom: 0;
left: 0;
height: 80px;
display: flex;
flex-direction: row;
justify-content: space-around;
gap: 1rem;
background-color: var(--secondary-background);
box-shadow: none;
}
.placeOrderButton {
width: 100%;
height: 48px;
margin-bottom: 16px;
box-shadow: none;
}

View File

@@ -6,23 +6,21 @@ import ProInputCard from "components/ProInputCard/ProInputCard";
import ProText from "components/ProText"; import ProText from "components/ProText";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { Link, useParams } from "react-router-dom"; import { Link, useParams } from "react-router-dom";
import { useAppSelector } from "redux/hooks"; import { ProGray1 } from "ThemeConstants";
import { ProBlack2, ProGray1 } from "ThemeConstants";
import PayForActions from "./components/PayForActions"; import PayForActions from "./components/PayForActions";
import PaymentSummary from "./components/PaymentSummary"; import PaymentSummary from "./components/PaymentSummary";
import TotalPeopleActions from "./components/TotalPeopleActions"; import TotalPeopleActions from "./components/TotalPeopleActions";
import styles from "./SplitBillPage.module.css";
export default function SplitBillPage() { export default function SplitBillPage() {
const { t } = useTranslation(); const { t } = useTranslation();
const { subdomain } = useParams(); const { subdomain } = useParams();
const { themeName } = useAppSelector((state) => state.theme);
return ( return (
<> <>
<Layout> <Layout>
<ProHeader>{t("checkout.splitBill")}</ProHeader> <ProHeader>{t("checkout.splitBill")}</ProHeader>
<Layout.Content> <Layout.Content
<div
style={{ style={{
display: "flex", display: "flex",
flexDirection: "column", flexDirection: "column",
@@ -126,38 +124,18 @@ export default function SplitBillPage() {
</ProInputCard> </ProInputCard>
<PaymentMethods /> <PaymentMethods />
<PaymentSummary /> <PaymentSummary />
</div> </Layout.Content>
<div <Layout.Footer className={styles.checkoutButtonContainer}>
style={{
width: "100%",
padding: "16px 16px 0",
position: "fixed",
bottom: 0,
left: 0,
height: "80px",
display: "flex",
flexDirection: "row",
justifyContent: "space-around",
gap: "1rem",
backgroundColor: themeName === "light" ? "white" : ProBlack2,
}}
>
<Link to={`/${subdomain}/order`} style={{ width: "100%" }}> <Link to={`/${subdomain}/order`} style={{ width: "100%" }}>
<Button <Button
type="primary" type="primary"
shape="round" shape="round"
style={{ className={styles.placeOrderButton}
width: "100%",
height: 48,
marginBottom: 16,
boxShadow: "none",
}}
> >
{t("checkout.placeOrder")} {t("checkout.placeOrder")}
</Button> </Button>
</Link> </Link>
</div> </Layout.Footer>
</Layout.Content>
</Layout> </Layout>
</> </>
); );