-
Notifications
You must be signed in to change notification settings - Fork 15
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
23 changed files
with
331 additions
and
102 deletions.
There are no files selected for viewing
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
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,22 @@ | ||
import "../styles/Banner.css"; | ||
|
||
export function Banner(children) { | ||
return ( | ||
<div class="banner_container"> | ||
<div class="banner_info"> | ||
<p class="banner_text">{children.toptext}</p> | ||
<p class="banner_text">{children.bottomtext}</p> | ||
{children.link && ( | ||
<a href="items.html"> | ||
<button className="look_around_button">구경하러 가기</button> | ||
{children.link.label} | ||
</a> | ||
)} | ||
|
||
</div> | ||
<img class="banner_image" src={children.image}/> | ||
</div> | ||
); | ||
} | ||
|
||
export default Banner; |
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,42 @@ | ||
import "../styles/Content.css"; | ||
import "../images/Img_home_01.png"; | ||
import "../images/Img_home_02.png"; | ||
import "../images/Img_home_03.png"; | ||
|
||
export function Content() { | ||
|
||
const content_image_01 = require("../images/Img_home_01.png"); | ||
const content_image_02 = require("../images/Img_home_02.png"); | ||
const content_image_03 = require("../images/Img_home_03.png"); | ||
|
||
return ( | ||
<div className="content-container"> | ||
<div className="content_container"> | ||
<img className="images" src={content_image_01}/> | ||
<div className="content_01"> | ||
<b className="content_badge">Hot Item</b> | ||
<p className="content_title">인기 상품을 <br/> 확인해 보세요</p> | ||
<p className="content_desc">가장 HOT한 중고거래 물품을 <br/> 판다 마켓에서 확인해 보세요</p> | ||
</div> | ||
</div> | ||
<div className="content_container"> | ||
<div className="content_02"> | ||
<b className="content_badge">Search</b> | ||
<p className="content_title">구매를 원하는 <br/> 상품을 검색하세요</p> | ||
<p className="content_desc">구매하고 싶은 물품은 검색해서 <br/> 쉽게 찾아보세요</p> | ||
</div> | ||
<img className="images" src={content_image_02}/> | ||
</div> | ||
<div className="content_container"> | ||
<img className="images" src={content_image_03}/> | ||
<div className="content_03"> | ||
<b className="content_badge">Register</b> | ||
<p className="content_title">판매를 원하는 <br/> 상품을 등록하세요</p> | ||
<p className="content_desc">어떤 물건이든 판매하고 싶은 상품을 <br/> 쉽게 등록하세요</p> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Content; |
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,27 @@ | ||
import React from "react"; | ||
|
||
function DropdownContent({ isOpen, options, handleOptionClick }) { | ||
if (!isOpen) { | ||
return null; | ||
} | ||
|
||
if (options.length > 0) { | ||
return ( | ||
<ul className="dropdown-menu"> | ||
{options.map((option, index) => ( | ||
<li | ||
key={index} | ||
className="dropdown-item" | ||
onClick={() => handleOptionClick(option)} | ||
> | ||
{option} | ||
</li> | ||
))} | ||
</ul> | ||
); | ||
} | ||
|
||
return <p className="dropdown-no-options">옵션이 없습니다.</p>; | ||
} | ||
|
||
export default DropdownContent; |
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,11 @@ | ||
import React from "react"; | ||
|
||
function DropdownToggle({ onToggle, selectedOption }) { | ||
return ( | ||
<button className="dropdown-button" onClick={onToggle}> | ||
{selectedOption || "최신순"} ▼ | ||
</button> | ||
); | ||
} | ||
|
||
export default DropdownToggle; |
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.