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

최종 PR #25

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
cbecbba
init : Next.js 환경 세팅 (#1)
binllionaire Dec 20, 2023
0c0a877
Merge pull request #2 from TacoSrirachaStudy/setting#1
binllionaire Dec 20, 2023
98d5e4f
add : styled-components 라이브러리 추가 (#3)
binllionaire Dec 21, 2023
a912566
Merge pull request #4 from TacoSrirachaStudy/setting#3
binllionaire Dec 21, 2023
758ae88
Merge branch 'main' of https://github.com/TacoSrirachaStudy/PICK-A-BO…
binllionaire Dec 21, 2023
1a9bbd1
Merge branch 'develop' of https://github.com/TacoSrirachaStudy/PICK-A…
binllionaire Dec 21, 2023
c5b9251
move : 폴더구조 및 라우팅 (#5)
binllionaire Dec 21, 2023
e2944ea
Merge pull request #6 from TacoSrirachaStudy/setting#5
binllionaire Dec 21, 2023
d199da2
design : 스타일 초기 세팅 (#7)
binllionaire Dec 22, 2023
242b57e
Merge pull request #8 from TacoSrirachaStudy/setting#7
binllionaire Dec 22, 2023
de08c80
add : styled-component 재설치
binllionaire Dec 22, 2023
413f5ae
design : global style 수정
binllionaire Dec 22, 2023
3c13b80
feature : 온보딩 페이지 퍼블리싱 (#9)
binllionaire Dec 22, 2023
a524e00
Merge pull request #10 from TacoSrirachaStudy/feature#9
binllionaire Dec 22, 2023
54d562b
add : 더미 이미지 추가
binllionaire Dec 22, 2023
09383ff
feature : 디테일 페이지 퍼블리싱
binllionaire Dec 22, 2023
3289b1e
Merge pull request #12 from TacoSrirachaStudy/feature#11
binllionaire Dec 22, 2023
cd2f346
feat : 검색바'
moondda Dec 27, 2023
8c625a5
feat: 더미데이터(책) 검색결과 추가
moondda Dec 27, 2023
ca1da7f
feat : 검색아이콘 추가
moondda Dec 28, 2023
848072b
Merge pull request #14 from TacoSrirachaStudy/feature#13
moondda Dec 28, 2023
c8cdb55
init : 리액트쿼리 초기세팅
moondda Dec 28, 2023
498cb22
fix: 리액트쿼리 초기세팅
moondda Dec 29, 2023
51d7bb7
Merge pull request #16 from TacoSrirachaStudy/init#15
moondda Dec 29, 2023
e07dec9
feat: 카카오 책 api get
moondda Dec 29, 2023
1f38601
책 더미데이터 제거 및 실데이터 map
moondda Dec 29, 2023
a3ecb6b
Merge pull request #18 from TacoSrirachaStudy/feat#17
binllionaire Dec 30, 2023
e4c105d
feature : 상세페이지 연결 (#19)
binllionaire Dec 30, 2023
d2d154b
improve : 배경이미지 이미지 최적화
binllionaire Dec 30, 2023
d627b7f
Merge pull request #20 from TacoSrirachaStudy/feature#19
moondda Dec 30, 2023
f5d0c96
feat: 호버시 위로 이미지 올라오게 애니메이션
moondda Dec 30, 2023
8c14590
feat: 호버시 책 제목&설명 보이게
moondda Dec 30, 2023
dd3355e
feat:시작하기 눌렀을때 검색페이지로 라우팅
moondda Dec 30, 2023
d385d89
fix: next.config.js 에러
moondda Dec 30, 2023
060d588
Merge pull request #22 from TacoSrirachaStudy/feat#21
binllionaire Dec 31, 2023
bc9992f
style : css 개행수정
binllionaire Dec 31, 2023
0e3d282
feature : 페이지네이션 구현 (#23)
binllionaire Dec 31, 2023
564bb7f
remove : 사용하지 않는 import문 제거
binllionaire Dec 31, 2023
db86f62
Merge pull request #24 from TacoSrirachaStudy/feature#23
moondda Jan 1, 2024
412f2c3
release : 배포 오류 수정
binllionaire Jan 2, 2024
f863ca4
Merge pull request #26 from TacoSrirachaStudy/hotfix#1
binllionaire Jan 2, 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
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["next/babel"],
"plugins": []
}
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/babel", "next/core-web-vitals"]
}
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

.env
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
106 changes: 106 additions & 0 deletions app/(route)/detail/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
"use client";
import Image from "next/image";
import styled from "styled-components";
import BookImage from "../../_assets/images/dummy_book.png";
import { useSearchParams } from "next/navigation";

export default function Detail() {
const searchParams = useSearchParams();

const title = searchParams.get("title");
const contents = searchParams.get("contents");
const datetime = searchParams.get("datetime");
const isbn = searchParams.get("isbn");
const authors = searchParams.get("authors");
const publisher = searchParams.get("publisher");
const translators = searchParams.get("translators");
const price = searchParams.get("price");
const sale_price = searchParams.get("sale_price");
const url = searchParams.get("url") as string;
const thumbnail = searchParams.get("thumbnail") as string;

return (
<>
<BackGround></BackGround>
<Wrapper>
<Inner>
<Thumbnail>
{thumbnail && <Image src={thumbnail} alt="썸네일" width="300" height="400" />}
</Thumbnail>
<DetailWrapper>
<Title>{title}</Title>
<BookDetail>
<p>소개 : {contents}</p>
<p>도서번호 : {isbn}</p>
<p>출판일 : {datetime}</p>
<p>작가 : {authors}</p>
<p>번역가 : {translators}</p>
<p>출판사 : {publisher}</p>
<p>정가 : {price} 원</p>
<p>판매가 : {sale_price} 원</p>
<a href={url}>상세 페이지 바로가기</a>
</BookDetail>
</DetailWrapper>
</Inner>
</Wrapper>
</>
);
}
const BackGround = styled.div`
position: absolute;
z-index: 1;
top: 0;
left: 0;

width: 100vw;
height: 100vh;

background-color: black;
opacity: 30%;
`;

const Wrapper = styled.div`
position: relative;
z-index: 2;

display: flex;
align-items: center;
justify-content: center;

height: 100%;
`;

const Thumbnail = styled.div`
box-shadow: 7.918px 7.918px 19.796px 0px rgba(0, 0, 0, 0.25);
height: 400px;
`;

const Inner = styled.div`
display: flex;
gap: 60px;
`;

const DetailWrapper = styled.div`
& p {
font-size: 20px;
color: #ffffff;
}
`;

const Title = styled.h2`
margin-bottom: 20px;

color: #fbff48;
font-family: "Pretendard";
font-size: 32px;
font-weight: 600;
`;

const BookDetail = styled.div`
display: flex;
flex-direction: column;
gap: 10px;
& p {
line-height: 24px;
}
`;
72 changes: 72 additions & 0 deletions app/(route)/main/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
"use client";
import Image from "next/image";
import styles from "./page.module.css";
import styled from "styled-components";
import Link from "next/link";

export default function OnBoarding() {
return (
<Wrapper>
<Line />
<Title>PICK-A-BOOK</Title>
<Intro>
That&apos;s the thing about books.
<br /> They let you travel without <br />
moving your feet.
</Intro>
<Link href="/search" passHref>
<StartButton>시작하기</StartButton>
</Link>
</Wrapper>
);
}

const Title = styled.h2`
font-family: "Bebas";
font-size: 270px;
text-align: center;
`;

const Line = styled.hr`
width: 100%;
height: 20px;

background-color: #fbff48;
border: none;
`;
const Intro = styled.p`
text-align: end;
line-height: 30px;
`;
const Wrapper = styled.div`
position: relative;

padding-top: 100px;

height: 100vh;

color: #fbff48;
font-size: 24px;
font-family: "Pretendard";
font-weight: 500;
`;

const StartButton = styled.button`
position: absolute;
bottom: 100px;

display: flex;
align-items: center;
justify-content: center;

width: 100%;
height: 80px;

border: 5px solid #fbff48;
background: none;

color: #fbff48;
font-family: "Pretendard";
font-weight: 600;
font-size: 28px;
`;
Loading