mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 04:01:21 +00:00
styles: button common
This commit is contained in:
parent
b2ac71f8cd
commit
eed70795ae
@ -1,10 +1,13 @@
|
|||||||
|
|
||||||
import { ButtonCommon, Layout } from 'src/components/common'
|
import { ButtonCommon, Layout } from 'src/components/common'
|
||||||
|
import { ButonType, ButtonSize } from 'src/utils/constanst.utils'
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div>This is home page</div>
|
<div>This is home page</div>
|
||||||
<ButtonCommon>Button default</ButtonCommon>
|
<ButtonCommon>Button default</ButtonCommon>
|
||||||
|
<ButtonCommon type={ButonType.light}>Button light</ButtonCommon>
|
||||||
|
<ButtonCommon size={ButtonSize.large}>Button default large</ButtonCommon>
|
||||||
<p>Go to <code>pages/index.tsx</code> to get your hand dirty!</p>
|
<p>Go to <code>pages/index.tsx</code> to get your hand dirty!</p>
|
||||||
<p>Go to <code>src/components</code> to make your awesome component!</p>
|
<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>
|
<p>Go to <code>src/styles</code> to find global styles!</p>
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
@import '../../../styles/utilities';
|
@import "../../../styles/utilities";
|
||||||
|
|
||||||
.buttonCommon {
|
.buttonCommon {
|
||||||
@apply custom-border-radius bg-primary hover:bg-hover-primary transition-all duration-200;
|
@apply custom-border-radius bg-primary hover:bg-hover-primary transition-all duration-200 text-white;
|
||||||
padding: 1.6rem 3.6rem;
|
padding: 1.6rem 3.6rem;
|
||||||
|
&.light {
|
||||||
|
@apply text-base;
|
||||||
|
background-color: #fff !important;
|
||||||
|
border: 1px solid theme("textColor.active") !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
&.large {
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user