mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
🎨 styles: fix img, bg home categories section
:%s
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import React, { forwardRef, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
import React, { forwardRef, useImperativeHandle, useMemo, useRef } from 'react';
|
||||||
import { IconCheck, IconError, IconPassword, IconPasswordCross } from 'src/components/icons';
|
import { IconCheck, IconError } from 'src/components/icons';
|
||||||
import { KEY } from 'src/utils/constanst.utils';
|
import { KEY } from 'src/utils/constanst.utils';
|
||||||
import s from './InputCommon.module.scss';
|
import s from './InputCommon.module.scss';
|
||||||
|
|
||||||
@@ -81,9 +81,7 @@ const InputCommon = forwardRef<Ref, Props>(({ value, placeholder, type, styleTyp
|
|||||||
placeholder={placeholder}
|
placeholder={placeholder}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
onKeyDown={handleKeyDown}
|
onKeyDown={handleKeyDown}
|
||||||
className={classNames({
|
className={s.inputCommon}
|
||||||
[s.inputCommon]: true,
|
|
||||||
})}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
.categoryItem {
|
.categoryItem {
|
||||||
.categoryItemImage {
|
.categoryItemImage {
|
||||||
@apply transition-all duration-200;
|
@apply flex justify-center items-center transition-all duration-200;
|
||||||
width: 10.6rem;
|
width: 10.6rem;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-height: 14rem;
|
max-height: 14rem;
|
||||||
|
@@ -4,6 +4,7 @@ import s from './CategoryItem.module.scss'
|
|||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
import { StaticImage } from 'src/components/common';
|
||||||
|
|
||||||
interface CategoryItem {
|
interface CategoryItem {
|
||||||
image: StaticImageData,
|
image: StaticImageData,
|
||||||
@@ -17,7 +18,7 @@ const CategoryItem = ({ image, name, link }: CategoryItem) => {
|
|||||||
<div className={classNames(s.categoryItemImage)}>
|
<div className={classNames(s.categoryItemImage)}>
|
||||||
<Link href={link}>
|
<Link href={link}>
|
||||||
<a>
|
<a>
|
||||||
<Image src={image} />
|
<StaticImage src={image} />
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
margin: 3rem auto;
|
margin: 3rem auto;
|
||||||
|
|
||||||
.inner {
|
.inner {
|
||||||
@apply relative spacing-horizontal;
|
@apply relative spacing-horizontal w-full;
|
||||||
|
|
||||||
padding-top: 1.6rem;
|
padding-top: 1.6rem;
|
||||||
padding-bottom: 1.6rem;
|
padding-bottom: 1.6rem;
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
}
|
}
|
||||||
@screen md {
|
@screen md {
|
||||||
@apply relative;
|
@apply relative;
|
||||||
margin: 5.6rem auto;
|
margin: 12.8rem auto;
|
||||||
|
|
||||||
&::before,
|
&::before,
|
||||||
&::after {
|
&::after {
|
||||||
|
Reference in New Issue
Block a user