| 246 | } |
| 247 | |
| 248 | const QuickGuideContent = ({ |
| 249 | changeGuideShow, |
| 250 | guideSections |
| 251 | }: { |
| 252 | changeGuideShow: Dispatch<SetStateAction<boolean>> |
| 253 | guideSections: { |
| 254 | title: string |
| 255 | items: { |
| 256 | title: string |
| 257 | description: string |
| 258 | link: string |
| 259 | }[] |
| 260 | }[] |
| 261 | }) => { |
| 262 | return ( |
| 263 | <> |
| 264 | <div className=""> |
| 265 | {guideSections.map((section, index) => ( |
| 266 | <div key={index}> |
| 267 | <p className="flex gap-[8px] items-center text-[14px] font-bold"> |
| 268 | <Icon icon="ic:baseline-info" width="18" height="18" className="text-theme" /> |
| 269 | {section.title} |
| 270 | </p> |
| 271 | <div className="ml-[9px] border-[0px] border-l-[1px] my-[10px] border-dashed border-BORDER"> |
| 272 | <div |
| 273 | className="grid gap-[20px] px-[20px] py-[10px] justify-start content-start" |
| 274 | style={{ |
| 275 | gridTemplateColumns: 'repeat(auto-fill, minmax(300px, 0fr))', |
| 276 | gridAutoRows: '1fr' |
| 277 | }} |
| 278 | > |
| 279 | {section.items.map((item, itemIndex) => ( |
| 280 | <Card |
| 281 | key={itemIndex} |
| 282 | title={item.title} |
| 283 | className="shadow-[0_5px_10px_0_rgba(0,0,0,0.05)] rounded-[10px] overflow-visible cursor-pointer w-[300px] transition duration-500 hover:shadow-[0_5px_20px_0_rgba(0,0,0,0.15)] hover:scale-[1.05]" |
| 284 | classNames={{ |
| 285 | header: 'border-b-[0px] p-[20px] pb-[10px] text-[14px] font-normal', |
| 286 | body: 'p-[20px] pt-0 text-[12px] text-[#666]' |
| 287 | }} |
| 288 | onClick={() => { |
| 289 | window.open(item.link, '_blank') |
| 290 | }} |
| 291 | > |
| 292 | <span>{item.description}</span> |
| 293 | </Card> |
| 294 | ))} |
| 295 | </div> |
| 296 | </div> |
| 297 | </div> |
| 298 | ))} |
| 299 | <div className="flex gap-[8px] items-center"> |
| 300 | <Icon icon="ic:baseline-info" width="18" height="18" className="text-theme" /> |
| 301 | <div className="flex items-center w-full gap-4"> |
| 302 | <Button |
| 303 | type="link" |
| 304 | icon={<Icon icon="ic:baseline-open-in-new" width="18" height="18" />} |
| 305 | iconPosition="end" |