Skip to content

Commit

Permalink
[박상석] Sprint6 (#240)
Browse files Browse the repository at this point in the history
* reset

* fix: 머지 후 브랜치 삭제 github action 수정

* env: workflows 폴더로 이동

* sprint1

* sprint1

* sprint1

* sprint2 commit

* sprint2 commit

* sprint2 commit

* sprint2 commit

* 스프린트 미션 3 작업 완료 첫 커밋

* form 버튼 타입 수정

* sprint3 merge

* commit

* sprint3 작업 완료 커밋

* sprint3 merge

* sprint3 작업 커밋

* sprint4 작업 완료 첫 커밋

* 파일 정리 커밋

* package.json homepage 속성 추가

* package.json 원복

* 최신순, 좋아요순 주석처리

* a태그 Link 태그로 수정

* 사용하지 않는 함수 삭제

* build 오류 코드 삭제

* 좋아요순, 최신순 선택 정렬  기능

* Netlify 404 오류 파일 업로드

* a태그 Link 수정

* 1.전체상품 10개만 표시 2.렌더링 시 로딩중 문구 추가

* class className으로 변경

* 충돌파일 삭제 후 재생성

* sprint6 작업 완성본 첫 커밋

* conflict 해결 중 삭제 파일 복원 후 재커밋

---------

Co-authored-by: hanseulhee <[email protected]>
Co-authored-by: withyj-codeit <[email protected]>
Co-authored-by: parksangseok <>
  • Loading branch information
3 people authored Dec 6, 2024
1 parent a954cd3 commit 12b7dff
Show file tree
Hide file tree
Showing 19 changed files with 18,131 additions and 112 deletions.
17,812 changes: 17,812 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "1-weekly-mission",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Binary file removed public/favicon.ico
Binary file not shown.
Binary file added public/images/add_btn_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/del_btn_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<!DOCTYPE html>
<html lang="ko">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>판다마켓</title>
</head>

<body>

<div id="root"></div>
</body>

</html>
Binary file removed public/logo192.png
Binary file not shown.
Binary file removed public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

38 changes: 0 additions & 38 deletions src/App.css

This file was deleted.

8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

54 changes: 49 additions & 5 deletions src/asset/css/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@charset "utf-8";

:root {

--gray04: #F3F4F6;
--gray03: #4b5563;
--gray02: #1f2937;
--gray01: #9ca3af;
Expand All @@ -11,6 +11,14 @@
--red: #f74747
}

/* 에러메세지 */
.errorText {
margin: 22px 0 0;
font-size: 16px;
font-weight: 400;
color: var(--red);
}

/* 공통-가운데영역 */
.container {
max-width: 1120px;
Expand Down Expand Up @@ -607,6 +615,10 @@ p.title {
}

/* 서브-상품페이지 */
#sub.subProductReg {
background-color: var(--white01);
}

#sub {
padding: 24px 0 58px;
background-color: #fcfcfc;
Expand All @@ -619,6 +631,14 @@ p.title {
line-height: 1.6;
}

#sub h4 {
margin: 10px 0 16px;
font-size: 18px;
font-weight: 700;
color: var(--gray02);
line-height: 1.4;
}

#sub .cardList.bestCardBox li {
width: 23.59%;
}
Expand Down Expand Up @@ -716,15 +736,15 @@ p.title {
background-size: cover;
}

#sub .itemsBox .productBox {
#sub .productListBox .productBox {
margin-bottom: 49px;
}

#sub .itemsBox .productBox .product {
#sub .productListBox .productBox .product {
position: relative;
}

#sub .itemsBox .productBox:last-child {
#sub .productListBox .productBox:last-child {
margin-bottom: 0;
}

Expand Down Expand Up @@ -882,4 +902,28 @@ p.title {
text-align: center;
}

