This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
display_recipe.html
130 lines (115 loc) · 2.37 KB
/
display_recipe.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-image: url("images/1.jpg");
background-attachment: fixed;
}
.layer {
background-color: rgba(255, 254, 236, 0.7);
background-size: cover;
background-clip: padding-box;
padding: 15px;
}
.button {
margin: auto;
background-color: #F3DBA4;
border: none;
color: black;
padding: 12px 24px;
display: block;
text-align: center;
font-size: 18px;
font: helvetica;
cursor: default;
width: 200px;
margin-bottom: 8px;
}
.button:hover {
background-color: rgb(231, 193, 139);
}
.center {
font-family: helvetica;
font-size: 18px;
position: absolute;
vertical-align: middle;
text-align: center;
overflow: hidden;
margin-top: 4px;
margin-left: 50%;
margin-right: 50%;
width: 60%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, 0%);
}
.top-center {
margin: 0;
font-family: helvetica;
position: absolute;
text-align: center;
vertical-align: middle;
overflow: hidden;
top: 0%;
left: 50%;
margin-right: -50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, 0%);
}
.recipe-name {
text-align: center;
margin-bottom: 4px;
font-size: 40px;
color: rgb(150, 1, 28);
}
.title {
font-size: 20px;
color: black;
}
</style>
</head>
<body class="center" style="overflow: auto;">
<br>
<br>
<div class="layer">
<div class="recipe-name" id='recipename'>
<br>
</div>
<div class="title" id="img">
<br>
<br>
</div>
<div class="title" id='origin'>
<br>
</div>
<div class="title" id='prep'>
<br>
</div>
<div class="title" id='course'>
<br>
</div>
<div class="title" id='ingredients'>
<br>
</div>
<div class="title" id='directions'>
<br>
</div>
</div>
<br>
<br>
<button class="button" onclick="printFunction()">Print this recipe</button>
<button class="button" id = "redirect">Back</button>
</div>
<!-- trying to add print function -->
<script>
function printFunction() {
window.print();
}
</script>
<!-- end of print function -->
</div>
<script>
require('./display_recipe.js');
</script>
</body>
</html>