seungmi

기본 디자인

웹페이지의 전반적인 기초디자인 구성
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 1fr;
}
.grid article{
padding: 30px;
}
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......