.loadingText{margin: 150px 0 0; text-align: center; font-size: 26px; color: var(--blue);}
.loadingText {
margin: 150px 0 0;
text-align: center;
font-size: 26px;
color: var(--blue);
}

/* 상품등록 */
.productRegWrap .productRegBox{position: relative;}
.productRegWrap .LayoutBox{display: flex; gap: 0 24px;}
.productRegWrap .productUploadeImg{position: relative; width: 282px; height: 282px; border-radius: 12px; overflow: hidden;}
.productRegWrap .productUploadeImg img{display: block; width: 100%;}
.productRegWrap .productUploadeImg .delBtn{position: absolute; top:12px; right:12px; width: 20px; height: 24px; background: url(/public/images/del_btn_icon.png)no-repeat center; background-size: cover;}

/* 폼 */
.formBox{margin: 0 0 32px;}
.formBox .inputFileBox label{display: flex; align-items: center; justify-content: center; width: 282px; height: 282px; background-color: var(--gray04); border-radius: 12px; cursor: pointer;}
.formBox .inputFileBox label span{position: relative; display: flex; flex-direction: column; align-items: center; gap: 15px 0; color: var(--gray01); line-height: 1;}
.formBox .inputFileBox label span::before{content: ''; width: 48px; height: 48px; background: url(/public/images/add_btn_icon.png)no-repeat center; background-size: cover;}
.formBox .inputTextBox input{padding: 20px 20px 20px 24px; width: 100%; border-radius: 12px; background-color: var(--gray04); font-size: 16px;}
.formBox .inputTextBox input::placeholder{color: var(--gray01); font-size: 16px;}
.formBox .textAreaBox textarea{padding: 20px 20px 20px 24px; width: 100%; height: 282px; border: 0; background-color: var(--gray04); font-family: 'pretendard', sans-serif; font-size: 16px; border-radius: 12px;}
.formBox .textAreaBox textarea::placeholder{color: var(--gray01);}
.productRegBox .addBtn{position: absolute; top:0; right:0; display: block; width: 74px; height: 42px; line-height: 42px; text-align: center; background-color: var(--blue); border-radius: 8px; color: #fff; color: var(--gray04); font-size: 16px;}
.productRegBox .addBtn:disabled{background-color: var(--gray01); cursor: auto;}
2 changes: 0 additions & 2 deletions src/components/page/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import Header from "../section/Header";
export default function Home() {
return (
<div className="App">

<Header />
<Main />
<Footer />

</div>
)
}
14 changes: 7 additions & 7 deletions src/components/page/ProductList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function ProductList() {

useEffect(() => {

const allItem = async function () {
async function allItem() {
try {
let allItems = [];
const totalPages = Math.ceil(175 / 10);
Expand All @@ -35,7 +35,7 @@ export default function ProductList() {

};

const BestItem = async function () {
async function BestItem() {
try {
let allItems = [];
const totalPages = Math.ceil(175 / 10);
Expand Down Expand Up @@ -68,7 +68,7 @@ export default function ProductList() {
setFilterItem(filter);
}, [productSearch, item]);

const sortItems = function (items) {
function sortItems(items) {
if (!Array.isArray(items)) return [];
if (sortOrder === 'latest') {

Expand All @@ -82,16 +82,16 @@ export default function ProductList() {
return items;
}

const getProductData = function (e) {
function getProductData(e) {
setProductSearch(e.target.value);
};

const toggleSelect = function (e) {
function toggleSelect(e) {
e.preventDefault();
setSelectView(!selectView);
};

const handelSortChange = function (e, order) {
function handelSortChange(e, order) {
e.preventDefault();
setSortOrder(order);
setSelectView(false);
Expand All @@ -102,7 +102,7 @@ export default function ProductList() {
<Header />
<main id="sub">
<div className="contentBox">
<div className="itemsBox">
<div className="productListBox">


{loading ? (
Expand Down
Loading

0 comments on commit 12b7dff

Please sign in to comment.