송효섭

배포용 파일 아키텍처 수정

......@@ -5,8 +5,8 @@ var fs = require('fs');
var ejs = require('ejs');
var mapPage = fs.readFileSync('routes/mapPage.ejs', 'utf8');
var findPage = fs.readFileSync('routes/findPage.ejs', 'utf-8');
var mapPage = fs.readFileSync('views/mapPage.ejs', 'utf8');
var findPage = fs.readFileSync('views/findPage.ejs', 'utf-8');
var dataNum = 0;
router.get('/mappage', (req, res) => {
......@@ -70,17 +70,17 @@ router.get('/findpage', (req, res) => {
//루트 페이지 (메인페이지)에서 실행됨 : title 할당하고 main.html 띄워줌.
router.get('/', function (req, res, next) {
res.render('main.html', { title: 'Culture Gallery' });
res.render('main', { title: 'Culture Gallery' });
console.log('main 접속 성공');
});
/* GET home page. */
router.get('/login', function (req, res, next) {
res.render('login.html', { title: 'Login' });
res.render('login', { title: 'Login' });
console.log('로그인 페이지 접속 성공');
});
router.get('/send', function (req, res, next) {
res.render('send.html', { title: 'Send message' });
res.render('send', { title: 'Send message' });
console.log('카카오톡 공유 메시지 접속 성공');
})
......
<!DOCTYPE html>
<html lang="ko">
<head>
<title>
<%= title%>
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href='/stylesheets/mapPage_style.css' type="text/css">
<link rel="shortcut icon" href="/images/favicon.ico">
<link rel="icon" href="/images/favicon.ico">
</head>
<body>
<header>
<div class="nav-bar">
<img src="../images/camera.png" alt="" class="logo">
<ul class="menu">
<li><a href="">Home</a></li>
<li><a href="">Services</a></li>
<li><a href="">Portfolio</a></li>
<li><a href="">Testimonimal</a></li>
<li><a href="">Career</a></li>
<li><a href="">Contact</a></li>
</ul>
</div>
</header>
</body>
</html>
\ No newline at end of file
......@@ -4,7 +4,8 @@
<head>
<title> findpage</title>
<link rel="stylesheet" href='/stylesheets/findPage_style.css' type="text/css">
<link rel="shortcut icon" href="/images/favicon.ico">
<link rel="icon" href="/images/favicon.ico">
<script src="https://developers.kakao.com/sdk/js/kakao.js"></script>
<script>
Kakao.init('0678e32dab56db1c52ac63ab4ccb7663')
......
......@@ -3,7 +3,7 @@
<head>
<title>
<script>title</script>
Culture Gallery
</title>
<link rel="stylesheet" href='/stylesheets/mapPage_style.css' type="text/css">
<link rel="shortcut icon" href="/images/favicon.ico">
......@@ -58,7 +58,7 @@
<div class="nav-bar">
<img src="../images/icon.png" alt="" class="logo">
<ul class="menu">
<li><a href="">Home</a></li>
<li><a href="/">Home</a></li>
<li><a href="">Services</a></li>
<li><a href="">Portfolio</a></li>
<li><a href="">Testimonimal</a></li>
......
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Culture Gallery</title>
<link rel="stylesheet" href='/stylesheets/login_style.css' type="text/css">
<link rel="shortcut icon" href="/images/favicon.ico">
<link rel="icon" href="/images/favicon.ico">
<script src="https://developers.kakao.com/sdk/js/kakao.js"></script>
</head>
<body>
<header>
<div class="nav-bar">
<img src="../images/icon.png" alt="" class="logo">
<ul class="menu">
<li><a href="/">Home</a></li>
<li><a href="">Services</a></li>
<li><a href="">Portfolio</a></li>
<li><a href="">Testimonimal</a></li>
<li><a href="">Career</a></li>
<li><a href="">Contact</a></li>
</ul>
</div>
</header>
<h1>검색하기</h1>
<hr>
<form action="/search" method="POST">
<table>
<tr>
<td><input type="text" name="name" placeholder="장소를 입력하세요."></td>
</tr>
<tr>
<td><input type="text" name="modelnumber" placeholder="모델넘버를 입력하세요."></td>
</tr>
<tr>
<td><input type="text" name="series" placeholder="시리즈를 입력하세요."></td>
</tr>
</table>
<input type="submit" value="전송하기">
</form>
</body>
</html>
\ No newline at end of file