박지환

Connect ejs and css

h3 {
color: tomato;
}
......@@ -4,6 +4,7 @@ const request = require("request");
const convert = require("xml-js");
const fs = require("fs");
const xml2js = require("xml2js");
const static = require("serve-static");
// Modify the values as needed
var year = "2022";
......@@ -28,6 +29,7 @@ var tempArr = [];
// To run EJS engine
app.set("views", __dirname + "/views");
app.set("view engine", "ejs");
app.use(static(__dirname));
// To get today date by using Date
function getTodayDate() {
......
......@@ -6,11 +6,18 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<title>Check the Holiday</title>
<link rel="stylesheet" href="../public/css/main.css" type="text/css"> <!--style.css 파일 적용.-->
</head>
<body>
<div>
<p>
<h1>[<%= data[0] %>]까지 <%= data[2] %>일 남았습니다. (<%= data[1] %>)</h1>
</p>
</div>
<h2> <%= data[0] %> 에 추천하는 활동 목록입니다.</h2> <!--recommend activity 추가파트 시작-->
<h3>1. 가나다 </h3>
<h3>2. 라마바 </h3>
<h3>2. 라마바 </h3>
</body>
</html>
\ No newline at end of file
......