-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- /board ํ๋ฉด ๋ผ๋ ์์ฑ - /board ๋ด์ ์ค์ ๋ถ๋ถ ๋ณ๋ก component ๋ถ๋ฆฌ ๊ตฌ์ฑ -- center, ๊ฒ์ํ ์์ ๋ทฐ, ์ผ์ชฝ User, SearchBar, NavBar๋ก ๊ตฌ๋ถ
- Loading branch information
1 parent
42e4237
commit a97a2b5
Showing
6 changed files
with
227 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//๊ฒ์ํ ์, ์ค์์ ์ฌ์ง ๋ฐ ์ ๋ชฉ ๋ฑ | ||
|
||
export default function BoardCenter() { | ||
return ( | ||
<> | ||
</> | ||
) | ||
} |
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,77 @@ | ||
//id๋ณ ๋ค๋ชจ๋ค๋ชจํ๊ฒ ์ ๋ชฉ์ด๋ ์์ ๊ธ๋ค ๋ณด์ฌ์ฃผ๋ ๊ฒ | ||
|
||
export default function BoardMiniView(props) { | ||
return ( | ||
<> | ||
{/* type:string ์ ๋ฐ๋ผ ๋ฐฑ์์ ๋ค๋ฅธ ๊ฐ ๋ฐ์์ด. */} | ||
|
||
<table> | ||
<tr> | ||
<th> | ||
<h3 className="boardName">{`${props.type} ๊ฒ์ํ`}</h3> | ||
</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
<a> | ||
<div>๊ฒ์๊ธ ์ ๋ชฉ 1</div> | ||
<div>n๋ถ ์ </div> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<a> | ||
<div>๊ฒ์๊ธ ์ ๋ชฉ 2</div> | ||
<div>n๋ถ ์ </div> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<a> | ||
<div>๊ฒ์๊ธ ์ ๋ชฉ 3</div> | ||
<div>n๋ถ ์ </div> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<a> | ||
<div>๊ฒ์๊ธ ์ ๋ชฉ 4</div> | ||
<div>n๋ถ ์ </div> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<a> | ||
<div>๊ฒ์๊ธ ์ ๋ชฉ 5</div> | ||
<div>n๋ถ ์ </div> | ||
</a> | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
<style jsx>{` | ||
table { | ||
margin: 0px; | ||
border: 1px solid purple; | ||
width: 300px; | ||
} | ||
.boardName { | ||
margin: 0px; | ||
text-align: left; | ||
} | ||
tr { | ||
padding-left: 10px; | ||
} | ||
a { | ||
display: flex; | ||
justify-content: space-between; | ||
flex-direction: row; | ||
} | ||
`}</style> | ||
</> | ||
) | ||
} |
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,72 @@ | ||
//board ์ ์ฉ ๋ค๋น๊ฒ์ด์ ๋ฐ / ์ข์ธก๋ฐ - ๋ค์ด๋ฒ ์นดํ ์ฒ๋ผ. | ||
|
||
export default function BoardNavBar() { | ||
return ( | ||
<> | ||
<ul> | ||
{/*๊ฒ์๋ฌผ ์ข์ธก*/} | ||
<li> | ||
<ul> | ||
<li>๊ณต์ง์ฌํญ</li> | ||
<li>์ค์๊ฐ ์ธ๊ธฐ ๊ฒ์ํ</li> | ||
<li>์์ ๊ฒ์ํ</li> | ||
</ul> | ||
</li> | ||
{/*๊ฒ์๋ฌผ ์ถ๋ ฅ template*/} | ||
<li> | ||
<div>๋ณต๋ฌด์ง ๋ณ ์ปค๋ฎค๋ํฐ</div> | ||
<ul> | ||
<li>์ปค๋ฎค๋ํฐ1</li> | ||
<li>์ปค๋ฎค๋ํฐ2</li> | ||
<li>์ปค๋ฎค๋ํฐ3</li> | ||
<li>์ปค๋ฎค๋ํฐ4</li> | ||
<li>์ปค๋ฎค๋ํฐ5</li> | ||
</ul> | ||
</li> | ||
<li> | ||
<div>๊ด์ฌ์ฌ ๋ณ ์ปค๋ฎค๋ํฐ</div> | ||
<ul> | ||
<li>์ปค๋ฎค๋ํฐ1</li> | ||
<li>์ปค๋ฎค๋ํฐ2</li> | ||
<li>์ปค๋ฎค๋ํฐ3</li> | ||
<li>์ปค๋ฎค๋ํฐ4</li> | ||
<li>์ปค๋ฎค๋ํฐ5</li> | ||
</ul> | ||
</li> | ||
|
||
<li> | ||
<ul> | ||
<li>๋ฒ๊ทธ ์ ๊ณ ํ๊ธฐ</li> | ||
<li>๊ฑด์์ฌํญ</li> | ||
</ul> | ||
</li> | ||
|
||
{/*๊ฒ์ํ ํ์ด์ง template | ||
<li> | ||
<div><</div> | ||
<div>1</div> | ||
<div>2</div> | ||
<div>3</div> | ||
<div>4</div> | ||
<div>5</div> | ||
<div>></div> | ||
</li> | ||
or ๋ฌดํ ์คํฌ๋กค??*/} | ||
|
||
{/*๊ฒ์๊ธ ๊ฒ์ ๊ธฐ๋ฅ - ๋ฐ๋ก ๋ถ๋ฆฌํด์ผ ํ ๋ฏ*/} | ||
<li> | ||
<div> | ||
<select> | ||
<option value="All">์ ๋ชฉ + ๋ด์ฉ</option> | ||
<option value="Title">์ ๋ชฉ</option> | ||
<option value="Content">๋ด์ฉ</option> | ||
</select> | ||
<input /> | ||
<input type="button" value="๊ฒ์"/> | ||
</div> | ||
</li> | ||
|
||
</ul> | ||
</> | ||
) | ||
} |
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,15 @@ | ||
// ๊ฒ์ํ ๊ฒ์ ๊ธฐ๋ฅ | ||
|
||
export default function BoardSearchBar() { | ||
return ( | ||
<> | ||
{/* bootstrap */} | ||
<nav class="navbar navbar-light bg-light"> | ||
<form class="form-inline"> | ||
<input class="form-control mr-sm-2" type="search" placeholder="๊ฒ์ํ ๊ฒ์" aria-label="Search" /> | ||
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> | ||
</form> | ||
</nav> | ||
</> | ||
) | ||
} |
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,31 @@ | ||
//๊ฒ์ํ ์์ ๊ฐ ์ ์ ๋ณ ๋ก๊ทธ์ธ ์ ๋ณด ๋ณด์ฌ์ฃผ๋๊ฑฐ. | ||
|
||
export default function BoardUser(props) { | ||
return ( | ||
<> | ||
<div className={"box"}> | ||
<div className={"image"}>์ด๋ฏธ์ง</div> | ||
<div className={"userId"}>์ ์ ์์ด๋</div> | ||
</div> | ||
<style jsx>{` | ||
.box { | ||
margin: 30px; | ||
border: 1px solid gray; | ||
padding: 10px; | ||
width: 300px; | ||
height: 300px; | ||
} | ||
.image { | ||
margin: 20px; | ||
border: 1px solid black; | ||
background-color: gray; | ||
width: 100px; | ||
height: 100px; | ||
} | ||
.userId { | ||
} | ||
`}</style> | ||
</> | ||
) | ||
} |
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,7 +1,28 @@ | ||
import BoardUser from "../../components/board/BoardUser"; | ||
import BoardSearchBar from "../../components/board/BoardSearchBar"; | ||
import BoardNavBar from "../../components/board/BoardNavBar"; | ||
import BoardCenter from "../../components/board/BoardCenter"; | ||
import BoardMiniView from "../../components/board/BoardMiniView"; | ||
|
||
export default function board() { | ||
return ( | ||
<div> | ||
<h1>๊ฒ์ํ ๋ฉ์ธ ํ์ด์ง</h1> | ||
</div> | ||
<> | ||
<h1>๊ฒ์ํ ๋ฉ์ธ ํ์ด์ง</h1> | ||
<BoardUser /> | ||
<BoardSearchBar /> | ||
<BoardNavBar /> | ||
<BoardCenter /> | ||
<div className="BoardMain"> | ||
<BoardMiniView type="popular" /> | ||
<BoardMiniView type="free" /> | ||
<BoardMiniView type="recommendPlace" /> | ||
<BoardMiniView type="recommendHobby" /> | ||
</div> | ||
<style jsx>{` | ||
.BoardMain { | ||
display: flex; | ||
} | ||
`}</style> | ||
</> | ||
) | ||
} |