Browse Source

Create single page just to ensure everything is working.

Lee Morgan 2 days ago
parent
commit
643e1232c8
4 changed files with 55 additions and 2 deletions
  1. 1 1
      app.js
  2. 31 0
      assets/logo.svg
  3. 2 1
      package.json
  4. 21 0
      routes/index.neovan

+ 1 - 1
app.js

@@ -2,6 +2,6 @@ import express from "express";
 import neovan from "neovan";
 import compression from "compression";
 
-const app = neovan(express);
+const app = await neovan(express);
 
 app.listen(8000);

+ 31 - 0
assets/logo.svg

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="280" height="200" viewBox="0 0 280 200">
+  <defs>
+    <linearGradient id="neongrad" x1="140" y1="37" x2="140" y2="163" gradientUnits="userSpaceOnUse">
+      <stop offset="0%" stop-color="#00FFCC" />
+      <stop offset="100%" stop-color="#00CC88" />
+    </linearGradient>
+    <filter id="neonglow" x="-50%" y="-50%" width="200%" height="200%">
+      <feDropShadow dx="0" dy="0" stdDeviation="3" flood-color="#00FFAA" flood-opacity="0.95"/>
+      <feDropShadow dx="0" dy="0" stdDeviation="7" flood-color="#00FFAA" flood-opacity="0.7"/>
+      <feDropShadow dx="0" dy="0" stdDeviation="12" flood-color="#00FFAA" flood-opacity="0.35"/>
+    </filter>
+  </defs>
+
+  <!-- Left bracket -->
+  <g filter="url(#neonglow)">
+    <path d="M 87 37 L 35 100 L 87 163" fill="none" stroke="url(#neongrad)" stroke-width="21" stroke-linecap="round" stroke-linejoin="round"/>
+    <path d="M 87 37 L 35 100 L 87 163" fill="none" stroke="#0a1111" stroke-width="6.5" stroke-linecap="round" stroke-linejoin="round"/>
+  </g>
+
+  <!-- Right bracket -->
+  <g filter="url(#neonglow)">
+    <path d="M 193 37 L 245 100 L 193 163" fill="none" stroke="url(#neongrad)" stroke-width="21" stroke-linecap="round" stroke-linejoin="round"/>
+    <path d="M 193 37 L 245 100 L 193 163" fill="none" stroke="#0a1111" stroke-width="6.5" stroke-linecap="round" stroke-linejoin="round"/>
+  </g>
+
+  <!-- Triangle -->
+  <g filter="url(#neonglow)">
+    <path d="M 140 48 L 99 135 L 181 135 Z" fill="#0a1111" stroke="url(#neongrad)" stroke-width="5.5" stroke-linejoin="round"/>
+  </g>
+</svg>

+ 2 - 1
package.json

@@ -11,7 +11,8 @@
   "type": "module",
   "main": "app.js",
   "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
+    "test": "echo \"Error: no test specified\" && exit 1",
+    "dev": "nodemon app.js --ext html,css,js,neovan"
   },
   "dependencies": {
     "compression": "^1.8.1",

+ 21 - 0
routes/index.neovan

@@ -0,0 +1,21 @@
+<contents>
+    <!DOCTYPE html>
+    <html lang="en">
+        <head>
+            <meta charset="utf-8">
+            <title>NeoVan</title>
+            <link rel="icon" href="/assets/logo.svg" type="image/svg+xml">
+        </head>
+        <body>
+            <img src="/assets/logo.svg" alt="NeoVan logo">
+            <h1>NeoVan</h1>
+        </body>
+    </html>
+<contents>
+
+<style>
+    body{
+        background: black;
+        color: pink;
+    }
+</style>