mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 23:16:59 +00:00
Missmatch with RightArrow
This commit is contained in:
parent
bc6e2adf86
commit
caf1ac04ac
@ -1,23 +1,22 @@
|
|||||||
const RightArrow = ({ ...props }) => {
|
const ArrowRight = ({ ...props }) => {
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
width="24"
|
width="24"
|
||||||
height="24"
|
height="24"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
fill="none"
|
fill="none"
|
||||||
|
stroke="currentColor"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
d="M5 12H19"
|
d="M5 12H19"
|
||||||
stroke="white"
|
|
||||||
strokeWidth="1.5"
|
strokeWidth="1.5"
|
||||||
strokeLinecap="round"
|
strokeLinecap="round"
|
||||||
strokeLinejoin="round"
|
strokeLinejoin="round"
|
||||||
/>
|
/>
|
||||||
<path
|
<path
|
||||||
d="M12 5L19 12L12 19"
|
d="M12 5L19 12L12 19"
|
||||||
stroke="currentColor"
|
|
||||||
strokeWidth="1.5"
|
strokeWidth="1.5"
|
||||||
strokeLinecap="round"
|
strokeLinecap="round"
|
||||||
strokeLinejoin="round"
|
strokeLinejoin="round"
|
||||||
@ -26,4 +25,4 @@ const RightArrow = ({ ...props }) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default RightArrow
|
export default ArrowRight
|
@ -2,18 +2,18 @@ export { default as Bag } from './Bag'
|
|||||||
export { default as Heart } from './Heart'
|
export { default as Heart } from './Heart'
|
||||||
export { default as Trash } from './Trash'
|
export { default as Trash } from './Trash'
|
||||||
export { default as Cross } from './Cross'
|
export { default as Cross } from './Cross'
|
||||||
export { default as ArrowLeft } from './ArrowLeft'
|
|
||||||
export { default as Plus } from './Plus'
|
export { default as Plus } from './Plus'
|
||||||
export { default as Minus } from './Minus'
|
export { default as Minus } from './Minus'
|
||||||
export { default as Check } from './Check'
|
export { default as Check } from './Check'
|
||||||
export { default as Sun } from './Sun'
|
export { default as Sun } from './Sun'
|
||||||
export { default as Moon } from './Moon'
|
export { default as Moon } from './Moon'
|
||||||
export { default as Github } from './Github'
|
export { default as Github } from './Github'
|
||||||
export { default as RightArrow } from './RightArrow'
|
|
||||||
export { default as Info } from './Info'
|
export { default as Info } from './Info'
|
||||||
export { default as Vercel } from './Vercel'
|
export { default as Vercel } from './Vercel'
|
||||||
export { default as MapPin } from './MapPin'
|
export { default as MapPin } from './MapPin'
|
||||||
export { default as Star } from './Star'
|
export { default as Star } from './Star'
|
||||||
|
export { default as ArrowLeft } from './ArrowLeft'
|
||||||
|
export { default as ArrowRight } from './ArrowRight'
|
||||||
export { default as CreditCard } from './CreditCard'
|
export { default as CreditCard } from './CreditCard'
|
||||||
export { default as ChevronUp } from './ChevronUp'
|
export { default as ChevronUp } from './ChevronUp'
|
||||||
export { default as ChevronLeft } from './ChevronLeft'
|
export { default as ChevronLeft } from './ChevronLeft'
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.rightControl {
|
.rightControl {
|
||||||
@apply border-l;
|
@apply border-l border-accent-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leftControl {
|
.leftControl {
|
||||||
|
@ -10,7 +10,7 @@ import React, {
|
|||||||
import cn from 'classnames'
|
import cn from 'classnames'
|
||||||
import { a } from '@react-spring/web'
|
import { a } from '@react-spring/web'
|
||||||
import s from './ProductSlider.module.css'
|
import s from './ProductSlider.module.css'
|
||||||
import { ChevronLeft, ChevronRight } from '@components/icons'
|
import { ArrowLeft, ArrowRight } from '@components/icons'
|
||||||
|
|
||||||
const ProductSlider: FC = ({ children }) => {
|
const ProductSlider: FC = ({ children }) => {
|
||||||
const [currentSlide, setCurrentSlide] = useState(0)
|
const [currentSlide, setCurrentSlide] = useState(0)
|
||||||
@ -86,14 +86,14 @@ const ProductSlider: FC = ({ children }) => {
|
|||||||
onClick={slider.prev}
|
onClick={slider.prev}
|
||||||
aria-label="Previous Product Image"
|
aria-label="Previous Product Image"
|
||||||
>
|
>
|
||||||
<ChevronLeft />
|
<ArrowLeft />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className={cn(s.rightControl)}
|
className={cn(s.rightControl)}
|
||||||
onClick={slider.next}
|
onClick={slider.next}
|
||||||
aria-label="Next Product Image"
|
aria-label="Next Product Image"
|
||||||
>
|
>
|
||||||
<ChevronRight />
|
<ArrowRight />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -155,7 +155,7 @@ const ProductView: FC<ProductViewProps> = ({ product, relatedProducts }) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr className="mt-6" />
|
<hr className="mt-6 border-accent-2" />
|
||||||
<section className="py-6 px-6 mb-10">
|
<section className="py-6 px-6 mb-10">
|
||||||
<Text variant="sectionHeading">Related Products</Text>
|
<Text variant="sectionHeading">Related Products</Text>
|
||||||
<div className="grid grid-cols-2 py-2 gap-4 md:grid-cols-4 md:gap-20">
|
<div className="grid grid-cols-2 py-2 gap-4 md:grid-cols-4 md:gap-20">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import React, { FC } from 'react'
|
import React, { FC } from 'react'
|
||||||
import { Container } from '@components/ui'
|
import { Container } from '@components/ui'
|
||||||
import { RightArrow } from '@components/icons'
|
import { ArrowRight } from '@components/icons'
|
||||||
import s from './Hero.module.css'
|
import s from './Hero.module.css'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
interface HeroProps {
|
interface HeroProps {
|
||||||
@ -22,7 +22,7 @@ const Hero: FC<HeroProps> = ({ headline, description }) => {
|
|||||||
<Link href="/">
|
<Link href="/">
|
||||||
<a className="text-accent-0 pt-3 font-bold hover:underline flex flex-row cursor-pointer w-max-content">
|
<a className="text-accent-0 pt-3 font-bold hover:underline flex flex-row cursor-pointer w-max-content">
|
||||||
Read it here
|
Read it here
|
||||||
<RightArrow width="20" heigh="20" className="ml-1" />
|
<ArrowRight width="20" heigh="20" className="ml-1" />
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user