File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// 목록 페이지의 키보드 카드 컴포넌트
2-
3- import Image from 'next/image' ;
42import Link from 'next/link' ;
53
64import React from 'react' ;
75
6+ import CustomRightArrowIcon from '@/components/ui/Icon/CustomRightArrowIcon' ;
87import KeyboardThumbnail from '@/components/ui/KeyboardThumbnail' ;
98import RatingAndPrice from '@/components/ui/RatingAndPrice' ;
109import StarRating from '@/components/ui/StarRating' ;
@@ -36,7 +35,7 @@ const IndexKeyboardsCard = ({
3635 return (
3736 < Link
3837 href = { `/keyboards/${ keyboardId } ` }
39- className = 'block mb-5 border border-gray-300 rounded-xl md:rounded-2xl bg-white'
38+ className = 'group block mb-5 border border-gray-300 rounded-xl md:rounded-2xl bg-white hover:-translate-y-2 hover:shadow-primary hover:border-primary transition-all '
4039 >
4140 < div className = 'flex' >
4241 { /* 이미지 영역 */ }
@@ -73,13 +72,9 @@ const IndexKeyboardsCard = ({
7372 { reviewCount } 개의 후기
7473 </ div >
7574 </ div >
76- < Image
77- src = '/images/RightArrowIcon.svg'
78- alt = '오른쪽 이동'
79- width = { 32 }
80- height = { 32 }
81- className = 'ml-auto w-[32px] md:w-[36px] md:mt-auto cursor-pointer'
82- />
75+ < div className = 'ml-auto md:mt-auto w-[32px] md:w-[36px]' >
76+ < CustomRightArrowIcon className = ' text-gray-300 transition-all -translate-x-2 group-hover:translate-x-2 group-hover:text-primary' />
77+ </ div >
8378 </ div >
8479 </ div >
8580 </ div >
Original file line number Diff line number Diff line change 1+ const CustomRightArrowIcon = ( props : React . SVGProps < SVGSVGElement > ) => {
2+ return (
3+ < svg
4+ xmlns = 'http://www.w3.org/2000/svg'
5+ viewBox = '0 0 24 24'
6+ fill = 'none'
7+ strokeWidth = '0.3'
8+ stroke = 'currentColor'
9+ { ...props }
10+ >
11+ < path
12+ d = 'M12.175 9.00011H1C0.716667 9.00011 0.479167 8.90428 0.2875 8.71261C0.0958333 8.52094 0 8.28344 0 8.00011C0 7.71678 0.0958333 7.47928 0.2875 7.28761C0.479167 7.09594 0.716667 7.00011 1 7.00011H12.175L7.275 2.10011C7.075 1.90011 6.97917 1.66678 6.9875 1.40011C6.99583 1.13344 7.1 0.900109 7.3 0.700109C7.5 0.516776 7.73333 0.420943 8 0.412609C8.26667 0.404276 8.5 0.500109 8.7 0.700109L15.3 7.30011C15.4 7.40011 15.4708 7.50844 15.5125 7.62511C15.5542 7.74178 15.575 7.86678 15.575 8.00011C15.575 8.13344 15.5542 8.25844 15.5125 8.37511C15.4708 8.49178 15.4 8.60011 15.3 8.70011L8.7 15.3001C8.51667 15.4834 8.2875 15.5751 8.0125 15.5751C7.7375 15.5751 7.5 15.4834 7.3 15.3001C7.1 15.1001 7 14.8626 7 14.5876C7 14.3126 7.1 14.0751 7.3 13.8751L12.175 9.00011Z'
13+ fill = 'currentColor'
14+ />
15+ </ svg >
16+ ) ;
17+ } ;
18+
19+ export default CustomRightArrowIcon ;
You can’t perform that action at this time.
0 commit comments