ggosunnae / ggosunnae_front

๊ผฌ์ˆœ๋‚ด ํ”„๋ก ํŠธ
0 stars 0 forks source link

๐Ÿ’„ ๋ฆฌ์ŠคํŠธ ํŽ˜์ด์ง€ UI #5

Open radiant0922 opened 2 months ago

radiant0922 commented 2 months ago

์–ด๋–ค๊ฒƒ์„ ์ž‘์—…ํ•˜์‹œ๋‚˜์š”?

๋ฉ”์ธ ๋ฆฌ์ŠคํŠธ ํŽ˜์ด์ง€ UI์„ ์ž‘์—…ํ•ฉ๋‹ˆ๋‹ค.

์ž‘์—… ์ƒ์„ธ ๋‚ด์šฉ

radiant0922 commented 2 months ago

https://naver.github.io/egjs-infinitegrid/ko/Guides

https://kimyk60.tistory.com/m/36

https://github.com/akiran/react-slick/issues/2290

https://github.com/naver/egjs-infinitegrid

Banal972 commented 2 months ago

ํ•˜๋‚˜๋‹˜ react-slick dot ๊ฐ™์€ ๊ฒฝ์šฐ ๋”ฐ๋กœ ์ง€์ •ํ•˜๋Š”๋ฒ•์ด ์—†์–ด์„œ gobla.css๋กœ ์ž‘์—…์„ ํ•˜์…จ๋‹ค๊ณ  ํ•˜์…”์„œ react-slick docs API์— ๋‚˜์™€์žˆ๋Š”๋ฐ๋กœ ์ œ๊ฐ€ ์งœ๋ดค๋Š”๋ฐ ์ฐธ๊ณ ํ•ด์„œ ์‚ฌ์šฉํ•˜์‹œ๋ฉด ๋ ๊ฒƒ ๊ฐ™์•„์š”


<Slider
  ref={(slider) => {
    sliderRef.current = slider;
  }}
  {...setting}
  dots={true}
  arrows={false}
  appendDots={(dots: any[]) => {
    console.log(dots);
    return (
      <>
        <ul className="flex items-center justify-center gap-2">
          {dots.map((item, index) => {
            return (
              <li key={index} className={`group ${item.props.className}`}>
                {item.props.children}
              </li>
            );
          })}
        </ul>
      </>
    );
  }}
  dotsClass=""
  customPaging={() => (
    <button className="size-3 rounded-full bg-slate-500 group-[.slick-active]:bg-black"></button>
  )}
>

image

๋ณด์‹œ๊ณ  ์ดํ•ด ์•ˆ๋˜๋Š”๊ฒŒ ์žˆ์œผ์‹œ๋ฉด ๋””์Šค์ฝ”๋“œ๋‚˜ ๊ตฌ๊ธ€ ๋ฏธํŠธ ์ฃผ์„ธ์šฉ