diff --git a/src/components/modules/home/HomeFeature/HomeFeature.module.scss b/src/components/modules/home/HomeFeature/HomeFeature.module.scss deleted file mode 100644 index f9f799ae6..000000000 --- a/src/components/modules/home/HomeFeature/HomeFeature.module.scss +++ /dev/null @@ -1,43 +0,0 @@ -@import '../../../../styles/utilities'; - -.homeFeature { - @apply spacing-horizontal-left; - overflow-x: hidden; - - @screen md { - @apply spacing-horizontal grid grid-cols-3; - - } -} - -.homeFeatureItem { - @apply inline-block align-middle; - - .itemImg { - @apply float-left clear-both; - width: 5.6rem; - height: 5.6rem; - - @screen md { - @apply float-left clear-both; - width: 11.2rem; - height: 11.2rem; - } - } - - .itemText { - @apply collection-subtitle; - width: 28rem; - height: 9.6rem; - margin-left: 2.4rem; - - @screen md { - @apply collection-subtitle text-justify; - width: 36rem; - height: 9.6rem; - margin-left: 2.4rem; - color: red; - } - } - -} \ No newline at end of file diff --git a/src/components/modules/home/HomeFeature/HomeFeature.tsx b/src/components/modules/home/HomeFeature/HomeFeature.tsx deleted file mode 100644 index 04611ac75..000000000 --- a/src/components/modules/home/HomeFeature/HomeFeature.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import React from 'react' -import s from './HomeFeature.module.scss' - -import HomeFeatureItem from './HomeFeatureItem' - -import img from './assets/desktop.png' - -interface HomeFeatureProps { - -} - -const HomeFeature = ({ }: HomeFeatureProps) => { - return ( -
- - - -
- ) - -} - -export default HomeFeature diff --git a/src/components/modules/home/HomeFeature/assets/desktop.png b/src/components/modules/home/HomeFeature/assets/10h30-11h-desktop.png similarity index 100% rename from src/components/modules/home/HomeFeature/assets/desktop.png rename to src/components/modules/home/HomeFeature/assets/10h30-11h-desktop.png diff --git a/src/components/modules/home/HomeFeature/assets/mobile.png b/src/components/modules/home/HomeFeature/assets/10h30-11h-mobile.png similarity index 100% rename from src/components/modules/home/HomeFeature/assets/mobile.png rename to src/components/modules/home/HomeFeature/assets/10h30-11h-mobile.png diff --git a/src/components/modules/home/HomeFeature/assets/8h-desktop.png b/src/components/modules/home/HomeFeature/assets/8h-desktop.png new file mode 100644 index 000000000..403996dc9 Binary files /dev/null and b/src/components/modules/home/HomeFeature/assets/8h-desktop.png differ diff --git a/src/components/modules/home/HomeFeature/assets/8h-mobile.png b/src/components/modules/home/HomeFeature/assets/8h-mobile.png new file mode 100644 index 000000000..e734cf1e5 Binary files /dev/null and b/src/components/modules/home/HomeFeature/assets/8h-mobile.png differ diff --git a/src/components/modules/home/HomeFeature/assets/green-desktop.png b/src/components/modules/home/HomeFeature/assets/green-desktop.png new file mode 100644 index 000000000..bbef713d0 Binary files /dev/null and b/src/components/modules/home/HomeFeature/assets/green-desktop.png differ diff --git a/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.module.scss b/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.module.scss new file mode 100644 index 000000000..6a4c68be8 --- /dev/null +++ b/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.module.scss @@ -0,0 +1,14 @@ +@import '../../../../../../styles/utilities'; + +.homeFeature { + @apply spacing-horizontal-left grid grid-cols-1; + background-color: #FFFFFF; + height: fit-content; + display: flex; + margin-bottom: 3.2rem; + + @screen xl { + @apply spacing-horizontal grid grid-cols-3; + margin-bottom: 6.4rem; + } +} \ No newline at end of file diff --git a/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.tsx b/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.tsx new file mode 100644 index 000000000..29cc86603 --- /dev/null +++ b/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.tsx @@ -0,0 +1,22 @@ +import React from 'react' +import s from './HomeFeature.module.scss' + +import HomeFeatureItem from '../HomeFeatureItem/HomeFeatureItem' + +const HomeFeature = () => { + return ( +
+ Webshop owner will upload products at 10:30pm shoppers can buy fresh products at 11pm.} /> + + Most fresh fish and seafood will be listed at 8am from inventory.} /> + + Show that food will be shipped in a greengrocery plastic bag.} /> +
+ ) + +} + +export default HomeFeature diff --git a/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.module.scss b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.module.scss new file mode 100644 index 000000000..217ed0f98 --- /dev/null +++ b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.module.scss @@ -0,0 +1,56 @@ +@import '../../../../../../styles/utilities'; + +.homeFeatureItem { + @apply flex; + align-items: center; + vertical-align: middle; + height: fit-content; + + .itemImg { + @apply float-left clear-both; + min-width: 9.6rem; + max-width: 11.2rem; + margin-right: 2.4rem; + &.firstImg { + content:url("../../assets/10h30-11h-mobile.png"); + } + &.secondImg { + content:url("../../assets/8h-mobile.png"); + } + @screen md { + @apply float-left clear-both; + min-width: 9.6rem; + max-width: 11.2rem; + margin-right: 2.4rem; + &.firstImg { + content:url("../../assets/10h30-11h-desktop.png"); + } + &.secondImg { + content:url("../../assets/8h-desktop.png"); + } + &.thirdImg { + content:url("../../assets/green-desktop.png"); + } + } + } + + .itemText { + display: flex; + font-size: 1.6rem; + line-height: 2.4rem; + width: 28rem; + height: 9.6rem; + color: #000; + margin-right: 2.4rem; + align-items: center; + @screen md { + display: flex; + width: 28rem; + height: 9.6rem; + color: #000; + margin-right: 2.4rem; + align-items: center; + } + } + +} \ No newline at end of file diff --git a/src/components/modules/home/HomeFeature/HomeFeatureItem.tsx b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx similarity index 52% rename from src/components/modules/home/HomeFeature/HomeFeatureItem.tsx rename to src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx index 50b01abd0..d09624f93 100644 --- a/src/components/modules/home/HomeFeature/HomeFeatureItem.tsx +++ b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx @@ -1,18 +1,20 @@ import React from 'react' -import s from './HomeFeature.module.scss' -import Image from 'next/image' +import classNames from 'classnames' +import s from './HomeFeatureItem.module.scss' + interface HomeFeatureItemProps { - image?: any; - children: string; + image: string; + children: any; } const HomeFeatureItem = ({ image, children }: HomeFeatureItemProps) => { return (
- home feature item img - {/* home feature item img */} + home feature item img
{children}
) diff --git a/src/components/modules/home/HomeFeature/components/index.ts b/src/components/modules/home/HomeFeature/components/index.ts new file mode 100644 index 000000000..c4f31a879 --- /dev/null +++ b/src/components/modules/home/HomeFeature/components/index.ts @@ -0,0 +1 @@ +export { default as HomeFuture } from './HomeFeature/HomeFeature'; \ No newline at end of file