diff --git a/pages/test.tsx b/pages/test.tsx index 29f41437a..ddaceab57 100644 --- a/pages/test.tsx +++ b/pages/test.tsx @@ -44,6 +44,26 @@ export default function Test() { +
+
+ Lorem ipsum dolor sit, amet consectetur adipisicing elit. Praesentium delectus incidunt et cupiditate soluta, deleniti dolorem tempora officia atque earum recusandae vitae libero molestiae quas officiis ducimus voluptas exercitationem. Dolor non illo distinctio, nemo numquam quo nihil debitis magni ullam quasi optio, commodi at! Error, asperiores sint. Labore, at ipsum. +
+
+
+
+ Lorem ipsum dolor sit, amet consectetur adipisicing elit. Praesentium delectus incidunt et cupiditate soluta, deleniti dolorem tempora officia atque earum recusandae vitae libero molestiae quas officiis ducimus voluptas exercitationem. Dolor non illo distinctio, nemo numquam quo nihil debitis magni ullam quasi optio, commodi at! Error, asperiores sint. Labore, at ipsum. +
+
+ +
+ Lorem ipsum dolor +
+ +
+
+ Lorem ipsum dolor sit +
+
) diff --git a/src/components/common/CustomShapeSvg/CustomShapeSvg.tsx b/src/components/common/CustomShapeSvg/CustomShapeSvg.tsx new file mode 100644 index 000000000..573160b70 --- /dev/null +++ b/src/components/common/CustomShapeSvg/CustomShapeSvg.tsx @@ -0,0 +1,21 @@ + +const CustomShapeSvg = () => { + return ( + <> + + + + + + + + + + + + ) +} + +export default CustomShapeSvg \ No newline at end of file diff --git a/src/components/common/CustomShapeSvg/ViewAllItem.module.scss b/src/components/common/CustomShapeSvg/ViewAllItem.module.scss new file mode 100644 index 000000000..b4ec26872 --- /dev/null +++ b/src/components/common/CustomShapeSvg/ViewAllItem.module.scss @@ -0,0 +1,16 @@ +@import "../../../styles/utilities"; + +.viewAll { + display: flex; + .content { + color: var(--primary); + margin: 0.8rem 0.8rem 0.8rem 0; + font-weight: bold; + } + .vector { + margin: 0.8rem 0rem 0.8rem 0rem; + svg path { + fill: var(--primary); + } + } +} diff --git a/src/components/common/Layout/Layout.tsx b/src/components/common/Layout/Layout.tsx index 17f520185..a808c33ff 100644 --- a/src/components/common/Layout/Layout.tsx +++ b/src/components/common/Layout/Layout.tsx @@ -2,7 +2,7 @@ import { CommerceProvider } from '@framework' import { useRouter } from 'next/router' import { FC } from 'react' import { useModalCommon } from 'src/components/hooks' -import { CartDrawer } from '..' +import { CartDrawer, CustomShapeSvg } from '..' import Footer from '../Footer/Footer' import Header from '../Header/Header' import s from './Layout.module.scss' @@ -30,6 +30,7 @@ const Layout: FC = ({ children }) => {
{children}
+ diff --git a/src/components/common/StaticImage/StaticImage.tsx b/src/components/common/StaticImage/StaticImage.tsx index abc27912a..f744e492d 100644 --- a/src/components/common/StaticImage/StaticImage.tsx +++ b/src/components/common/StaticImage/StaticImage.tsx @@ -1,5 +1,5 @@ import React from 'react' -import s from './ImgWithLink.module.scss' +import s from './StaticImage.module.scss' import Image from 'next/image' export interface Props { diff --git a/src/components/common/index.ts b/src/components/common/index.ts index d124b0578..52c372a83 100644 --- a/src/components/common/index.ts +++ b/src/components/common/index.ts @@ -41,3 +41,4 @@ export { default as DrawerCommon} from './DrawerCommon/DrawerCommon' export { default as CartDrawer} from './CartDrawer/CartDrawer' export { default as StaticImage} from './StaticImage/StaticImage' export { default as EmptyCommon} from './EmptyCommon/EmptyCommon' +export { default as CustomShapeSvg} from './CustomShapeSvg/CustomShapeSvg' diff --git a/src/styles/_utilities.scss b/src/styles/_utilities.scss index 6b919de76..fd604735b 100644 --- a/src/styles/_utilities.scss +++ b/src/styles/_utilities.scss @@ -112,6 +112,71 @@ border-radius: 60% 2% 2% 2%/ 6% 50% 50% 50%; } + .shape-common { + all: unset; + position: relative; + $border: 2px; + margin: $border; + color: white; + background: palevioletred; + background-size: cover; + clip-path: url(#svg-custom-shape); + } + + .shape-common-border { + all: unset; + position: relative; + $border: 2px; + margin: $border; + + .inner { + color: red; + background: papayawhip; + background-size: cover; + clip-path: url(#svg-custom-shape); + } + &::before { + position: absolute; + content: ""; + width: calc(100% + #{$border} * 2); + height: calc(100% + #{$border} * 2); + background-color: var(--primary); + top: calc(#{$border} * -1); + left: calc(#{$border} * -1); + clip-path: url(#svg-custom-shape); + z-index: -1; + } + } + + .shape-common-lg { + background-size: cover; + clip-path: url(#svgClip3); + padding: 2rem; + } + + .shape-common-lg-border { + position: relative; + $border: 2px; + margin: $border; + + .inner { + padding: 2rem; + background-size: cover; + clip-path: url(#svg-custom-shape-lg); + } + &::before { + position: absolute; + content: ""; + width: calc(100% + #{$border} * 2); + height: calc(100% + #{$border} * 2); + background-color: wheat; + top: calc(#{$border} * -1); + left: calc(#{$border} * -1); + clip-path: url(#svg-custom-shape-lg); + z-index: -1; + } + } + .font-heading { font-family: var(--font-heading); } @@ -135,7 +200,7 @@ &::-webkit-scrollbar-thumb { border-radius: 10px; - background-color: var(--primary) + background-color: var(--primary); } }