고다경

글자위치랑 백그라운드 수정

......@@ -10,7 +10,7 @@
<p style="text-decoration-line: underline; font-weight:bold;">오늘 먹은 것들을 적어주세요!</p>
<input type="text" name="name" style="width:30%; height:130px;" placeholder="ex) coffee and croissant">
<input type="text" name="name" style="width:30%; height:130px;" placeholder="ex) 1 apple and 2 banana / coffee and croissant">
<br><br><br><br>
<input id="go" type="submit" value="Go!" style=" width:100px; height:80px; font-weight: bold; color:white; font-size: 25px; background-color: rgb(104, 211, 104); border-radius: 2em;">
......
......@@ -62,7 +62,7 @@
<p style="text-decoration-line: underline; font-weight:bold;">오늘 먹은 것들을 적어주세요!</p>
<input type="text" style="width:30%; height:130px;" placeholder="ex) coffee and croissant">
<input type="text" style="width:30%; height:130px;" placeholder="ex) 1 apple and 2 banana / coffee and croissant">
<br><br><br><br>
<input id="go" type="button" value="Go!" style=" width:100px; height:80px; font-weight: bold; color:white; font-size: 25px; background-color: rgb(104, 211, 104); border-radius: 2em;">
......
......@@ -74,6 +74,7 @@
#container1{
float: left;
border: 1px solid white;
background-color: orange;
width: 100%;
height: 120%;
}
......@@ -83,14 +84,16 @@
background-color: rgb(102, 219, 180);
font-weight: bold;
width: 100%;
height: 120%;
height: 100%;
}
#container3{
float: right;
border: 1px solid white;
background-color: gainsboro;
margin-right:5%;
width: 40%;
height: 200%;
}
......
......@@ -7,6 +7,14 @@
"gender": "male",
"height": "1",
"weight": "1"
},
{
"ID": "harry",
"password": "1234",
"age": "20",
"gender": "male",
"height": "160",
"weight": "60"
}
]
}
\ No newline at end of file
......
......@@ -174,14 +174,14 @@ helper.getCurrentWeatherByCityName("Seoul", (err, currentWeather) => {
var cal = jresult.calories;
var user = db.get('users').find({ID:sID}).value();
var bmi = user.weight/(user.height*user.height/100/100);
var ccc = container.L(`<h2>칼로리 : ${cal}kcal`,`<p style="margin-left: 10%">"Weather NOW"</p>
var ccc = container.L(`<h2 style="margin-left: 10%">칼로리 : ${cal}kcal`,`<p style="margin-left: 10%">"Weather NOW"</p>
<p id="w1" style="margin-left: 10%">도시 = ${city}</p>
<p id="w3" style="margin-left: 10%">현재온도 = ${temper}(+" ℃")</p>
<span id="w2" style="margin-left: 10%">현재날씨 = ${weather}</span>
<span id="w4" style="margin-left: 10%">날씨상세 = ${detweather}</span>
<br><br>
<span id="w5" style="margin-left: 10%">바람 = ${wind}(+"m/s")</span>
<span id="w6" style="margin-left: 10%">구름 = ${cloud} (+"%")</span>`,`<h2>bmi: ${bmi}</h2>`)
<span id="w6" style="margin-left: 10%">구름 = ${cloud} (+"%")</span>`,`<h2 style="margin-left: 10%">bmi: ${bmi}</h2>`)
var html = template.HTML(title,ch,``,body,`#logout{
position:absolute;
right: 20ch;
......
{"cookie":{"originalMaxAge":null,"expires":null,"httpOnly":true,"path":"/"},"__lastAccess":1559837072152,"is_logined":true,"ID":"harry"}
\ No newline at end of file