feat: mock deal view
This commit is contained in:
@ -1,5 +1,8 @@
|
||||
|
||||
.container {
|
||||
padding: var(--mantine-spacing-xs);
|
||||
gap: var(--mantine-spacing-xs);
|
||||
|
||||
@mixin light {
|
||||
background-color: var(--color-light-white-blue);
|
||||
}
|
||||
@ -7,3 +10,21 @@
|
||||
background-color: var(--mantine-color-dark-7);
|
||||
}
|
||||
}
|
||||
|
||||
.first-tag {
|
||||
@mixin light {
|
||||
background-color: lightblue;
|
||||
}
|
||||
@mixin dark {
|
||||
background-color: darkslateblue;
|
||||
}
|
||||
}
|
||||
|
||||
.second-tag {
|
||||
@mixin light {
|
||||
background-color: lightgray;
|
||||
}
|
||||
@mixin dark {
|
||||
background-color: var(--mantine-color-dark-4);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { Card, Text } from "@mantine/core";
|
||||
import { Card, Group, Pill, Stack, Text } from "@mantine/core";
|
||||
import { DealSchema } from "@/lib/client";
|
||||
import styles from "./DealCard.module.css";
|
||||
|
||||
@ -9,7 +9,16 @@ type Props = {
|
||||
const DealCard = ({ deal }: Props) => {
|
||||
return (
|
||||
<Card className={styles.container}>
|
||||
<Text>{deal.name}</Text>
|
||||
<Text c={"dodgerblue"}>{deal.name}</Text>
|
||||
<Stack gap={0}>
|
||||
<Text>Wb электросталь</Text>
|
||||
<Text>19 000 руб.</Text>
|
||||
<Text>130 тов.</Text>
|
||||
</Stack>
|
||||
<Group gap={"xs"}>
|
||||
<Pill className={styles["first-tag"]}>Срочно</Pill>
|
||||
<Pill className={styles["second-tag"]}>Бесплатно</Pill>
|
||||
</Group>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user