mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
🔀 merge: Merge branch 'common' of https://github.com/KieIO/grocery-vercel-commerce into m1-sonnguyen
:%s
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React, { MutableRefObject, useRef } from 'react';
|
||||
import { HeadingCommon, CollectionHeading, ScrollToTop, ScrollTarget } from 'src/components/common'
|
||||
import { Banner, ButtonCommon, ButtonIconBuy, CollectionHeading, HeadingCommon, Inputcommon, InputSearch, Layout, ScrollTarget } from 'src/components/common';
|
||||
import { IconBuy } from 'src/components/icons';
|
||||
|
||||
export default function Home() {
|
||||
const refScrollUp = useRef() as MutableRefObject<HTMLDivElement>;
|
||||
@@ -7,30 +8,29 @@ export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<ScrollTarget refScrollUp={refScrollUp} />
|
||||
<HeadingCommon align="center" children="categories" />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading type="highlight" children="fresh product todays" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<CollectionHeading children="coffee bean" subtitle="Last call! Shop deep deals on 100+ bulk picks while you can." />
|
||||
<ScrollToTop target={refScrollUp} />
|
||||
<HeadingCommon align="center">categories</HeadingCommon>
|
||||
<HeadingCommon type='light'>categories</HeadingCommon>
|
||||
<CollectionHeading subtitle='Lorem' title='Heading here'/>
|
||||
<HeadingCommon align="center" type='light'>categories</HeadingCommon>
|
||||
|
||||
<p>Go to <code>src/components</code> to make your awesome component!</p>
|
||||
<p>Go to <code>src/styles</code> to find global styles!</p>
|
||||
|
||||
{/* demo */}
|
||||
<div style={{ display: 'flex' }}>
|
||||
<Inputcommon placeholder="Enter here" />
|
||||
<InputSearch />
|
||||
</div>
|
||||
<ButtonCommon type='ghost' icon={<IconBuy />}>Button</ButtonCommon>
|
||||
<ButtonIconBuy />
|
||||
|
||||
<Banner
|
||||
title="Save 15% on your first order"
|
||||
subtitle="Last call! Shop deep deals on 100+ bulk picks while you can."
|
||||
imgLink="https://user-images.githubusercontent.com/76729908/130574371-3b75fa72-9552-4605-aba9-a4b31cd9dce7.png"
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
// Home.Layout = Layout
|
||||
Home.Layout = Layout
|
||||
|
Reference in New Issue
Block a user