Explorar el Código

Add card to home page for currency.

Lee Morgan hace 4 años
padre
commit
69440b3b13
Se han modificado 3 ficheros con 7 adiciones y 0 borrados
  1. 1 0
      routes.js
  2. BIN
      views/images/currency.jpeg
  3. 6 0
      views/main/index.html

+ 1 - 0
routes.js

@@ -37,6 +37,7 @@ module.exports = function(app){
     app.get("/images/bitchute", (req, res)=>{res.sendFile(`${views}/images/bitchute.png`)});
     app.get("/images/rumble", (req, res)=>{res.sendFile(`${views}/images/rumble.png`)});
     app.get("/images/covid", (req, res)=>{res.sendFile(`${views}/images/covid.jpeg`)});
+    app.get("/images/currency", (req, res)=>res.sendFile(`${views}/images/currency.jpeg`));
 
     //SUDOKU
     app.get("/sudoku", visit, (req, res)=>{res.sendFile(`${views}/sudoku/index.html`)});

BIN
views/images/currency.jpeg


+ 6 - 0
views/main/index.html

@@ -173,6 +173,12 @@
                     <img src="/images/covid" alt="Covid-19">
                     <p>View live data about Covid-19</p>
                 </a>
+
+                <a class="card" href="/currency">
+                    <h2>Currency Collection</h2>
+                    <img src="/images/currency" alt="Dolla Dolla Bill Y'all">
+                    <p>Database of my collection of currency</p>
+                </a>
             </div>
 
             <div id="blog" style="display:none;">