-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
271 additions
and
46 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import "./AllItem.css"; | ||
|
||
function AllItem({ imageUrl, title, price, likeCount, size }) { | ||
return ( | ||
<div> | ||
<div className="All-list"> | ||
<img | ||
className="product-image" | ||
src={imageUrl} | ||
alt="product" | ||
style={{ | ||
width: `${size}px`, | ||
height: `${size}px`, | ||
}} | ||
/> | ||
<p>{title}</p> | ||
<p>{price}원</p> | ||
<div> | ||
<img src={heart} alt="좋아요 수" /> {likeCount} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default AllItem; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import heart from "../ImgFile/icon_wish.svg"; | ||
|
||
import "./BestItem.css"; | ||
|
||
function BestItem({ imageUrl, title, price, likeCount, size }) { | ||
return ( | ||
<div> | ||
<div> | ||
<img | ||
className="Best-image" | ||
src={imageUrl} | ||
alt="product" | ||
style={{ | ||
width: `${size}px`, | ||
height: `${size}px`, | ||
}} | ||
/> | ||
<p>{title}</p> | ||
<p>{price}원</p> | ||
<div> | ||
<img src={heart} alt="좋아요 수" /> | ||
{likeCount} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default BestItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
|
||
function ItemCard({ item }) { | ||
return ( | ||
<div className="itemCard"> | ||
<img src={item.images[0]} alt={item.name} className="itemCardThumbnail" /> | ||
<div className="itemSummary"> | ||
<h2 className="itemName">{item.name}</h2> | ||
<p className="itemPrice">{item.price.toLocaleString()}원</p> | ||
<div className="favoriteCount"> | ||
{item.favoriteCount} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default ItemCard; |
Empty file.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,68 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>판다마켓</title> | ||
<link rel="stylesheet" href="asset.css"> | ||
<link rel="stylesheet" href="signup.css"> | ||
</head> | ||
<body> | ||
<link rel="stylesheet" href="asset.css" /> | ||
<link rel="stylesheet" href="signup.css" /> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<header class="header__logo"> | ||
<header class="header__logo"> | ||
<a href="/"> | ||
<img src="logo.png" width= "396px"> | ||
<img src="components/logo.png" width="396px" /> | ||
</a> | ||
</header> | ||
<form class="form__container"> | ||
</header> | ||
<form class="form__container"> | ||
<div class="form__form-group"> | ||
<label for="email">이메일</label><br> | ||
<input id="email" type="text" name="email" placeholder="이메일을 입력해주세요"> | ||
<label for="email">이메일</label><br /> | ||
<input | ||
id="email" | ||
type="text" | ||
name="email" | ||
placeholder="이메일을 입력해주세요" | ||
/> | ||
</div> | ||
<div class="form__form-group"> | ||
<label for="password">비밀번호</label><br> | ||
<input id="password" type="password" name="userPassword" placeholder="비밀번호를 입력해주세요"> | ||
<label for="password">비밀번호</label><br /> | ||
<input | ||
id="password" | ||
type="password" | ||
name="userPassword" | ||
placeholder="비밀번호를 입력해주세요" | ||
/> | ||
</div> | ||
<button type="button" class="password-toggle-button" arialabel="비밀번호 보기"> | ||
<img src="passwordDefault.png"> | ||
<button | ||
type="button" | ||
class="password-toggle-button" | ||
arialabel="비밀번호 보기" | ||
> | ||
<img src="components/passwordDefault.png" /> | ||
</button> | ||
<button type="submit" class="form__signup-button"style="border:0 solid black">로그인</button> | ||
</form> | ||
<section class="section__container"> | ||
<button | ||
type="submit" | ||
class="form__signup-button" | ||
style="border: 0 solid black" | ||
> | ||
로그인 | ||
</button> | ||
</form> | ||
<section class="section__container"> | ||
<h3>간편 로그인하기</h3> | ||
<div class="section__icon-container"> | ||
<a href="http://www.google.com" target="_blank"> | ||
<img src="google-logo.png"> | ||
</a> | ||
<a href="http://www.kakaocorp.com/page" target="_blank"> | ||
<img src="kakao-logo.png"> | ||
</a> | ||
<a href="http://www.google.com" target="_blank"> | ||
<img src="components/google-logo.png" /> | ||
</a> | ||
<a href="http://www.kakaocorp.com/page" target="_blank"> | ||
<img src="components/kakao-logo.png" /> | ||
</a> | ||
</div> | ||
</section> | ||
<footer class="footer__container"> | ||
</section> | ||
<footer class="footer__container"> | ||
판다마켓이 처음이신가요? | ||
<a href="signup.html">회원가입</a> | ||
</footer> | ||
</div> | ||
</body> | ||
</html> | ||
</footer> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export async function getProduct(page, pageSize) { | ||
const response = await fetch( | ||
`https://panda-market-api.vercel.app/users/me/products?page=${page}&pageSize=${pageSize}` | ||
); | ||
const data = await response.json(); | ||
return data; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.headTitle { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.item-list { | ||
width: 1200px; | ||
height: 1206px; | ||
} | ||
.item-list-seet { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
gap: 24px; | ||
} | ||
|
||
.item-list-seeter { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
gap: 24px; | ||
} | ||
|
||
.Allproduct-list { | ||
display: flex; | ||
} |
Oops, something went wrong.