Toggle navigation
Toggle navigation
This project
Loading...
Sign in
구희연
/
Food_recipe_info
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Heeyeon
2021-12-07 20:46:58 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
78fbef509a628e9b4263dc6012a5c930dad23d1d
78fbef50
2 parents
b256d819
fdaabc0a
git pull origin master --allow-unrelated-histories
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
3 deletions
index.js
main/main.css
main/main.html
sessions/A22iC4gAA-1NUQMPBZUCEEr9SzGd_bbJ.json
index.js
View file @
78fbef5
...
...
@@ -38,7 +38,11 @@ passport.deserializeUser(function(id, done) { //읽기
//첫 페이지
app
.
get
(
'/'
,(
req
,
res
)
=>
{
<<<<<<<
HEAD
let
page
=
getFirstPage
(
' 오늘뭐먹지'
,
'아직도 먹는게<br>고민된다면..?'
,
authInfo
(
req
));
=======
let
page
=
getFirstPage
(
'Welcome!'
,
'Food Recipe'
,
authInfo
(
req
));
>>>>>>>
fdaabc0a001fe31ed43809b64f9073ff18fd1db6
res
.
send
(
page
);
});
...
...
@@ -395,6 +399,7 @@ const getLoginButton = (auth) =>{
//첫 페이지 화면
const
getFirstPage
=
(
title
,
content
,
auth
)
=>
{
<<<<<<<
HEAD
return
`
<!DOCTYPE html>
<html lang="en">
...
...
@@ -539,4 +544,77 @@ const getFirstPage =(title, content, auth) =>{
</body>
</html>
`
;
}
\ No newline at end of file
}
=======
return
`
<!DOCTYPE html>
<html lang="en">
<head>
<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>Passport Example</title>
<style>
body{
height: 100vh;
background-image: url('https://images.unsplash.com/photo-1614548539924-5c1f205b3747?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background-attachment: scroll;
}
h1 {
position: absolute;
left: 50%;
top: 30%;
transform: translate(-50%, -30%);
text-align: center;
font-size: 5em;
font-family: cursive;;
}
p {
position: relative;
left: 50%;
top: 47%;
transform: translate(-50%, -47%);
font-size: 3em;
text-align: center;
}
div {
position: relative;
font-size: 1.3em;
text-align: center;
}
.box1{
position: relative;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.box2{
position: relative;
left: 50%;
top: 54%;
transform: translate(-50%, -54%);
}
</style>
</head>
<body>
<h1>
${
title
}
</h1>
<p>
${
content
}
</p>
<div class="box1">
${
auth
}
</div>
<div class="box2">
<input type="button" value="레시피 보러가기" onClick="movepage()"/>
</div>
<script type="text/javascript">
function movepage(){
location.href="main";
}</script>
</body>
</html>
`
;
}
>>>>>>>
fdaabc0a001fe31ed43809b64f9073ff18fd1db6
...
...
main/main.css
View file @
78fbef5
...
...
@@ -69,4 +69,8 @@ section{
font-size
:
4rem
;
color
:
black
;
margin-bottom
:
30px
;
}
\ No newline at end of file
<<<<<<<
HEAD
}
=======
}
>>>>>>>
fdaabc0a001fe31ed43809b64f9073ff18fd1db6
...
...
main/main.html
View file @
78fbef5
...
...
@@ -30,4 +30,8 @@
<script
type=
"module"
src=
"https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src=
"https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"
></script>
</body>
</html>
\ No newline at end of file
<<<<<<
< HEAD
</
html
>
=======
</html>
>>>>>>> fdaabc0a001fe31ed43809b64f9073ff18fd1db6
...
...
sessions/A22iC4gAA-1NUQMPBZUCEEr9SzGd_bbJ.json
0 → 100644
View file @
78fbef5
{
"cookie"
:{
"originalMaxAge"
:
null
,
"expires"
:
null
,
"httpOnly"
:
true
,
"path"
:
"/"
},
"flash"
:{
"error"
:[
"Missing username or password."
,
"Missing username or password."
]},
"__lastAccess"
:
1638672404811
}
\ No newline at end of file
Please
register
or
login
to post a comment