Lee Morgan il y a 1 an
Parent
commit
782d917d1c
4 fichiers modifiés avec 15 ajouts et 0 suppressions
  1. 1 0
      routes/other.js
  2. 6 0
      views/index.css
  3. 5 0
      views/index.html
  4. 3 0
      views/logo.svg

+ 1 - 0
routes/other.js

@@ -2,4 +2,5 @@ export default (app)=>{
     app.get("/", (req, res)=>res.sendFile(`${global.cwd}/views/index.html`));
     app.get("/index.js", (req, res)=>res.sendFile(`${global.cwd}/views/build/index.js`));
     app.get("/index.css", (req, res)=>res.sendFile(`${global.cwd}/views/build/index.css`));
+    app.get("/logo.svg", (req, res)=>res.sendFile(`${global.cwd}/views/logo.svg`));
 }

+ 6 - 0
views/index.css

@@ -25,6 +25,12 @@
     background: var(--dark);
 }
 
+.logo{
+    position: absolute;
+    top: 5px;
+    left: 5px;
+}
+
 #notifier{
     position: fixed;
     bottom: 15px;

+ 5 - 0
views/index.html

@@ -5,8 +5,13 @@
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>Workout Tracker</title>
     <link rel="stylesheet" href="/index.css">
+    <link rel="icon" href="/logo.svg" type="image/svg+xml">
 </head>
 <body>
+    <svg class="logo" width="90" height="60" viewBox="10 20 80 50">
+      <path d="M10,40 Q25,20 50,30 Q75,40 90,30 Q75,50 50,60 Q25,70 10,60 Q25,50 10,40" fill="#D7263D">
+    </svg>
+
     <p id="notifier" style="display:none">Some message here</p>
 
     <div id="registerPage" class="page">

+ 3 - 0
views/logo.svg

@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="90" height="60" viewBox="10 20 80 50">
+  <path d="M10,40 Q25,20 50,30 Q75,40 90,30 Q75,50 50,60 Q25,70 10,60 Q25,50 10,40" fill="#D7263D"/>
+</svg>