Skip to content

Commit

Permalink
build: 프로젝트 초기 설정
Browse files Browse the repository at this point in the history
- bcsdlab utils 추가
- 기본 레이아웃 추가
- 인증 레이아웃 추가
- 관련 훅, 컴포넌트, 타입 추가
  • Loading branch information
junghaesung79 committed Jun 9, 2024
1 parent cbc5c84 commit d3b8a4e
Show file tree
Hide file tree
Showing 119 changed files with 7,052 additions and 10 deletions.
41 changes: 41 additions & 0 deletions .pnp.cjs

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

1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<link rel="icon" type="image/png" sizes="16x16" href="https://static.koreatech.in/assets/favicons/favicon-16x16.png">
<link rel="apple-touch-icon" href="https://static.koreatech.in/assets/favicons/favicon-32x32.png" />
<link rel="shortcut icon" href="https://static.koreatech.in/assets/favicons/favicon-32x32.png">
<link rel="manifest" href="/public/manifest.json" />
<title>코인 - 생협</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"dependencies": {
"@bcsdlab/koin": "^0.0.15",
"@bcsdlab/utils": "^0.0.15",
"@hookform/resolvers": "^3.1.0",
"@tanstack/react-query": "^5.40.0",
"@testing-library/jest-dom": "^6.4.5",
Expand Down
Binary file added public/favicon.ico
Binary file not shown.
Binary file added public/logo32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "코인 생협",
"name": "코인 생협 기능 관리 어플리케이션",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo32.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo32.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

30 changes: 25 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
import ErrorIcon from 'assets/svg/error/error.svg?react';
import { Suspense } from 'react';

import AuthLayout from 'layout/AuthLayout';
import DefaultLayout from 'layout/DefaultLayout';
import CompleteChangePassword from 'page/Auth/FindPassword/CompleteChangePassword';
import NewPassword from 'page/Auth/FindPassword/NewPassword';
import FindPassword from 'page/Auth/FindPassword/SendAuthNumber';
import Login from 'page/Auth/Login';
import Signup from 'page/Auth/Signup';
import Coop from 'page/Coop';

import { Route } from 'react-router-dom';

export default function App() {
return (
<>
<h1>App</h1>
<ErrorIcon />
</>
<Suspense fallback={<div />}>
<Route path="/coop" element={<DefaultLayout />}>
<Route path="/coop" element={<Coop />} />
</Route>

<Route element={<AuthLayout />}>
<Route path="/login" element={<Login />} />
<Route path="/signup" element={<Signup />} />
<Route path="/find-password" element={<FindPassword />} />
<Route path="/new-password" element={<NewPassword />} />
<Route path="/complete-change-password" element={<CompleteChangePassword />} />
</Route>
</Suspense>
);
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions src/component/Copyright/Copyright.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@use "src/utils/styles/mediaQuery" as media;

.copyright {
font-size: 12px;
text-align: center;
margin-bottom: 6vh;
font-weight: 400;
color: #252525;
position: absolute;
bottom: 0;
left: 0;
width: 100%;

@include media.media-breakpoint-down(mobile) {
margin-bottom: 3vh;
}
}
16 changes: 16 additions & 0 deletions src/component/Copyright/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import useMediaQuery from 'hooks/useMediaQuery';

import styles from './Copyright.module.scss';

export default function Copyright() {
const { isMobile } = useMediaQuery();
const year = new Date().getFullYear();

return (
<div className={styles.copyright}>
{isMobile
? 'Copyright @ BCSD Lab All rights reserved.'
: `COPYRIGHT © ${year} BCSD LAB ALL RIGHTS RESERVED.`}
</div>
);
}
80 changes: 80 additions & 0 deletions src/component/Header/Header.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/* stylelint-disable no-descending-specificity */
/* stylelint-disable declaration-colon-newline-after */
@use "src/utils/styles/mediaQuery" as media;

.header {
height: 80px;
font-size: 12px;
font-weight: 700;
background: #175c8e;
color: #fff;
display: block;

@include media.media-breakpoint-down(mobile) {
height: 77px;
border-radius: 0 0 20px 20px;
box-shadow: 0 2px 4px 0 rgb(0 0 0 / 34%);
position: sticky;
top: 0;
left: 0;
z-index: 20;
border-bottom: none;
}

&__content {
width: 1132px;
height: 100%;
margin: 0 auto;
display: flex;
align-items: center;

@include media.media-breakpoint-down(mobile) {
width: auto;
}
}
}

.add-menu-header {
position: relative;
background-color: #175c8e;
width: 100%;
height: 52px;
display: flex;
align-items: center;
justify-content: center;

&__prev-button {
position: absolute;
left: 16px;
width: 24px;
height: 25.944px;
flex-shrink: 0;
background: none;
border: none;
cursor: pointer;
padding: 0;

svg path {
fill: white;
}
}

&__caption {
color: #fff;
text-align: center;
font-size: 20px;
font-weight: 500;
}
}

@keyframes slide-left-enter {
0% {
opacity: 0;
transform: translateX(-100%);
}

100% {
opacity: 1;
transform: translateX(0);
}
}
Loading

0 comments on commit d3b8a4e

Please sign in to comment.