Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2/27 배포 #283

Merged
merged 44 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
2b3e74e
Feat: GA 추가
hhbb0081 Mar 25, 2024
da59a23
Feat: GA 추가
hhbb0081 Mar 25, 2024
06f4dfe
Fix/번호인증에서 뒤로가기하면 홈화면
choiyoubin Mar 25, 2024
93ec239
Merge branch 'test' of https://github.com/hhbb0081/readyFront into test
hhbb0081 Mar 25, 2024
75fc92a
Merge pull request #269 from choiyoubin/test
choiyoubin Mar 25, 2024
76f54f6
Merge pull request #270 from hhbb0081/test
hhbb0081 Mar 25, 2024
bdeec23
Feat: GA 2차 추가
hhbb0081 Mar 25, 2024
7be6fe8
Merge pull request #271 from hhbb0081/test
hhbb0081 Mar 25, 2024
9b0d7c6
Fix: GA 삭제
hhbb0081 Mar 25, 2024
e49c02b
Merge pull request #272 from hhbb0081/test
hhbb0081 Mar 25, 2024
1b33638
Feat: 가게 페이지 배너 이미지 크기 조정
imi21123 Mar 25, 2024
b871b35
Merge branch 'test' of https://github.com/imi21123/readyFront into test
imi21123 Mar 25, 2024
6dc490b
Merge pull request #273 from imi21123/test
imi21123 Mar 25, 2024
b33f352
Feat: 포인트 0원일 때 안 보이게
hhbb0081 Mar 25, 2024
d72a7fa
Design: 스크롤 삭제
hhbb0081 Mar 25, 2024
baf45f0
Merge branch 'test' of https://github.com/hhbb0081/readyFront into test
hhbb0081 Mar 25, 2024
008f581
Merge pull request #274 from hhbb0081/test
hhbb0081 Mar 25, 2024
afdc65c
Feat: 애플로그인 시 마이페이지 이름 자르기
imi21123 Mar 26, 2024
3eab799
Merge pull request #275 from imi21123/test
imi21123 Mar 26, 2024
228defe
Docs: 로딩중 분리
KKangHHee Mar 26, 2024
02bed76
Feat: 로딩중 컴포넌트
KKangHHee Mar 26, 2024
4a0b3f6
Feat: 로딩중 적용
KKangHHee Mar 26, 2024
c074872
Merge pull request #276 from KKangHHee/test
imi21123 Mar 26, 2024
9fa2a0b
Fix: 인증버튼 크기 수정 및 폰트 색상 추가
KKangHHee Mar 26, 2024
835cc48
Docs: 인증시간 3분으로 변경
KKangHHee Mar 26, 2024
3ba47be
Docs: 헤더, 네비바 반응형 수정
KKangHHee Mar 26, 2024
0c26f17
Merge branch 'readyvery:test' into test
KKangHHee Mar 26, 2024
d4d3889
Fix/Timer 시간 수정
choiyoubin Mar 26, 2024
1466829
Docs: 반응형 수정 누락 추가
KKangHHee Mar 26, 2024
7d5226e
Merge pull request #277 from choiyoubin/test
choiyoubin Mar 26, 2024
0ca7fa8
Merge branch 'test' into test
KKangHHee Mar 26, 2024
bb358ee
Merge pull request #278 from KKangHHee/test
choiyoubin Mar 26, 2024
9d527c2
Docs: 첫주문 및 바로 주문 padding값 설정 및 가로 스크롤 추가
KKangHHee Mar 26, 2024
b3ca03c
Docs: 마이페이지 구분선 수정
KKangHHee Mar 26, 2024
01f4aa0
Docs: 연동된 소셜 계정 삭제
hhbb0081 Mar 26, 2024
f24a111
Merge pull request #279 from KKangHHee/test
hhbb0081 Mar 26, 2024
62c1a5a
Merge branches 'test' and 'test' of https://github.com/hhbb0081/ready…
hhbb0081 Mar 26, 2024
61d2e1a
Feat: PaymentPage try, catch 추가
hhbb0081 Mar 26, 2024
7cbda14
Merge pull request #280 from hhbb0081/test
hhbb0081 Mar 26, 2024
2d4c11a
Merge branch 'readyvery:test' into test
hhbb0081 Mar 26, 2024
b2c2d8c
Merge pull request #281 from hhbb0081/test
marinesnow34 Mar 26, 2024
9b96d02
Feat: 토큰 만료 시 로그인 페이지로 이동
hhbb0081 Mar 26, 2024
1bbb36e
Merge branch 'test' of https://github.com/hhbb0081/readyFront into test
hhbb0081 Mar 26, 2024
1497431
Merge pull request #282 from hhbb0081/test
hhbb0081 Mar 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
crossorigin="anonymous"
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/variable/pretendardvariable-dynamic-subset.min.css"
/> -->
<!-- Google tag (gtag.js) -->
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta
name="viewport"
Expand All @@ -67,6 +68,7 @@
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />

