Skip to content

Commit

Permalink
Merge branch 'dev' into feature/#4
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyeonjinn committed Sep 23, 2024
2 parents 3c37e12 + b5ba485 commit b7799be
Show file tree
Hide file tree
Showing 23 changed files with 585 additions and 66 deletions.
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VITE_BASE_URL=https://api.choco-express.site
VITE_BASE_URL=https://api.choco-express.site
VITE_KAKAO_KEY=b76dd44adf31465496f17842634d7c6b
VITE_KAKAO_ID=112476
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
uses: actions/checkout@v3
- name: Create .env file
run: |
echo "VITE_BASE_URL=${{ secrets.VITE_BASE_URL }}" > .env
echo "VITE_BASE_URL=${{ secrets.VITE_BASE_URL }}" >> .env
echo "VITE_KAKAO_KEY=${{ secrets.VITE_KAKAO_KEY }}" >> .env
echo "VITE_KAKAO_ID=${{ secrets.VITE_KAKAO_ID }}" >> .env
- name: Node.js
uses: actions/setup-node@v3
with:
Expand Down
11 changes: 8 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<!doctype html>
<html lang="en">
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<title>Choco Express</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script
src="https://t1.kakaocdn.net/kakao_js_sdk/2.7.2/kakao.min.js"
integrity="sha384-TiCUE00h649CAMonG018J2ujOgDKW/kVWlChEuu4jK2vxfAAD0eZxzCKakxg55G4"
crossorigin="anonymous"
></script>
</body>
</html>
8 changes: 8 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}
90 changes: 90 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
},
"dependencies": {
"axios": "^1.7.7",
"html2canvas": "^1.4.1",
"js-cookie": "^3.0.5",
"react": "^18.3.1",
"react-device-detect": "^2.2.3",
"react-dom": "^18.3.1",
"react-frame-component": "^5.2.7",
"react-router-dom": "^6.26.1",
Expand Down
52 changes: 8 additions & 44 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,58 +1,22 @@
import React from "react";
import { styled } from "styled-components";
import { GlobalStyle } from "./style/globalStyle";
import { Outlet } from "react-router-dom";
import { NameSetting } from "./components/NameSetting/NameSetting";
import styled from "styled-components";
import { GlobalStyle } from "./style/globalStyle";

const Frame = styled.div`
width: 100vw;
const Wrapper = styled.section`
flex-grow: 1;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
`;
/* width: 100%; */
const Wrapper = styled.div`
margin: 0 auto;
min-height: 100vh;
flex-grow: 1;
display: flex;
flex-direction: column;
align-items: center;
max-width: 420px;
position: absolute;
z-index: 0;
background-color: #fef7e2;
`;

const Content = styled.div`
flex-grow: 1;
min-height: 100%;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
`;

const Layout = () => {
return (
<Frame>
<Wrapper>
<Content>
<Outlet />
</Content>
</Wrapper>
</Frame>
);
};

function App() {
return (
<>
<GlobalStyle />
<Layout />
<Wrapper>
<Outlet />
</Wrapper>
</>
);
}
Expand Down
Binary file added src/assets/images/Layout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/images/bird.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b7799be

Please sign in to comment.