Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김동진
/
HealthProtector
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-02 18:31:59 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
94febc8f33572f45de0bb6fb993c94452c1f0798
94febc8f
1 parent
aaa6fa04
info 페이지 css
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
30 deletions
lib/info.js
lib/template.js
main.js
package.json
lib/info.js
View file @
94febc8
var
template
=
require
(
'./template.js'
);
exports
.
info
=
function
(
request
,
response
){
var
title
=
'HealthProtector
란?
'
;
var
description
=
'개개인의 신체 정보에 따라 일일 권장 섭취량을 알려주고,
좋아하는 음식을 검색하면 영양정보를 알려
주는 사이트 입니다.'
;
var
title
=
'HealthProtector'
;
var
description
=
'개개인의 신체 정보에 따라 일일 권장 섭취량을 알려주고,
<br> 좋아하는 음식을 검색하면 영양정보를 알려주는 등 <br> 사용자의 건강을 지켜
주는 사이트 입니다.'
;
var
html
=
template
.
html
(
title
,
`
<style>
@import url('https://fonts.googleapis.com/css2?family=Do+Hyeon&display=swap');
...
...
@@ -11,21 +11,35 @@ exports.info = function(request, response){
text-align:center;
border:0px solid none;
margin:0px 0px 0px 0px;
}
a { text-decoration:none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: none; }
a:focus { text-decoration: none; }
a:hover, a:active { text-decoration: none; }
#info{
font-family: 'Do Hyeon', sans-serif;
}
</div>
</style>
<br><br><br>
<div style= font-size:20px; "font-family: 'Do Hyeon', sans-serif;">
<h2>
${
title
}
</h2>
<h1>
${
title
}
</h1>
<hr style= "width : 200px;height:2px;background-color:black">
<h3>
${
description
}
</h3>
</div>
<br>
<div id= "info" >
<h1>Contact</h1>
<hr style= "width : 145px;height:2px;background-color:black">
<h4><font color="gray">피드백, 오류 등의 연락은 언제나 환영입니다!</font></h4>
<h3>경희대학교 컴퓨터공학과     경희대학교 컴퓨터공학과</h3>
<h2 style="marin:0px;margin-top: 0px;margin-bottom: 0px;">김동진         양효빈</h2>
<h3 style= "margin-top: 0px;margin-bottom: 0px;"> rlaehdwls310@khu.ac.kr    qls0786@khu.ac.kr </h3>
</div>
...
...
lib/template.js
View file @
94febc8
...
...
@@ -29,16 +29,20 @@ module.exports = {
}
</div>
</style>
<div style="font-family: 'Do Hyeon', sans-serif;"
;
>
<div style="font-family: 'Do Hyeon', sans-serif;">
<h3 style=width:180px;float:left;><a href="/"><font color="
black
">HealthProtector</font></a></h3>
<h3 style=width:120px;float:left;><a href="/countKcal"><font color="
black
">칼로리 계산</font></a></h3>
<h3 style=width:120px;float:left;><a href="/searchGym"><font color="
black">헬스장 찾기
</a></h3>
<h3 style=width:120px;float:left;><a href="/foodInfo"><font color="
black
">식품 영양정보</font></a></h3>
<h3 style=width:180px;float:left;><a href="/"><font color="
#213b19
">HealthProtector</font></a></h3>
<h3 style=width:120px;float:left;><a href="/countKcal"><font color="
#213b19
">칼로리 계산</font></a></h3>
<h3 style=width:120px;float:left;><a href="/searchGym"><font color="
#213b19">헬스장 찾기</font>
</a></h3>
<h3 style=width:120px;float:left;><a href="/foodInfo"><font color="
#213b19
">식품 영양정보</font></a></h3>
<h3 style=width:150px;float:right;><i class="fas fa-info-circle fa-3x"style="font-size: 20px";></i><a href="/info"><font color="black"> Info</font></a></h3>
<div style="color :#213b19";>
<h3 style=width:160px;float:right;>
<i class="fas fa-info-circle fa-3x"style="font-size: 20px;"></i><a href="/info"><font color="#213b19"> Info</font></a></h3>
</div>
</div>
<hr width = "100%" color ="#213b19" style=margin:0px;>
${
body
}
<div style= width:100%;font-size:9px;position:fixed;bottom:0;float:left;padding:0px;background-color:#213b19;>
...
...
main.js
View file @
94febc8
...
...
@@ -53,4 +53,6 @@ var app = http.createServer(function(request,response){
response
.
end
(
"Not found"
);
}
});
app
.
listen
(
23000
);
\ No newline at end of file
app
.
listen
(
process
.
env
.
PORT
||
23000
,
function
(){
console
.
log
(
"Server on!"
);
});
\ No newline at end of file
...
...
package.json
View file @
94febc8
...
...
@@ -3,23 +3,21 @@
"version"
:
"1.0.0"
,
"description"
:
""
,
"main"
:
"main.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
},
"author"
:
""
,
"license"
:
"ISC"
,
"directories"
:
{
"lib"
:
"lib"
},
"dependencies"
:
{
"jquery"
:
"^3.5.1"
,
"mysql"
:
"^2.18.1"
},
"devDependencies"
:
{},
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
},
"repository"
:
{
"type"
:
"git"
,
"url"
:
"http://khuhub.khu.ac.kr/2019102154/HealthProtector.git"
},
"dependencies"
:
{
"jquery"
:
"^3.5.1"
,
"mysql"
:
"^2.18.1"
,
"pm2"
:
"^4.5.0"
,
"react"
:
"^17.0.1"
,
"react-dom"
:
"^17.0.1"
}
"author"
:
""
,
"license"
:
"ISC"
}
...
...
Please
register
or
login
to post a comment