<title>ReadyVery</title>

</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
140 changes: 7 additions & 133 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,107 +8,25 @@
flex-direction: column;
position: relative;
}
@media only screen and (max-width: 375px) {
.App {
max-width: 360px;
}

.navbar,
.top_header,
.top_header_page {
left: calc(50% - 180px); /* Center the navbar */
right: calc(50% - 180px); /* Center the navbar */
}
.navbar,
.top_header {
width: 100%;
margin: 0 auto;
}
}
@media only screen and (min-width: 375px) and (max-width: 380px) {
@media only screen and (max-width: 430px) {
.App {
max-width: 375px;
min-width: 320px;
background-color: white;
}

.navbar,
.top_header,
.top_header_page {
left: calc(50% - 187.5px); /* Center the navbar */
right: calc(50% - 187.5px); /* Center the navbar */
}
}
@media only screen and (min-width: 380px) and (max-width: 400px) {
.App {
max-width: 380px;
}

.navbar,
.top_header,
.top_header_page {
left: calc(50% - 190px); /* Center the navbar */
right: calc(50% - 190px); /* Center the navbar */
}
.navbar,
.top_header {
.top_header{
width: 100%;
margin: 0 auto;
}
}
@media only screen and (min-width: 400px) and (max-width: 410px) {
.App {
max-width: 400px;
}

.navbar,
.top_header,
.top_header_page {
left: calc(50% - 200px); /* Center the navbar */
right: calc(50% - 200px); /* Center the navbar */
}
.navbar,
.top_header {
.top_header_page{
width: 100%;
margin: 0 auto;
left: 0;
right: 0;
top: 0.94rem;
}
}
@media only screen and (min-width: 410px) and (max-width: 420px) {
.App {
max-width: 410px;
}

.navbar,
.top_header,
.top_header_page {
left: calc(50% - 205px); /* Center the navbar */
right: calc(50% - 205px); /* Center the navbar */
}
.navbar,
.top_header {
width: 100%;
margin: 0 auto;
}
}

/* iphone 14 Pro */
@media only screen and (min-width: 420px) and (max-width: 430px) {
.App {
max-width: 420px;
}

.navbar,
.top_header,
.top_header_page {
left: calc(50% - 210px); /* Center the navbar */
right: calc(50% - 210px); /* Center the navbar */
}
.navbar,
.top_header {
width: 100%;
margin: 0 auto;
}
}

@media only screen and (min-width: 430px) and (max-width: 800px) {
.App {
max-width: 430px;
Expand Down Expand Up @@ -191,47 +109,3 @@
font-family: "KBold";
src: url("./assets/font/Kotrahope-Bold.otf");
}

/* app에 로딩화면 css추가 */
.loading-div {
/* width: 100%;
height: 100vh; */
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
/* 위에 주석 아니면 이거 쓰기 */
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
}

.loading-loader {
position: relative;
border: none;
background-image: url("./assets/images/ic_loading.png");
width: 6.25rem;
height: 6.25rem;
animation: spin 1.35s linear infinite; /* 회전하는 애니메이션을 적용합니다. */
}

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

.loading-berry {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.loading-berry img {
width: 2.08431rem;
height: 2.08431rem;
}
19 changes: 4 additions & 15 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import StoreDetailPage from "../src/pages/StoreDetailPage/StoreDetailPage";
import "./App.css";
// import loading from "./assets/animation/loading.json";
import MembershipPage from "../src/pages/MembershipPage/MembershipPage";
import ic_berry from "./assets/images/ic_berry.png";
import Loading from "./components/views/PageComponent/Loading";
import Auth from "./hoc/auth";
import AuthenticationPage from "./pages/Authentication/AuthenticationPage";
import CartPage from "./pages/CartPage/CartPage";
Expand All @@ -31,7 +31,6 @@ import PaymentFailPage from "./pages/PaymentPage/Redirect/PaymentFailPage";
import PaymentLoadingPage from "./pages/PaymentPage/Redirect/PaymentLoadingPage";
import Splash from "./pages/Splash/Splash";
import StoreSearchPage from "./pages/StoreSearch/StoreSearch";

function App() {
// const [cookies, , removeCookies] = useCookies();
// const [isAuth, setIsAuth] = useRecoilState(isAuthenticatedState);
Expand All @@ -40,10 +39,9 @@ function App() {
// const apiVer = "api/v1";
// const apiUrl = `${apiRoot}/${apiVer}/refresh/token`;


//false : 로그인 한 유저 못들어감
const NewLoginPage = Auth(LoginPage, false); // 로그인 페이지

//true : 로그인 한 유저 들어감
const NewHomePage = Auth(HomePage, true); // 홈페이지
const NewAuthentication = Auth(AuthenticationPage, true, 1);
Expand Down Expand Up @@ -108,16 +106,7 @@ function App() {
return (
<div className="App">
<RecoilRoot>
<Suspense
fallback={
<div className="loading-div">
<div className="loading-loader" />
<div className="loading-berry">
<img src={ic_berry} alt="berry" />
</div>
</div>
}
>
<Suspense fallback={<Loading />}>
<Routes>
{/* 로그인 하지 않아도 볼 수 있는 페이지 */}
<Route path="/splash" element={<Splash />} />
Expand All @@ -130,7 +119,7 @@ function App() {
{/* 로그인*/}
<Route path="/login" element={<NewLoginPage />} />
{/* 번호인증 페이지 */}
<Route path="/authentication" element={<NewAuthentication/>} />
<Route path="/authentication" element={<NewAuthentication />} />
{/* 쿠폰 및 포인트 faq페이지*/}
<Route path="/faq" element={<FrequentlyAskedQuestionPage />} />
{/* 마이페이지-약관정책 페이지 */}
Expand Down
6 changes: 4 additions & 2 deletions src/components/Authentication/UserInputNumber.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
.user-input-phone-number-input {
border-radius: 0.24788rem;
border: 1px solid rgba(131, 131, 131, 1);
padding-left: 0.94rem;
padding: 0 0.94rem;
margin-right: 0.25rem;
font-size: 0.75rem;
font-weight: 500;
Expand All @@ -30,7 +30,9 @@
font-weight: 500;
font-size: 0.75rem;
width: 3.46981rem;
height: 2.48rem;
height: 2.47844rem;
color: var(--frame-text, #838383);
cursor: pointer;
}

.user-input-phone-number-button-clicked {
Expand Down
3 changes: 2 additions & 1 deletion src/components/Authentication/UserInputNumber.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import RedButton from "./RedButton";
import "./UserInputNumber.css";
import UserInputNumberMessage from "./UserInputNumberMessage";

const TIMER_DURATION = 600; //타이머 시간 설정(600초)
const TIMER_DURATION = 180; //타이머 시간 설정(3분)


const UserInputNumber = () => {
const [chkButton, setChkButton] = useState(false); // 인증버튼 클릭 여부
Expand Down
12 changes: 2 additions & 10 deletions src/components/views/Header/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
flex-direction: row;
justify-content: space-between;
margin-top: 0.94rem;
padding-left: 1.56rem;
padding-right: 1.59rem;
/* padding-left: 1.56rem;
padding-right: 1.59rem; */
}

.top_header_page span {
Expand Down Expand Up @@ -107,11 +107,3 @@
width: 2rem;
height: 2rem;
}

/* 이거 왜 걸어놓으신건가요..?!
@media only screen and (min-width: 400px) and (max-width: 800px) {
.top_header {
left: calc(50% - 215px);
right: calc(50% - 215px);
}
} */
3 changes: 2 additions & 1 deletion src/components/views/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const Header = ({ headerProps }) => {
src={IMAGES.headerBack}
alt="back"
className="header_back"
style={{marginLeft:"1.56rem"}}
// onClick={() => handleGoBack()}
// onClick={() => navigate(headerProps.linkTo, { replace: true })}
onClick={() => {
Expand All @@ -58,7 +59,7 @@ const Header = ({ headerProps }) => {
}}
/>
<span>{headerProps.pageName}</span>
<div className="homeAndCart">
<div className="homeAndCart" style={{marginRight:"1.56rem"}}>
{/* 현재 페이지가 홈이 아니고 장바구니 페이지가 아닌 경우에만 장바구니 아이콘 표시 */}
{!isCartPage ? (
<div className="homeAndCart">
Expand Down
38 changes: 38 additions & 0 deletions src/components/views/PageComponent/Loading.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.loading-div {
width: 100%;
height: 100vh;
background-color: #ffffff;
display: flex;
align-items: center;
justify-content: center;
}
.spinLodingBar-container{
position: relative;
}
.loading-loader {
border: none;
background-image: url("../../../assets/images/ic_loading.png");
width: 6.25rem;
height: 6.25rem;
animation: spin 1.35s linear infinite; /* 회전하는 애니메이션을 적용합니다. */
}

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}

.loading-berry {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.loading-berry img {
width: 2.08431rem;
height: 2.08431rem;
}
25 changes: 25 additions & 0 deletions src/components/views/PageComponent/Loading.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from "react";
import { IMAGES } from "../../../constants/images";
import "./Loading.css";

const SpinLodingBar = () => {
return (
<div className="spinLodingBar-container">
<div className="loading-loader" />
<div className="loading-berry">
<img src={IMAGES.berry} alt="berry" />
</div>
</div>
);
};
// 로딩창
const Loading = ({ styleBackground }) => {
const Background = styleBackground || "none"; //기본값 흰색
return (
<div className="loading-div" style={{ background: Background }}>
<SpinLodingBar />
</div>
);
};

export default Loading;
Loading
Loading