diff --git a/src/components/modules/home/HomeFeature/HomeFeature.module.scss b/src/components/modules/home/HomeFeature/HomeFeature.module.scss new file mode 100644 index 000000000..451dc39c5 --- /dev/null +++ b/src/components/modules/home/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; + padding-top: 3.2rem; + padding-bottom: 3.2rem; + + @screen md { + @apply spacing-horizontal grid-cols-3; + margin-bottom: 6.4rem; + } +} \ No newline at end of file diff --git a/src/components/modules/home/HomeFeature/HomeFeature.tsx b/src/components/modules/home/HomeFeature/HomeFeature.tsx new file mode 100644 index 000000000..af6ec7287 --- /dev/null +++ b/src/components/modules/home/HomeFeature/HomeFeature.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import s from './HomeFeature.module.scss' + +import HomeFeatureItem from './components/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/assets/10h30-11h-desktop.png b/src/components/modules/home/HomeFeature/assets/10h30-11h-desktop.png new file mode 100644 index 000000000..f304867b9 Binary files /dev/null and b/src/components/modules/home/HomeFeature/assets/10h30-11h-desktop.png differ diff --git a/src/components/modules/home/HomeFeature/assets/10h30-11h-mobile.png b/src/components/modules/home/HomeFeature/assets/10h30-11h-mobile.png new file mode 100644 index 000000000..871e0e15b Binary files /dev/null and b/src/components/modules/home/HomeFeature/assets/10h30-11h-mobile.png differ 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/HomeFeatureItem/HomeFeatureItem.module.scss b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.module.scss new file mode 100644 index 000000000..a31e5e4fe --- /dev/null +++ b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.module.scss @@ -0,0 +1,59 @@ +@import '../../../../../../styles/utilities'; + +.homeFeatureItem { + @apply flex; + align-items: center; + vertical-align: middle; + height: fit-content; + width: fit-content; + + @screen md { + @apply block; + } + + @screen lg { + @apply flex; + } + + .itemImg { + @apply flex float-left clear-both; + margin-right: 2.4rem; + align-items: center; + &.firstImg { + margin-top: 1rem; + content:url("../../assets/10h30-11h-desktop.png"); + } + &.secondImg { + margin-top: 1rem; + content:url("../../assets/8h-desktop.png"); + } + &.thirdImg { + margin-top: 1rem; + content:url("../../assets/green-desktop.png"); + } + + @screen md { + @apply flex justify-center items-center; + margin: auto; + } + + @screen lg { + @apply flex float-left clear-both; + margin-right: 2.4rem; + } + } + + .itemText { + @apply inline-block; + max-width: 28rem; + min-width: 12rem; + color: #000; + margin-right: 2.4rem; + align-items: center; + + @screen md { + @apply flex; + } + } + +} \ No newline at end of file diff --git a/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx new file mode 100644 index 000000000..eb566bdc9 --- /dev/null +++ b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx @@ -0,0 +1,25 @@ +import React from 'react' +import classNames from 'classnames' +import s from './HomeFeatureItem.module.scss' + + +interface HomeFeatureItemProps { + image: string; + children: any; +} + +const HomeFeatureItem = ({ image, children }: HomeFeatureItemProps) => { + + return ( +
+ home feature item img +
{children}
+
+ ) + +} + +export default HomeFeatureItem diff --git a/src/components/modules/home/index.ts b/src/components/modules/home/index.ts index cd3129cc7..4a2e3d796 100644 --- a/src/components/modules/home/index.ts +++ b/src/components/modules/home/index.ts @@ -6,3 +6,5 @@ export { default as HomeSubscribe } from './HomeSubscribe/HomeSubscribe' export { default as HomeVideo } from './HomeVideo/HomeVideo' export { default as HomeCollection } from './HomeCollection/HomeCollection' export { default as HomeRecipe } from './HomeRecipe/HomeRecipe' +export { default as HomeFeature } from './HomeFeature/HomeFeature' +export { default as HomeFeatureItem } from './HomeFeature/components/HomeFeatureItem/HomeFeatureItem'