Skip to content

Commit

Permalink
Feat : html skeleton of Page /board
Browse files Browse the repository at this point in the history
- /board ํ™”๋ฉด ๋ผˆ๋Œ€ ์™„์„ฑ
- /board ๋‚ด์— ์ค‘์š” ๋ถ€๋ถ„ ๋ณ„๋กœ component ๋ถ„๋ฆฌ ๊ตฌ์„ฑ
-- center, ๊ฒŒ์‹œํŒ ์ž‘์€ ๋ทฐ, ์™ผ์ชฝ User, SearchBar, NavBar๋กœ ๊ตฌ๋ถ„
  • Loading branch information
Turtle-Hwan committed Oct 4, 2022
1 parent 42e4237 commit a97a2b5
Show file tree
Hide file tree
Showing 6 changed files with 227 additions and 3 deletions.
8 changes: 8 additions & 0 deletions frontend/components/board/BoardCenter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//๊ฒŒ์‹œํŒ ์œ„, ์ค‘์•™์— ์‚ฌ์ง„ ๋ฐ ์ œ๋ชฉ ๋“ฑ

export default function BoardCenter() {
return (
<>
</>
)
}
77 changes: 77 additions & 0 deletions frontend/components/board/BoardMiniView.js
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>
</>
)
}
72 changes: 72 additions & 0 deletions frontend/components/board/BoardNavBar.js
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>&lt;</div>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>&gt;</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>
</>
)
}
15 changes: 15 additions & 0 deletions frontend/components/board/BoardSearchBar.js
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>
</>
)
}
31 changes: 31 additions & 0 deletions frontend/components/board/BoardUser.js
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>
</>
)
}
27 changes: 24 additions & 3 deletions frontend/pages/board/index.js
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>
</>
)
}

0 comments on commit a97a2b5

Please sign in to comment.