|
|
@@ -1,4 +1,6 @@
|
|
|
import React, { useState } from 'react';
|
|
|
+import LeftArrow from './LeftArrow';
|
|
|
+import RightArrow from './RightArrow';
|
|
|
|
|
|
interface MultipleImageDisplayProps {
|
|
|
imageUrls: string[];
|
|
|
@@ -37,82 +39,16 @@ const MultipleImageDisplay: React.FC<MultipleImageDisplayProps> = ({ imageUrls,
|
|
|
className="absolute w-[1510px] left-1/2 top-[545.72px] transform -translate-x-1/2 inline-flex justify-between items-center"
|
|
|
>
|
|
|
{/* 左箭头 */}
|
|
|
- <button
|
|
|
- data-layer="原创-箭头right"
|
|
|
- className="size-20 relative origin-top-left rotate-180 cursor-pointer hover:opacity-80 transition-opacity"
|
|
|
+ <LeftArrow
|
|
|
+ themeColor={themeColor}
|
|
|
onClick={handlePrev}
|
|
|
- >
|
|
|
- <div data-svg-wrapper data-layer="矩形" className="left-0 top-0 absolute">
|
|
|
- <svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
- <path fillRule="evenodd" clipRule="evenodd" d="M0 0V80H80V0H0Z" fill="black" fillOpacity="0.0117647" />
|
|
|
- </svg>
|
|
|
- </div>
|
|
|
- <div data-svg-wrapper data-layer="三角形" className="left-[15.47px] top-[16.70px] absolute">
|
|
|
- <svg width="24" height="48" viewBox="0 0 24 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
- <path d="M22.8047 1.91602L19.9746 12.4355C17.9523 19.9527 17.9523 27.8715 19.9746 35.3887L22.8047 45.9092L0.808594 23.9121L22.8047 1.91602Z" fill="url(#paint0_linear_2124_5652)" stroke="url(#paint1_linear_2124_5652)" strokeWidth="1.14286" />
|
|
|
- <defs>
|
|
|
- <linearGradient id="paint0_linear_2124_5652" x1="0" y1="47.8244" x2="23.9123" y2="47.8244" gradientUnits="userSpaceOnUse">
|
|
|
- <stop stopColor={themeColor} />
|
|
|
- <stop offset="1" stopColor="#7C5101" />
|
|
|
- </linearGradient>
|
|
|
- <linearGradient id="paint1_linear_2124_5652" x1="0" y1="47.8244" x2="23.9123" y2="47.8244" gradientUnits="userSpaceOnUse">
|
|
|
- <stop stopColor={themeColor} />
|
|
|
- <stop offset="1" stopColor="#7C5101" />
|
|
|
- </linearGradient>
|
|
|
- </defs>
|
|
|
- </svg>
|
|
|
- </div>
|
|
|
- <div data-svg-wrapper data-layer="三角形" className="left-[39.38px] top-[16.70px] absolute">
|
|
|
- <svg width="24" height="48" viewBox="0 0 24 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
- <path d="M22.8047 1.91602L19.9746 12.4355C17.9523 19.9527 17.9523 27.8715 19.9746 35.3887L22.8047 45.9092L0.808594 23.9121L22.8047 1.91602Z" fill={themeColor} stroke="url(#paint0_linear_2124_5653)" strokeWidth="1.14286" />
|
|
|
- <defs>
|
|
|
- <linearGradient id="paint0_linear_2124_5653" x1="0" y1="47.8244" x2="23.9123" y2="47.8244" gradientUnits="userSpaceOnUse">
|
|
|
- <stop stopColor={themeColor} />
|
|
|
- <stop offset="1" stopColor="#7C5101" />
|
|
|
- </linearGradient>
|
|
|
- </defs>
|
|
|
- </svg>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
+ />
|
|
|
|
|
|
{/* 右箭头 */}
|
|
|
- <button
|
|
|
- data-layer="原创-箭头right"
|
|
|
- className="size-20 relative cursor-pointer hover:opacity-80 transition-opacity"
|
|
|
+ <RightArrow
|
|
|
+ themeColor={themeColor}
|
|
|
onClick={handleNext}
|
|
|
- >
|
|
|
- <div data-svg-wrapper data-layer="矩形" className="left-0 top-0 absolute">
|
|
|
- <svg width="80" height="80" viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
- <path fillRule="evenodd" clipRule="evenodd" d="M80 0V80H0V0H80Z" fill="black" fillOpacity="0.0117647" />
|
|
|
- </svg>
|
|
|
- </div>
|
|
|
- <div data-svg-wrapper data-layer="三角形" className="left-[40.62px] top-[16.70px] absolute">
|
|
|
- <svg width="24" height="48" viewBox="0 0 24 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
- <path d="M1.10742 1.91602L3.9375 12.4355C5.95979 19.9527 5.95979 27.8715 3.9375 35.3887L1.10742 45.9092L23.1035 23.9121L1.10742 1.91602Z" fill="url(#paint0_linear_2124_5656)" stroke="url(#paint1_linear_2124_5656)" strokeWidth="1.14286" />
|
|
|
- <defs>
|
|
|
- <linearGradient id="paint0_linear_2124_5656" x1="23.9121" y1="47.8244" x2="-0.000147684" y2="47.8244" gradientUnits="userSpaceOnUse">
|
|
|
- <stop stopColor={themeColor} />
|
|
|
- <stop offset="1" stopColor="#7C5101" />
|
|
|
- </linearGradient>
|
|
|
- <linearGradient id="paint1_linear_2124_5656" x1="23.9121" y1="47.8244" x2="-0.000147684" y2="47.8244" gradientUnits="userSpaceOnUse">
|
|
|
- <stop stopColor={themeColor} />
|
|
|
- <stop offset="1" stopColor="#7C5101" />
|
|
|
- </linearGradient>
|
|
|
- </defs>
|
|
|
- </svg>
|
|
|
- </div>
|
|
|
- <div data-svg-wrapper data-layer="三角形" className="left-[16.70px] top-[16.70px] absolute">
|
|
|
- <svg width="24" height="48" viewBox="0 0 24 48" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
- <path d="M1.10742 1.91602L3.9375 12.4355C5.95979 19.9527 5.95979 27.8715 3.9375 35.3887L1.10742 45.9092L23.1035 23.9121L1.10742 1.91602Z" fill={themeColor} stroke="url(#paint0_linear_2124_5657)" strokeWidth="1.14286" />
|
|
|
- <defs>
|
|
|
- <linearGradient id="paint0_linear_2124_5657" x1="23.9121" y1="47.8244" x2="-0.000145777" y2="47.8244" gradientUnits="userSpaceOnUse">
|
|
|
- <stop stopColor={themeColor} />
|
|
|
- <stop offset="1" stopColor="#7C5101" />
|
|
|
- </linearGradient>
|
|
|
- </defs>
|
|
|
- </svg>
|
|
|
- </div>
|
|
|
- </button>
|
|
|
+ />
|
|
|
</div>
|
|
|
|
|
|
{/* 图片指示器 */}
|