Skip to content

Commit

Permalink
Merge pull request #65 from LikeLionHGU/yeji-style/#60
Browse files Browse the repository at this point in the history
Yeji style/#60
  • Loading branch information
skwldwld authored Feb 20, 2024
2 parents 6f1125c + 7d22990 commit eaf03e7
Show file tree
Hide file tree
Showing 16 changed files with 136 additions and 21 deletions.
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"react-router-dom": "^6.22.0",
"react-scripts": "5.0.1",
"recoil": "^0.7.7",
"swiper": "^11.0.6",
"resolve-url-loader": "^5.0.0",
"web-vitals": "^2.1.4"
},
Expand Down
12 changes: 12 additions & 0 deletions public/test.html
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>
10 changes: 10 additions & 0 deletions src/Main.css
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;
}
1 change: 1 addition & 0 deletions src/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import Banner from "./banner/Banner";
import Grid from "./grid/Grid";
import Header from "./header/Header";
import "./Main.css";

export default function Main() {
return (
Expand Down
5 changes: 3 additions & 2 deletions src/account/LogIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { Link, useNavigate } from "react-router-dom";
import axios from "axios";
import { useState } from "react";
import Header from "../header/Header";
// import Header from "../header/Header";
import LoginInnerRect from "./img/logininnerrect.png";


Expand All @@ -12,7 +12,8 @@ import emailicon from "./img/emailicon.png";
import pwicon from "./img/pwicon.png";
import kakaologo from "./img/kakaologo.png";

import styles from "./Login.module.css";
import styles from "./LogIn.module.css";


// import login from "./img/login.png";

Expand Down
14 changes: 8 additions & 6 deletions src/account/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const SignUp = () => {
console.log(response);
alert("회원가입성공");
if ((response.status = 200)) {
return navigate("/mylogin");
return navigate("/complete");
}
})
.catch((err) => {
Expand Down Expand Up @@ -129,8 +129,9 @@ const SignUp = () => {
: "err_gender"
}
value="female"
id="female"
/>
<label for="gender">여성</label>
<label for="female">여성</label>
<input
type="radio"
name="gender"
Expand All @@ -140,8 +141,9 @@ const SignUp = () => {
}}
className={!message ? "inputLogin" : "err_gender"}
value="male"
id="male"
/>
<label for="gender">남성</label>
<label for="male">남성</label>
</div>
</div>
</div>
Expand All @@ -160,9 +162,9 @@ const SignUp = () => {
</div>

<div className={styles.btn}>
<Link to="/complete">
<button onClick={registeraxios}>회원정보 등록</button>
</Link>
{/* <Link to="/complete"> */}
<button onClick={registeraxios}>회원정보 등록</button>
{/* </Link> */}
</div>
</div>
</div>
Expand Down
16 changes: 8 additions & 8 deletions src/account/SignUp.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,29 @@
}

.gender {
padding: 15px 10px;
padding-top: 6px;
}
.gender input[type="radio"] {
display: none;
}
.gender input[type="radio"] + label {
width: 240px;
height: 40px;
height: 30px;
border-radius: 10px;
display: inline-block;
cursor: pointer;
/* line-height: 24px; */
text-align: center;
color: #898989;
padding-top: 10px;
}

.gender input[type="radio"]:checked + label {
background-color: #ff8bc5;
color: #fff;
color: white;
}

/* .radio input {
width: 20px;
} */
.gender label {
}

.btn button {
width: 326px;
Expand All @@ -91,7 +91,7 @@ label {
color: #898989;
}

p {
.signup_input p {
margin-top: 0;
margin-bottom: 0;
}
7 changes: 4 additions & 3 deletions src/banner/Banner.jsx
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>
);
}
60 changes: 60 additions & 0 deletions src/banner/Slider.jsx
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>
);
}
5 changes: 5 additions & 0 deletions src/banner/Slider.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.underbar {
width: 100%;
height: 37px;
background-color: black;
}
Binary file added src/banner/img/banner1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/banner/img/banner2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/banner/img/banner3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/header/Header.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.header {
padding-top: 29px;
padding-left: 16.3%;
padding-right: 24.7vh;
padding-bottom: 95px;
width: 100%;
display: flex;
margin: auto;
Expand All @@ -8,8 +11,8 @@
}

.header .logo img {
width: 127px;
height: 42px;
width: 157px;
height: 36px;
margin-right: 50px;
}

Expand Down
Binary file modified src/header/image/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eaf03e7

Please sign in to comment.