From 558a3de4a6eb5635b94bb2337b2f315b27b82c98 Mon Sep 17 00:00:00 2001 From: quocsonnguyen Date: Fri, 27 Aug 2021 12:32:20 +0700 Subject: [PATCH] :sparkles: feat: Home Feature --- .../components/HomeFeature/HomeFeature.tsx | 15 +++++++++------ .../HomeFeatureItem/HomeFeatureItem.module.scss | 10 ++++------ .../HomeFeatureItem/HomeFeatureItem.tsx | 6 ++++-- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.tsx b/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.tsx index 29cc86603..881c38aa6 100644 --- a/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.tsx +++ b/src/components/modules/home/HomeFeature/components/HomeFeature/HomeFeature.tsx @@ -6,14 +6,17 @@ import HomeFeatureItem from '../HomeFeatureItem/HomeFeatureItem' const HomeFeature = () => { return (
- Webshop owner will upload products at 10:30pm shoppers can buy fresh products at 11pm.} /> + + 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.} /> + + Most fresh fish and seafood will be listed at 8am from inventory. + - Show that food will be shipped in a greengrocery plastic bag.} /> + + Show that food will be shipped in a greengrocery plastic bag. +
) diff --git a/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.module.scss b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.module.scss index 217ed0f98..93d876333 100644 --- a/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.module.scss +++ b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.module.scss @@ -36,17 +36,15 @@ .itemText { display: flex; - font-size: 1.6rem; - line-height: 2.4rem; - width: 28rem; - height: 9.6rem; + max-width: 28rem; + min-width: 28rem; color: #000; margin-right: 2.4rem; align-items: center; @screen md { display: flex; - width: 28rem; - height: 9.6rem; + max-width: 28rem; + min-width: 28rem; color: #000; margin-right: 2.4rem; align-items: center; diff --git a/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx index 35610dfff..8dd34cfa9 100644 --- a/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx +++ b/src/components/modules/home/HomeFeature/components/HomeFeatureItem/HomeFeatureItem.tsx @@ -13,8 +13,10 @@ const HomeFeatureItem = ({ image, children }: HomeFeatureItemProps) => { return (
home feature item img + [s[image]]: image, + })} + alt="home feature item img" + />
{children}
)