|
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 | 7 | <title>FoodMeets</title>
|
8 |
| - <link rel="icon" type="image/x-icon" href="/images/favicon.ico"> |
| 8 | + <link rel="icon" type="image/x-icon" href="/images/favicon.ico" /> |
9 | 9 | <meta charset="UTF-8" />
|
10 | 10 | <meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
11 | 11 | <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
83 | 83 | <link href="/css/styles.css" rel="stylesheet" />
|
84 | 84 | </head>
|
85 | 85 | <body class="font-mono bg-gray-400">
|
86 |
| - <nav x-data="{show:false}" class="flex items-center justify-between flex-wrap bg-orange-600 p-6"> |
| 86 | + <nav |
| 87 | + x-data="{show:false}" |
| 88 | + class="flex items-center justify-between flex-wrap bg-orange-600 p-6" |
| 89 | + > |
87 | 90 | <div class="flex items-center flex-shrink-0 text-white mr-6">
|
88 | 91 | <span class="font-semibold text-xl tracking-tight">FoodMeets</span>
|
89 | 92 | </div>
|
90 | 93 | <div class="block md:hidden">
|
91 |
| - <button @click="show=!show" class="flex items-center px-3 py-2 border rounded text-gray-100 border-gray-200 hover:text-white hover:border-white"> |
92 |
| - <svg class="fill-current h-3 w-3" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"/></svg> |
| 94 | + <button |
| 95 | + @click="show=!show" |
| 96 | + class="flex items-center px-3 py-2 border rounded text-gray-100 border-gray-200 hover:text-white hover:border-white" |
| 97 | + > |
| 98 | + <svg |
| 99 | + class="fill-current h-3 w-3" |
| 100 | + viewBox="0 0 20 20" |
| 101 | + xmlns="http://www.w3.org/2000/svg" |
| 102 | + > |
| 103 | + <title>Menu</title> |
| 104 | + <path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z" /> |
| 105 | + </svg> |
93 | 106 | </button>
|
94 | 107 | </div>
|
95 |
| - <div @click.away="show = false" :class="{ 'block': show, 'hidden': !show }" class="w-full block flex-grow md:flex md:justify-end md:w-auto"> |
| 108 | + <div |
| 109 | + @click.away="show = false" |
| 110 | + :class="{ 'block': show, 'hidden': !show }" |
| 111 | + class="w-full block flex-grow md:flex md:justify-end md:w-auto" |
| 112 | + > |
96 | 113 | <div>
|
97 |
| - <a href="/trendingRecipes" class="block md:inline-block text-lg px-4 py-2 leading-none rounded text-white border-white hover:border-transparent hover:text-orange-500 hover:bg-white mt-4 md:mt-0">Popular</a> |
98 |
| - <a href="/" class="block md:inline-block text-lg px-4 py-2 leading-none rounded text-orange border-white hover:border-transparent bg-white mt-4 md:mt-0">Home</a> |
| 114 | + <a |
| 115 | + href="/trendingRecipes" |
| 116 | + class="block md:inline-block text-lg px-4 py-2 leading-none rounded text-white border-white hover:border-transparent hover:text-orange-500 hover:bg-white mt-4 md:mt-0" |
| 117 | + >Popular</a |
| 118 | + > |
| 119 | + <a |
| 120 | + href="/" |
| 121 | + class="block md:inline-block text-lg px-4 py-2 leading-none rounded text-orange border-white hover:border-transparent bg-white mt-4 md:mt-0" |
| 122 | + >Home</a |
| 123 | + > |
99 | 124 | </div>
|
100 | 125 | </div>
|
101 | 126 | </nav>
|
|
105 | 130 | <div class="flex flex-col items-center justify-start">
|
106 | 131 | <button
|
107 | 132 | id="downloadBtn"
|
108 |
| - class="bg-orange-400 hover:bg-orange-700 text-white font-semibold py-2 px-4 ml-500 p-3 mt-3 rounded focus:outline-none focus:shadow-outline" |
| 133 | + class="bg-orange-400 hover:bg-orange-700 text-white font-bold py-2 px-4 ml-500 p-3 mt-3 rounded focus:outline-none focus:shadow-outline inline-flex items-center" |
109 | 134 | >
|
110 |
| - Download as PDF |
| 135 | + <svg |
| 136 | + class="fill-current w-4 h-4 mr-2" |
| 137 | + xmlns="http://www.w3.org/2000/svg" |
| 138 | + viewBox="0 0 20 20" |
| 139 | + > |
| 140 | + <path d="M13 8V2H7v6H2l8 8 8-8h-5zM0 18h20v2H0v-2z" /> |
| 141 | + </svg> |
| 142 | + <span>Download</span> |
111 | 143 | </button>
|
112 | 144 |
|
113 | 145 | <div class="container" id="meals">
|
114 | 146 | <div class="left-side">
|
115 | 147 | <img src="<%= image %>" alt="Recipe Image" class="profile-image" />
|
| 148 | + <form action="/savedRecipe" , method="post"> |
| 149 | + <input type="hidden" name="name" value="<%= title %>" /> |
| 150 | + <input type="hidden" name="image" value="<%= image %>" /> |
| 151 | + <input type="hidden" name="id" value="<%= id %>" /> |
| 152 | + <input type="hidden" name="time" value="<%= readyInMinutes %>" /> |
| 153 | + <div class="flex flex-col items-center justify-start"> |
| 154 | + <button |
| 155 | + type="submit" |
| 156 | + class="bg-blue-400 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline inline-flex items-center" |
| 157 | + > |
| 158 | + <span>Save</span> |
| 159 | + </button> |
| 160 | + </div> |
| 161 | + </form> |
116 | 162 | <h1><strong><%= title %></strong></h1>
|
117 | 163 | <h2><strong>Ready In Minutes: <%= readyInMinutes %></strong></h2>
|
118 | 164 | <h2><strong>Nutritional information</strong></h2>
|
|
164 | 210 | </div>
|
165 | 211 | </div>
|
166 | 212 |
|
167 |
| - <form action="/savedRecipe", method="post"> |
168 |
| - <input type="hidden" name="name" value="<%= title %>"> |
169 |
| - <input type="hidden" name="image" value="<%= image %>"> |
170 |
| - <input type="hidden" name="id" value="<%= id %>"> |
171 |
| - <input type="hidden" name="time" value="<%= readyInMinutes %>"> |
172 |
| - <button type="submit">Saved</button> |
173 |
| - </form> |
174 |
| - |
175 | 213 | <script
|
176 | 214 | src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"
|
177 | 215 | integrity="sha512-GsLlZN/3F2ErC5ifS5QtgpiJtWd43JWSuIgh7mbzZ8zBps+dvLusV+eNQATqgA/HdeKFVgA5v3S/cIrLF7QnIg=="
|
|
0 commit comments