mirror of
https://github.com/vercel/commerce.git
synced 2025-07-07 21:31:22 +00:00
✨ feat: Home Feature
This commit is contained in:
parent
9df2484d60
commit
558a3de4a6
@ -6,14 +6,17 @@ import HomeFeatureItem from '../HomeFeatureItem/HomeFeatureItem'
|
||||
const HomeFeature = () => {
|
||||
return (
|
||||
<section className={s.homeFeature}>
|
||||
<HomeFeatureItem image="firstImg"
|
||||
children={<span> Webshop owner will <b>upload products at 10:30pm </b>shoppers can buy <b>fresh products at 11pm.</b></span>} />
|
||||
<HomeFeatureItem image="firstImg">
|
||||
<span> Webshop owner will <b>upload products at 10:30pm </b>shoppers can buy <b>fresh products at 11pm.</b></span>
|
||||
</HomeFeatureItem>
|
||||
|
||||
<HomeFeatureItem image="secondImg"
|
||||
children={<span>Most fresh fish and seafood <b>will be listed at 8am </b>from inventory.</span>} />
|
||||
<HomeFeatureItem image="secondImg">
|
||||
<span>Most fresh fish and seafood <b>will be listed at 8am </b>from inventory.</span>
|
||||
</HomeFeatureItem>
|
||||
|
||||
<HomeFeatureItem image="thirdImg"
|
||||
children={<span>Show that food will be shipped in <b>a greengrocery plastic bag</b>.</span>} />
|
||||
<HomeFeatureItem image="thirdImg">
|
||||
<span>Show that food will be shipped in <b>a greengrocery plastic bag</b>.</span>
|
||||
</HomeFeatureItem>
|
||||
</section>
|
||||
)
|
||||
|
||||
|
@ -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;
|
||||
|
@ -13,8 +13,10 @@ const HomeFeatureItem = ({ image, children }: HomeFeatureItemProps) => {
|
||||
return (
|
||||
<div className={s.homeFeatureItem}>
|
||||
<img className={classNames(s.itemImg, {
|
||||
[s[image]]: image,
|
||||
})} alt="home feature item img" />
|
||||
[s[image]]: image,
|
||||
})}
|
||||
alt="home feature item img"
|
||||
/>
|
||||
<div className={s.itemText}>{children}</div>
|
||||
</div>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user