Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김태민
/
OpenSource_Project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
seungmi
2019-11-29 16:57:13 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c806db99e4a3fe238a289cc063816e73a1797ceb
c806db99
1 parent
96dd77f1
기본 디자인
웹페이지의 전반적인 기초디자인 구성
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
82 additions
and
38 deletions
public/style.css
views/index.ejs
views/print.ejs
views/recommendation.ejs
views/search.ejs
프로젝트 계획서.docx
public/style.css
View file @
c806db9
body
{
margin
:
0
;
font-size
:
25px
;
}
a
{
color
:
black
;
text-decoration
:
none
;
}
h1
{
font-size
:
45px
;
text-align
:
center
;
border-bottom
:
1px
solid
gray
;
margin
:
0
;
padding
:
60px
;
}
ul
{
border-right
:
1px
solid
gray
;
width
:
50px
;
margin
:
0
;
padding
:
80px
;
padding-bottom
:
0
;
padding-top
:
65px
;
}
.grid
{
display
:
grid
;
grid-template-columns
:
250px
1
fr
;
}
.grid
article
{
padding
:
30px
;
}
...
...
views/index.ejs
View file @
c806db9
...
...
@@ -4,20 +4,26 @@
<head>
<meta
charset=
"utf-8"
>
<title>
Test
</title>
<link
rel=
"stylesheet"
href=
"/../style.css"
>
</head>
<body>
<h1><a
href=
"/food"
>
점심메뉴 정하기
</a></h1>
<article
class=
""
>
<h2>
<
%= title %>
</h2>
<h1><a
href=
"/food"
>
점심 메뉴 정하기
</a></h1>
<div
class=
"grid"
>
<ul>
<il><a
href=
"/food/search"
>
검색
</a></il><br>
<il><a
href=
"/food/recommendation"
>
추천
</a></il>
</ul>
<article
class=
""
>
<h2>
<
%= title %>
</h2>
<p>
<
%= description %>
</p>
</article>
<
/div class="grid">
</body>
...
...
views/print.ejs
View file @
c806db9
...
...
@@ -3,23 +3,27 @@
<head>
<meta
charset=
"utf-8"
>
<link
rel=
"stylesheet"
href=
"/../style.css"
>
<title>
Test
</title>
</head>
<body>
<h1><a
href=
"/food"
>
점심메뉴 정하기
</a></h1>
<h2>
<
%= title %>
</h2>
<div
class=
"grid"
>
<ul>
<il><a
href=
"/food/search"
>
검색
</a></il><br>
<il><a
href=
"/food/recommendation"
>
추천
</a></il>
</ul>
<p>
<
%= description %>
</p>
<p>
<
%= randvalue%>
</p>
<article>
<h2>
<
%= title %>
</h2>
<p>
<
%= description %>
</p>
<p>
<
%= randvalue%>
</p>
</article>
<
/div class="grid">
</body>
</html>
...
...
views/recommendation.ejs
View file @
c806db9
...
...
@@ -3,21 +3,26 @@
<head>
<meta
charset=
"utf-8"
>
<title>
Test
</title>
<link
rel=
"stylesheet"
href=
"/../style.css"
>
<title>
Test
</title>
</head>
<body>
<h1><a
href=
"/food"
>
점심메뉴 정하기
</a></h1>
<h2>
<
%= title %>
</h2
>
<h1><a
href=
"/food"
>
점심
메뉴 정하기
</a></h1>
<div
class=
"grid"
>
<ul>
<il><a
href=
"/food/search"
>
검색
</a></il><br>
<il><a
href=
"/food/recommendation"
>
추천
</a></il>
</ul>
<p>
<
%= description %>
</p>
<article>
<form
action=
'/food'
method=
'post'
>
<h2>
<
%= title %>
</h2>
<p>
<
%= description %>
</p>
<form
action=
'/food/recommendation'
method=
'post'
>
<p>
가격 :
...
...
@@ -37,6 +42,8 @@
</form>
</article>
<
/div class="grid">
</body>
</html>
...
...
views/search.ejs
View file @
c806db9
...
...
@@ -3,43 +3,35 @@
<head>
<meta
charset=
"utf-8"
>
<link
rel=
"stylesheet"
href=
"/../style.css"
>
<title>
Test
</title>
</head>
<body>
<h1><a
href=
"/food"
>
점심메뉴 정하기
</a></h1>
<h2>
<
%= title %>
</h2
>
<h1><a
href=
"/food"
>
점심
메뉴 정하기
</a></h1>
<div
class=
"grid"
>
<ul>
<il><a
href=
"/food/search"
>
검색
</a></il><br>
<il><a
href=
"/food/recommendation"
>
추천
</a></il>
</ul>
<p>
<
%= description %>
</p>
<article>
<form
action=
'/food'
method=
'post'
>
<!--제출된 정보를 보내는 역할
get으로 보내는 경우 (url)querystring으로 전달됨.
기본 초기값이 get임
post방식은 눈에 보이지 않는 방식으로 전달
post는 bodyParser모듈에서 받을 수 있음
-->
<h2>
<
%= title %>
</h2>
<p>
<
%= description %>
</p>
<form
action=
'/food/search'
method=
'post'
>
<p>
검색 :
<input
type=
"text"
name=
"title"
placeholder=
"검색"
>
<!--
get인 경우 req.query.title로 전달
post인 경우 req.body.title로 전달
req.body.<name>
-->
</p>
<p>
<input
type=
"submit"
>
</p>
</form>
</article>
<
/div class="grid">
</body>
</html>
...
...
프로젝트 계획서.docx
View file @
c806db9
No preview for this file type
Please
register
or
login
to post a comment