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

Feat/#9 UI qa #14

Merged
merged 10 commits into from
Mar 16, 2024
Merged
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
14 changes: 14 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
arrowParens: "always", // always - (x) => x | avoid - x => x
bracketSpacing: true, // 객체 리터럴에서 괄호에 공백 삽입 여부
jsxBracketSameLine: false, // JSX의 마지막 `>`를 다음 줄로 내릴지 여부
endOfLine: "auto", // EoF 방식, OS별로 처리 방식이 다름
htmlWhitespaceSensitivity: "css", // HTML 공백 감도 설정
jsxSingleQuote: true, // JSX에 singe 따옴표 사용 여부
printWidth: 120, // 줄 바꿈 할 폭 길이
semi: true, // 세미콜론 사용 여부
singleQuote: true, // single 따옴표 사용 여부
tabWidth: 2, // 탭 너비
trailingComma: "all", // 여러 줄을 사용할 때, 후행 콤마 사용 방식
useTabs: false, // 탭 사용 여부
};
57 changes: 56 additions & 1 deletion package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
"next": "14.1.0",
"react": "^18",
"react-dom": "^18",
"react-responsive": "^9.0.2"
"react-responsive": "^9.0.2",
"recoil": "^0.7.7",
"recoil-persist": "^5.1.0",
"swr": "^2.2.5"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.6.10",
Expand Down
Binary file modified public/icons/loginImg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/app/(social)/detail/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import MainDetail from "@/components/templates/social/mainDetail/MainDetail";
import React from "react";

const page = () => {
return (
Expand Down
35 changes: 19 additions & 16 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Image from "next/image";
import logo from "../../public/icons/logo.png";
import "../styles/globals.css";
import Navigation from "@/components/organisms/navigation/navigation/Navigation";
import RecoilRootWrapper from "@/recoil/recoilRootWrapper";

export const metadata: Metadata = {
title: "Create Next App",
Expand All @@ -18,22 +19,24 @@ export default function RootLayout({
return (
<html lang="en" className=" bg-main-background">
<body className="flex justify-center">
<figure className="hidden tablet:flex tablet:h-screen tablet:items-center tablet:pr-[216px] transition-opacity duration-500 ease-in-out opacity-0 tablet:opacity-100">
<Image
className="w-419 h-198 object-contain "
src={logo}
alt="logo"
/>
</figure>
<main
id="modal"
className="flex flex-col items-center relative w-fit "
>
<header className="w-full mb-76">
<Navigation />
</header>
{children}
</main>
<RecoilRootWrapper>
<figure className="hidden tablet:flex tablet:h-screen tablet:items-center tablet:pr-[216px] transition-opacity duration-500 ease-in-out opacity-0 tablet:opacity-100">
<Image
className="w-419 h-198 object-contain "
src={logo}
alt="logo"
/>
</figure>
<main
id="modal"
className="flex flex-col items-center relative w-fit "
>
<header className="w-full mb-76">
<Navigation />
</header>
{children}
</main>
</RecoilRootWrapper>
</body>
</html>
);
Expand Down
31 changes: 24 additions & 7 deletions src/app/login/auth/page.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
"use client";
import Auth from "@/components/templates/login/auth/Auth";
import React from "react";
import Image from 'next/image';
import logo from '@public/icons/logo.png';
import AuthImgUpload from '@/components/organisms/login/AuthImgUpload';
import AuthModal from '@/components/organisms/modal/auth/AuthModal';

const page = () => {
const test = () => {
console.log("hi");
};
return (
<div>
<Auth isUploaded={true} handleUpload={test} />
<AuthModal />
{/* {authStatus && authStatus !== "successed" && (
<AuthModal authStatus={authStatus} studentInfo={studentInfo} />
)} */}
<div className='w-360 min-h-640 flex flex-col items-center justify-center text-center text-main-point'>
<Image className='w-204 h-96 object-contain mb-32' src={logo} alt='logoImg' />
<h1 className='large-bold mb-20'>
'명지편지'는 명지대학교 학생들을 위한 <br /> 롤링페이퍼 서비스예요.
</h1>
<h2 className='medium-regular pb-47 border-b-1 border-gray-dark-text-1 w-264 mb-47'>
서비스 이용을 위해서는 <br />
학생카드 인증이 필요해요.
</h2>
<h2 className='medium-regular mb-32'>
1. MSI 학생정보시스템 접속 <br />
2. 학적/장학 → 학생카드 <br />
3. 학생카드 캡처 후 업로드 <br />
</h2>
<AuthImgUpload />
</div>
</div>
);
};
Expand Down
31 changes: 26 additions & 5 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
"use client";
import Main from "@/components/templates/login/main/Main";
import React from "react";
import Image from "next/image";
import logo from "@public/icons/logo.png";
import loginImg from "@public/icons/loginImg.png";
import Link from "next/link";

const page = () => {
return (
<div>
<Main />
<div className="w-360 min-h-640 flex flex-col items-center justify-center">
<Image className="w-228 h-108 object-contain" src={logo} alt="logo" />
<h1 className="mt-20 mb-116 gangwon-xl text-main-point">
명지인들과 롤링페이퍼로 마음을 나눠요
</h1>
<Link href={"/login/auth"}>
<button>
<Image src={loginImg} alt="loginImg" />
</button>
</Link>

<h2 className="w-284 mt-8 flex text-11 text-gray-medium-text-2 flex-wrap whitespace-pre-line">
시작할 경우, 명지편지의
<div className="ml-[3.5px] border-b-1 border-gray-medium-text-2 whitespace-pre-line">
서비스 이용약관
</div>
<div className="ml-[3.5px] border-b-1 border-gray-medium-text-2 whitespace-pre-line">
개인정보 보호정책
</div>
에 동의하게 됩니다.
</h2>
</div>
);
};
Expand Down
14 changes: 3 additions & 11 deletions src/components/atoms/button/modal/YesButton.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
import React from "react";
import React from 'react';

const YesButton = ({
info,
handler,
isOne,
}: {
info: string;
handler: () => void;
isOne: boolean;
}) => {
const YesButton = ({ info, handler, isOne }: { info: string; handler: () => void; isOne: boolean }) => {
return (
<button
className={`transition-opacity duration-500 ease-in-out hover:opacity-50 rounded-8 ${
isOne ? "w-280" : "w-120"
isOne ? 'w-248' : 'w-120'
} h-44 bg-main-point text-white flex items-center justify-center`}
onClick={() => {
handler();
Expand Down
103 changes: 0 additions & 103 deletions src/components/molecules/modal/ModalView.tsx

This file was deleted.

Loading