송효섭

배포용 파일 아키텍처 수정

...@@ -5,8 +5,8 @@ var fs = require('fs'); ...@@ -5,8 +5,8 @@ var fs = require('fs');
5 var ejs = require('ejs'); 5 var ejs = require('ejs');
6 6
7 7
8 -var mapPage = fs.readFileSync('routes/mapPage.ejs', 'utf8'); 8 +var mapPage = fs.readFileSync('views/mapPage.ejs', 'utf8');
9 -var findPage = fs.readFileSync('routes/findPage.ejs', 'utf-8'); 9 +var findPage = fs.readFileSync('views/findPage.ejs', 'utf-8');
10 var dataNum = 0; 10 var dataNum = 0;
11 11
12 router.get('/mappage', (req, res) => { 12 router.get('/mappage', (req, res) => {
...@@ -70,17 +70,17 @@ router.get('/findpage', (req, res) => { ...@@ -70,17 +70,17 @@ router.get('/findpage', (req, res) => {
70 70
71 //루트 페이지 (메인페이지)에서 실행됨 : title 할당하고 main.html 띄워줌. 71 //루트 페이지 (메인페이지)에서 실행됨 : title 할당하고 main.html 띄워줌.
72 router.get('/', function (req, res, next) { 72 router.get('/', function (req, res, next) {
73 - res.render('main.html', { title: 'Culture Gallery' }); 73 + res.render('main', { title: 'Culture Gallery' });
74 console.log('main 접속 성공'); 74 console.log('main 접속 성공');
75 }); 75 });
76 76
77 /* GET home page. */ 77 /* GET home page. */
78 router.get('/login', function (req, res, next) { 78 router.get('/login', function (req, res, next) {
79 - res.render('login.html', { title: 'Login' }); 79 + res.render('login', { title: 'Login' });
80 console.log('로그인 페이지 접속 성공'); 80 console.log('로그인 페이지 접속 성공');
81 }); 81 });
82 router.get('/send', function (req, res, next) { 82 router.get('/send', function (req, res, next) {
83 - res.render('send.html', { title: 'Send message' }); 83 + res.render('send', { title: 'Send message' });
84 console.log('카카오톡 공유 메시지 접속 성공'); 84 console.log('카카오톡 공유 메시지 접속 성공');
85 }) 85 })
86 86
......
1 -<!DOCTYPE html>
2 -<html lang="ko">
3 -
4 -<head>
5 - <title>
6 - <%= title%>
7 - </title>
8 - <meta charset="UTF-8">
9 - <meta name="viewport" content="width=device-width, initial-scale=1.0">
10 - <link rel="stylesheet" href='/stylesheets/mapPage_style.css' type="text/css">
11 - <link rel="shortcut icon" href="/images/favicon.ico">
12 - <link rel="icon" href="/images/favicon.ico">
13 -</head>
14 -
15 -<body>
16 - <header>
17 - <div class="nav-bar">
18 - <img src="../images/camera.png" alt="" class="logo">
19 - <ul class="menu">
20 - <li><a href="">Home</a></li>
21 - <li><a href="">Services</a></li>
22 - <li><a href="">Portfolio</a></li>
23 - <li><a href="">Testimonimal</a></li>
24 - <li><a href="">Career</a></li>
25 - <li><a href="">Contact</a></li>
26 - </ul>
27 - </div>
28 - </header>
29 -</body>
30 -
31 -</html>
...\ No newline at end of file ...\ No newline at end of file
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
4 <head> 4 <head>
5 <title> findpage</title> 5 <title> findpage</title>
6 <link rel="stylesheet" href='/stylesheets/findPage_style.css' type="text/css"> 6 <link rel="stylesheet" href='/stylesheets/findPage_style.css' type="text/css">
7 - 7 + <link rel="shortcut icon" href="/images/favicon.ico">
8 + <link rel="icon" href="/images/favicon.ico">
8 <script src="https://developers.kakao.com/sdk/js/kakao.js"></script> 9 <script src="https://developers.kakao.com/sdk/js/kakao.js"></script>
9 <script> 10 <script>
10 Kakao.init('0678e32dab56db1c52ac63ab4ccb7663') 11 Kakao.init('0678e32dab56db1c52ac63ab4ccb7663')
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
3 3
4 <head> 4 <head>
5 <title> 5 <title>
6 - <script>title</script> 6 + Culture Gallery
7 </title> 7 </title>
8 <link rel="stylesheet" href='/stylesheets/mapPage_style.css' type="text/css"> 8 <link rel="stylesheet" href='/stylesheets/mapPage_style.css' type="text/css">
9 <link rel="shortcut icon" href="/images/favicon.ico"> 9 <link rel="shortcut icon" href="/images/favicon.ico">
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
58 <div class="nav-bar"> 58 <div class="nav-bar">
59 <img src="../images/icon.png" alt="" class="logo"> 59 <img src="../images/icon.png" alt="" class="logo">
60 <ul class="menu"> 60 <ul class="menu">
61 - <li><a href="">Home</a></li> 61 + <li><a href="/">Home</a></li>
62 <li><a href="">Services</a></li> 62 <li><a href="">Services</a></li>
63 <li><a href="">Portfolio</a></li> 63 <li><a href="">Portfolio</a></li>
64 <li><a href="">Testimonimal</a></li> 64 <li><a href="">Testimonimal</a></li>
......
1 -<!DOCTYPE html>
2 -<html lang="ko">
3 -
4 -<head>
5 - <meta charset="UTF-8">
6 - <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 - <title>Culture Gallery</title>
8 - <link rel="stylesheet" href='/stylesheets/login_style.css' type="text/css">
9 - <link rel="shortcut icon" href="/images/favicon.ico">
10 - <link rel="icon" href="/images/favicon.ico">
11 -
12 - <script src="https://developers.kakao.com/sdk/js/kakao.js"></script>
13 -</head>
14 -
15 -<body>
16 - <header>
17 - <div class="nav-bar">
18 - <img src="../images/icon.png" alt="" class="logo">
19 - <ul class="menu">
20 - <li><a href="/">Home</a></li>
21 - <li><a href="">Services</a></li>
22 - <li><a href="">Portfolio</a></li>
23 - <li><a href="">Testimonimal</a></li>
24 - <li><a href="">Career</a></li>
25 - <li><a href="">Contact</a></li>
26 - </ul>
27 - </div>
28 - </header>
29 - <h1>검색하기</h1>
30 - <hr>
31 - <form action="/search" method="POST">
32 - <table>
33 - <tr>
34 - <td><input type="text" name="name" placeholder="장소를 입력하세요."></td>
35 - </tr>
36 - <tr>
37 - <td><input type="text" name="modelnumber" placeholder="모델넘버를 입력하세요."></td>
38 - </tr>
39 - <tr>
40 - <td><input type="text" name="series" placeholder="시리즈를 입력하세요."></td>
41 - </tr>
42 - </table>
43 - <input type="submit" value="전송하기">
44 - </form>
45 -</body>
46 -
47 -</html>
...\ No newline at end of file ...\ No newline at end of file