Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이유제
/
CultureGallery
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
송효섭
2020-12-11 12:44:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
06407fd09125bf1e627d210a7e0037fee7fcacfe
06407fd0
1 parent
dc08b95a
배포용 파일 아키텍처 수정
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
86 deletions
routes/index.js
routes/searchPage.ejs
routes/findPage.ejs → views/findPage.ejs
views/login.html → views/login.ejs
views/main.html → views/main.ejs
routes/mapPage.ejs → views/mapPage.ejs
views/search.html
views/send.html → views/send.ejs
routes/index.js
View file @
06407fd
...
...
@@ -5,8 +5,8 @@ var fs = require('fs');
var
ejs
=
require
(
'ejs'
);
var
mapPage
=
fs
.
readFileSync
(
'
route
s/mapPage.ejs'
,
'utf8'
);
var
findPage
=
fs
.
readFileSync
(
'
route
s/findPage.ejs'
,
'utf-8'
);
var
mapPage
=
fs
.
readFileSync
(
'
view
s/mapPage.ejs'
,
'utf8'
);
var
findPage
=
fs
.
readFileSync
(
'
view
s/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
(
'카카오톡 공유 메시지 접속 성공'
);
})
...
...
routes/searchPage.ejs
deleted
100644 → 0
View file @
dc08b95
<!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
route
s/findPage.ejs
→
view
s/findPage.ejs
View file @
06407fd
...
...
@@ -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'
)
...
...
views/login.
html
→
views/login.
ejs
View file @
06407fd
File moved
views/main.
html
→
views/main.
ejs
View file @
06407fd
File moved
route
s/mapPage.ejs
→
view
s/mapPage.ejs
View file @
06407fd
...
...
@@ -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>
...
...
views/search.html
deleted
100644 → 0
View file @
dc08b95
<!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
views/send.
html
→
views/send.
ejs
View file @
06407fd
File moved
Please
register
or
login
to post a comment