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

고태호 [sprint 7] #101

Merged
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
dist

dist-ssr
*.local

Expand Down
Binary file added Heart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 24 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
# React + Vite
# skill

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
React + Html + CSS + JavaScript
Retrieving json data from the backend server using axios.

Currently, two official plugins are available:
# 배포링크

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
https://leafy-profiterole-1b850b.netlify.app/

# 1.mainpage

After receiving product json data with axios, it retrieves product photo, name, price, and number of likes information and arranges them as shown on the screen. Then, when you click on the product, the detailed screen appears.

# 2.Sort

Sort by latest and likes. Set parameters in backend to retrieve by latest or likes and then arrange. Registering a product could not be set because backend function is not provided.

# 3.Detialpage

Clicking on the product will take you to the details screen. This is also arranged by fetching JSON data from the backend API server. And the comments are also fetched from the backend API server.

# 4.Product Registration

When you click the second-hand market navigation button, the product registration page appears. You can register an image, enter the product name, product introduction, sales price, and tags. After entering the tag and pressing Enter, the tag below appears. When all inputs are completed, the background color of the registration button in the upper right corner changes.

# 5.Pagination

Below is the pagination. When you click on the number button, it is passed as a url parameter, and the corresponding url json data is fetched, and then the products are arranged again. Once you go through all the pages, it will not go any further. For example, if there are 139 products, a total of 14 pages will be composed, and it will not go beyond page 14.
517 changes: 517 additions & 0 deletions dist/assets/index-B8re9kkF.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/assets/index-DLNfu7h6.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import"https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.css";*{margin:0;padding:0;box-sizing:border-box}body{font-family:Pretendard}
14 changes: 14 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!doctype html>
<html lang="en">
<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>중고마켓</title>
<script type="module" crossorigin src="/assets/index-B8re9kkF.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DLNfu7h6.css">
</head>
<body>
<div id="root"></div>
</body>
</html>
Expand Down
Binary file added dist/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
174 changes: 157 additions & 17 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"axios": "^1.7.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",

"react-paginate": "^8.2.0",
"react-router-dom": "^6.26.1",
"styled-components": "^6.1.13"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
Expand Down
2 changes: 0 additions & 2 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import url("https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.css");

* {
margin: 0;
padding: 0;
Expand All @@ -9,4 +8,3 @@
body {
font-family: "Pretendard";
}

Loading
Loading