diff --git a/src/components/Button.tsx b/src/components/Button.tsx
index 606c4a6..2281d16 100644
--- a/src/components/Button.tsx
+++ b/src/components/Button.tsx
@@ -1,32 +1,19 @@
-import { Button as DefaultButton } from "@mui/material";
+import { Button as DefaultButton, styled } from "@mui/material";
+import { ButtonProps } from "@mui/material/Button";
interface Props {
- fullWidth?: boolean;
backgroundColor?: string;
- color?: string;
- variant: "outlined" | "contained";
- children: React.ReactNode;
+ textColor?: string;
}
-export default function Button({ fullWidth = false, backgroundColor, color, variant, children }: Props) {
-
- return (
-
-
- {children}
-
-
- );
-}
+export default styled(DefaultButton)(props => ({
+ paddingLeft: "41.5px",
+ paddingRight: "41.5px",
+ paddingTop: "9px",
+ paddingBottom: "9px",
+ borderRadius: "8px",
+ backgroundColor: props.backgroundColor,
+ color: props.textColor,
+ boxShadow: "none",
+}));
diff --git a/src/components/landing/Section1.tsx b/src/components/landing/Section1.tsx
index 6404888..a8974db 100644
--- a/src/components/landing/Section1.tsx
+++ b/src/components/landing/Section1.tsx
@@ -74,7 +74,7 @@ export default function Section1() {
diff --git a/src/components/landing/Section5.tsx b/src/components/landing/Section5.tsx
index 6ff2908..15298a7 100644
--- a/src/components/landing/Section5.tsx
+++ b/src/components/landing/Section5.tsx
@@ -1,5 +1,5 @@
-import { Box, Typography, useTheme } from "@mui/material";
-import Button from "../Button";
+import { Box, Typography, useTheme } from "@mui/material";
+import CustomButton from "../Button";
import SectionWrapper from "../SectionWrapper";
@@ -36,14 +36,14 @@ export default function Section5() {
}}
>
{/** extract buttons as components */}
-
-
+ >Подробнее