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

fix : 모든 파일의 구조, 폴더명 코드 수정 #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 3 additions & 4 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import Routers from './Component/router';
import './App.css';
import React from "react";
import { BrowserRouter } from "react-router-dom";
import Routers from "./components/router";

function App() {
return (
Expand Down
12 changes: 0 additions & 12 deletions src/Component/Announcement/an.jsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/Component/Project/pj.jsx

This file was deleted.

51 changes: 0 additions & 51 deletions src/Component/Project/style.js

This file was deleted.

36 changes: 0 additions & 36 deletions src/Component/Sign/Signpage.jsx

This file was deleted.

34 changes: 0 additions & 34 deletions src/Component/router/index.jsx

This file was deleted.

64 changes: 0 additions & 64 deletions src/Project/Project.jsx

This file was deleted.

32 changes: 32 additions & 0 deletions src/api/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import axios from "axios";

export const axiosInstance = axios.create({
baseURL: `http://localhost:5000/api`,
headers: {
"Content-Type": "application/json",
},
withCredentials: true, // 이렇게 설정하면 요청시에 자동으로 쿠키가 포함됩니다.
});

// Response interceptor: Handle token renewals.
axiosInstance.interceptors.response.use(
function (response) {
return response;
},
async function (error) {
if (error.response && error.response.status === 403) {
const { access, refresh } = error.response.data;

// If a new access or refresh token is provided, just retry the request.
if (access || refresh) {
return axiosInstance.request(error.config);
}

// If no tokens are provided, it's likely an authentication error.
}

return Promise.reject(error);
}
);

export default axiosInstance;
File renamed without changes.
33 changes: 0 additions & 33 deletions src/axios/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/common/GlobalStyle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createGlobalStyle } from "styled-components";

export const GlobalStyle = createGlobalStyle`
body {
backgroundcolor: #000
background-color: #000
}

li,ol {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions src/components/Notice/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import * as S from "./style";

const Notice = () => {
return (
<S.ProjectContainer id="공지사항">
<S.Projects>DevCoop 공지사항</S.Projects>
</S.ProjectContainer>
);
};

export default Notice;
File renamed without changes.
71 changes: 71 additions & 0 deletions src/components/Project/Project.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// import "../App.css";
// import project1 from "../P1.png";
// import project2 from "../P2.png";
// import project3 from "../P3.png";
// import ari from "../AriPayL_ver2.svg";
import React from "react";
import NavBar from "../navbar";
// import ari2 from "../image/AriPay2.svg";
import * as S from "./style";

function Project() {
return (
<>
<NavBar />
<div class="pro1-wrap">
<div class="ar2">
{/* <img id="ariii" src={ari} alt="ari image"></img> */}
</div>
<div class="headline-text">
<p>
<p class="head">실물상품권을 학생증으로</p>
<p id="head1">아리페이</p>
</p>
</div>
<div class="pro1-text">
<p>
<p class="text1">편리한 잔액 조회</p>
알이와 편하게 잔액을 조회해 보세요.<br></br>
남은 돈은 알이가 보관해 두니<br></br>
5000원의 강박을 지킬 필요 없어요.
</p>
</div>
<div class="pro1-image">
{/* <img id="pro1" src={project1} alt="project1 image"></img> */}
</div>

<div class="pro2-text">
<p>
<p class="text2">어디에서든 가능한 로그 조회</p>
언제, 어디서든 아리페이에 들어와<br></br>
빠른 사용 내역을 확인 해보세요.<br></br>
내가 언제, 얼마나 사용했는 지 알 수 있어요.
</p>
</div>
<div class="pro2-image">
{/* <img id="pro2" src={project2} alt="project2 image"></img> */}
</div>
<div class="pro3-text">
<p>
<p class="text3">쉽고 빠른 결제</p>
학생증 하나만 제시해 주세요.<br></br>
카드나 현급을 꺼낼 필요도, 상품권을 낼 필요도 없어요.<br></br>
더욱이, 학번 이름을 부를 필요도요!
</p>
</div>
<div class="pro3-image">
{/* <img id="pro3" src={project3} alt="project3 image"></img> */}
</div>

<S.AripaySVG>
<a href="http://pay.bsm-aripay.kr/" target="_blank">
{/* <img src={ari2} alt="AriPay 이미지" /> */}
<div className="overlay-button"></div>
</a>
</S.AripaySVG>
</div>
</>
);
}

export default Project;
File renamed without changes.
Loading