feat: services page
This commit is contained in:
15
app/services/page.tsx
Normal file
15
app/services/page.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import Logo from "@/components/Logo/Logo";
|
||||
import PageItem from "@/components/PageBlock/PageItem";
|
||||
import PageContainer from "@/components/PageContainer/PageContainer";
|
||||
import ServicesList from "@/components/ServicesList/ServicesList";
|
||||
|
||||
export default function ServicesPage() {
|
||||
return (
|
||||
<PageContainer center>
|
||||
<PageItem fullScreenMobile>
|
||||
<Logo title={"Сервисы LogiDex"} />
|
||||
<ServicesList />
|
||||
</PageItem>
|
||||
</PageContainer>
|
||||
);
|
||||
}
|
||||
7
components/ServicesList/ServicesList.module.css
Normal file
7
components/ServicesList/ServicesList.module.css
Normal file
@ -0,0 +1,7 @@
|
||||
.container {
|
||||
width: 400px;
|
||||
|
||||
@media (max-width: 48em) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
36
components/ServicesList/ServicesList.tsx
Normal file
36
components/ServicesList/ServicesList.tsx
Normal file
@ -0,0 +1,36 @@
|
||||
import Link from "next/link";
|
||||
import { Button, Stack, Title } from "@mantine/core";
|
||||
import styles from "@/components/ServicesList/ServicesList.module.css";
|
||||
import TitleWithLines from "@/components/TitleWithLines/TitleWithLines";
|
||||
|
||||
const ServicesList = () => {
|
||||
const getServiceLink = (
|
||||
title: string,
|
||||
href: string,
|
||||
isInDevelopment: boolean = false
|
||||
) => {
|
||||
return (
|
||||
<Button
|
||||
component={Link}
|
||||
size={"xl"}
|
||||
href={isInDevelopment ? "" : href}
|
||||
disabled={isInDevelopment}>
|
||||
<Stack gap={0}>
|
||||
<Title order={4}>{title}</Title>
|
||||
</Stack>
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<Stack
|
||||
className={styles.container}
|
||||
gap={"lg"}>
|
||||
{getServiceLink("CRM", "https://skirbo.ru/")}
|
||||
<TitleWithLines title="Скоро будет" />
|
||||
{getServiceLink("Analytics", "", true)}
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
export default ServicesList;
|
||||
19
components/TitleWithLines/TitleWithLines.tsx
Normal file
19
components/TitleWithLines/TitleWithLines.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import { Divider, Flex, Text } from "@mantine/core";
|
||||
|
||||
type Props = {
|
||||
title: string;
|
||||
}
|
||||
|
||||
const TitleWithLines = ({ title }: Props) => {
|
||||
return (
|
||||
<Flex
|
||||
align="center"
|
||||
gap="xs">
|
||||
<Divider style={{ flex: 1 }} />
|
||||
<Text>{title}</Text>
|
||||
<Divider style={{ flex: 1 }} />
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
|
||||
export default TitleWithLines;
|
||||
@ -22,6 +22,8 @@ const VerifyPhoneForm: FC = () => {
|
||||
|
||||
const handleSubmit = (values: VerifyNumberForm) => {
|
||||
console.log(values);
|
||||
|
||||
redirect("/services");
|
||||
};
|
||||
|
||||
const navigateToLogin = () => redirect("/");
|
||||
|
||||
Reference in New Issue
Block a user