mirror of
https://github.com/vercel/commerce.git
synced 2025-07-07 05:11:22 +00:00
🎨 styles: home categories bg
:%s
This commit is contained in:
parent
44f7633f35
commit
170eb0f582
@ -1,8 +1,41 @@
|
||||
@import "../../../../styles/_utilities";
|
||||
.homeCategoriesWrapper {
|
||||
@apply flex flex-col items-center justify-center spacing-horizontal;
|
||||
@apply flex flex-col items-center justify-center;
|
||||
margin-bottom: 3rem;
|
||||
|
||||
.inner {
|
||||
@apply relative spacing-horizontal;
|
||||
|
||||
padding-top: 1.6rem;
|
||||
padding-bottom: 1.6rem;
|
||||
z-index: 10;
|
||||
@screen md {
|
||||
background-color: var(--background);
|
||||
@apply bg-gray;
|
||||
}
|
||||
}
|
||||
@screen md {
|
||||
@apply relative;
|
||||
margin-bottom: 5.6rem;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
@apply absolute bg-primary w-full;
|
||||
content: "";
|
||||
height: 6rem;
|
||||
z-index: 0;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 115%;
|
||||
}
|
||||
&::before {
|
||||
top: -4rem;
|
||||
background-image: url("./img/bg_top.svg");
|
||||
background-position: top center;
|
||||
}
|
||||
&::after {
|
||||
bottom: -4rem;
|
||||
background-image: url("./img/bg_bottom.svg");
|
||||
background-position: bottom center;
|
||||
}
|
||||
}
|
||||
.homeCategoryList {
|
||||
@apply flex justify-start items-center flex-wrap;
|
||||
|
@ -46,9 +46,8 @@ const categories = [
|
||||
const HomeCategories = () => {
|
||||
return (
|
||||
<div className={classNames(s.homeCategoriesWrapper)}>
|
||||
<div className={classNames(s.homeCategoriesHeading)}>
|
||||
<HeadingCommon align='center' children="CATEGORIES"></HeadingCommon>
|
||||
</div>
|
||||
<div className={s.inner}>
|
||||
<HeadingCommon align='center'>CATEGORIES</HeadingCommon>
|
||||
|
||||
<div className={classNames(s.homeCategoryList)}>
|
||||
{categories?.map(item => (
|
||||
@ -62,6 +61,7 @@ const HomeCategories = () => {
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 14 KiB |
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 14 KiB |
Loading…
x
Reference in New Issue
Block a user