From a2142be77075b455a01dfb57190e263aa1208315 Mon Sep 17 00:00:00 2001 From: Selieznov <41084902+Seleznev-Ilya@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:26:42 +0300 Subject: [PATCH 1/3] Feat/back to the roots (#38) * Fix for big images * Refactoring --- src/pages/support.tsx | 12 ------------ src/pages/tradeSmart.tsx | 12 ------------ src/pages/whySpark.tsx | 12 ------------ 3 files changed, 36 deletions(-) delete mode 100644 src/pages/support.tsx delete mode 100644 src/pages/tradeSmart.tsx delete mode 100644 src/pages/whySpark.tsx diff --git a/src/pages/support.tsx b/src/pages/support.tsx deleted file mode 100644 index 56a9648..0000000 --- a/src/pages/support.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import Link from "next/link"; - -const support = () => { - return ( -
-
support
- Landing page -
- ); -}; - -export default support; diff --git a/src/pages/tradeSmart.tsx b/src/pages/tradeSmart.tsx deleted file mode 100644 index 8fa7299..0000000 --- a/src/pages/tradeSmart.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import Link from "next/link"; - -const tradeSmart = () => { - return ( -
-
tradeSmart
- Landing page -
- ); -}; - -export default tradeSmart; diff --git a/src/pages/whySpark.tsx b/src/pages/whySpark.tsx deleted file mode 100644 index 79ad9d2..0000000 --- a/src/pages/whySpark.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import Link from "next/link"; - -const whySpark = () => { - return ( -
-
whySpark
- Landing page -
- ); -}; - -export default whySpark; From 5d2c23c02cea714c50a5d002ce4c323a983a3dab Mon Sep 17 00:00:00 2001 From: Selieznov <41084902+Seleznev-Ilya@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:37:28 +0300 Subject: [PATCH 2/3] Back to the roots (#39) --- .../LandingPage/components/OptimizedMobileButton.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/components/LandingPage/components/OptimizedMobileButton.tsx b/src/core/components/LandingPage/components/OptimizedMobileButton.tsx index f238f19..da174ea 100644 --- a/src/core/components/LandingPage/components/OptimizedMobileButton.tsx +++ b/src/core/components/LandingPage/components/OptimizedMobileButton.tsx @@ -2,17 +2,18 @@ import { css } from "@emotion/react"; import { CommonEntity } from "core/types"; -import { externalLinks } from "@/core/constants/externalLinks"; import LinkButton from "@/core/components/common/LinkButton"; import theme from "@/core/styles/theme"; import { convertPxToRem } from "@/core/utils/convertPxToRem"; interface PropTypes extends CommonEntity { label?: string | null; + href?: string; } const OptimizedMobileButton = ({ label = null, + href = "", styles, children, }: PropTypes) => { @@ -20,6 +21,7 @@ const OptimizedMobileButton = ({ Date: Tue, 9 Jul 2024 18:41:24 +0300 Subject: [PATCH 3/3] Btr two (#40) * Back to the roots * Refactoring --- .../LandingPage/PartnersSection/PartnersSection.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/components/LandingPage/PartnersSection/PartnersSection.tsx b/src/core/components/LandingPage/PartnersSection/PartnersSection.tsx index decefa7..aaf826f 100644 --- a/src/core/components/LandingPage/PartnersSection/PartnersSection.tsx +++ b/src/core/components/LandingPage/PartnersSection/PartnersSection.tsx @@ -1,9 +1,9 @@ import React from "react"; import { css } from "@emotion/react"; +import Image from "next/image"; import SectionWrapper from "@/core/components/common/SectionWrapper"; import theme from "@/core/styles/theme"; -import Image from "next/image"; import { convertPxToRem } from "@/core/utils/convertPxToRem"; import { items, text } from "./constants"; @@ -26,7 +26,9 @@ const PartnersSection = () => { ))} {text.map((item) => ( -
{item.title}
+
+ {item.title} +
))} @@ -38,7 +40,7 @@ const cssStyles = { display: flex; flex-direction: column; align-items: center; - padding: ${convertPxToRem(15)} 0 ${convertPxToRem(70)} 0 + padding: ${convertPxToRem(15)} 0 ${convertPxToRem(70)} 0; `, titleWrapper: css` margin: 0 auto ${theme.spacing.small};