-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Yeji style/#60
- Loading branch information
Showing
16 changed files
with
136 additions
and
21 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<input type="radio" name="testy" value="aaa" id="aaa" /> | ||
<label for="aaa">AAA</label> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.swiper-pagination-bullet { | ||
background: transparent !important; | ||
border: 2px solid white !important; | ||
margin-right: 15px; | ||
} | ||
|
||
.swiper-pagination-bullet-active { | ||
background: white !important; | ||
border: 2px solid white !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import styles from "./Banner.module.css"; | ||
import Slider from "./Slider"; | ||
|
||
export default function Banner() { | ||
return ( | ||
<div className={styles.banner}> | ||
<div className={styles.rect}> | ||
<h1>슬라이드 1</h1> | ||
</div> | ||
{/* <div className={styles.rect}> */} | ||
<Slider></Slider> | ||
{/* </div> */} | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { Swiper, SwiperSlide } from "swiper/react"; | ||
import SwiperCore from "swiper"; | ||
import { Navigation, Pagination, Autoplay } from "swiper/modules"; | ||
|
||
import "swiper/css"; | ||
import "swiper/scss"; | ||
import "swiper/scss/navigation"; | ||
import "swiper/scss/pagination"; | ||
|
||
import banner1 from "./img/banner1.png"; | ||
import banner2 from "./img/banner2.png"; | ||
import banner3 from "./img/banner3.png"; | ||
|
||
import "./Slider.module.css"; | ||
|
||
SwiperCore.use([Navigation, Pagination, Autoplay]); | ||
|
||
export default function Slider() { | ||
const swiperStyle = { | ||
// position: "relative", | ||
width: "100%", | ||
height: "550px", | ||
}; | ||
|
||
return ( | ||
<Swiper | ||
style={{ margin: "auto", whiteSpace: "pre-wrap" }} | ||
breakpoints={{ | ||
0: { | ||
slidesPerView: 1, | ||
}, | ||
900: { | ||
slidesPerView: 1, | ||
}, | ||
}} | ||
// freeMode={true} // 자유로운가 | ||
loop={true} // 무한 루프 | ||
speed={1000} // 슬라이드 이동 속도 | ||
// loopedSlides={1} | ||
lazyLoading={true} | ||
loopAdditionalSlides={true} | ||
autoplay={{ delay: 1000, disableOnInteraction: false }} // 자동 이동 | ||
slideToClickedSlide={true} // 슬라이드 클릭 시 이동 | ||
className="swiper" | ||
pagination={{ clickable: true }} | ||
> | ||
<SwiperSlide> | ||
<div className="underbar"> | ||
<img src={banner1} /> | ||
</div> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<img src={banner2} /> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<img src={banner3} /> | ||
</SwiperSlide> | ||
</Swiper> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.underbar { | ||
width: 100%; | ||
height: 37px; | ||
background-color: black; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.