Showing
3 changed files
with
13 additions
and
1 deletions
public/css/main.css
0 → 100644
... | @@ -4,6 +4,7 @@ const request = require("request"); | ... | @@ -4,6 +4,7 @@ const request = require("request"); |
4 | const convert = require("xml-js"); | 4 | const convert = require("xml-js"); |
5 | const fs = require("fs"); | 5 | const fs = require("fs"); |
6 | const xml2js = require("xml2js"); | 6 | const xml2js = require("xml2js"); |
7 | +const static = require("serve-static"); | ||
7 | 8 | ||
8 | // Modify the values as needed | 9 | // Modify the values as needed |
9 | var year = "2022"; | 10 | var year = "2022"; |
... | @@ -28,6 +29,7 @@ var tempArr = []; | ... | @@ -28,6 +29,7 @@ var tempArr = []; |
28 | // To run EJS engine | 29 | // To run EJS engine |
29 | app.set("views", __dirname + "/views"); | 30 | app.set("views", __dirname + "/views"); |
30 | app.set("view engine", "ejs"); | 31 | app.set("view engine", "ejs"); |
32 | +app.use(static(__dirname)); | ||
31 | 33 | ||
32 | // To get today date by using Date | 34 | // To get today date by using Date |
33 | function getTodayDate() { | 35 | function getTodayDate() { | ... | ... |
... | @@ -6,11 +6,18 @@ | ... | @@ -6,11 +6,18 @@ |
6 | <meta charset="UTF-8"> | 6 | <meta charset="UTF-8"> |
7 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 7 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
8 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 8 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
9 | - <title>Document</title> | 9 | + <title>Check the Holiday</title> |
10 | + <link rel="stylesheet" href="../public/css/main.css" type="text/css"> <!--style.css 파일 적용.--> | ||
10 | </head> | 11 | </head> |
11 | <body> | 12 | <body> |
13 | + <div> | ||
12 | <p> | 14 | <p> |
13 | <h1>[<%= data[0] %>]까지 <%= data[2] %>일 남았습니다. (<%= data[1] %>)</h1> | 15 | <h1>[<%= data[0] %>]까지 <%= data[2] %>일 남았습니다. (<%= data[1] %>)</h1> |
14 | </p> | 16 | </p> |
17 | + </div> | ||
18 | + <h2> <%= data[0] %> 에 추천하는 활동 목록입니다.</h2> <!--recommend activity 추가파트 시작--> | ||
19 | + <h3>1. 가나다 </h3> | ||
20 | + <h3>2. 라마바 </h3> | ||
21 | + <h3>2. 라마바 </h3> | ||
15 | </body> | 22 | </body> |
16 | </html> | 23 | </html> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment