diff --git a/README.md b/README.md index cb96f8c..c917d42 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,6 @@ TODO: 2. Upload 3. Auth + +Credit: +- Samuel Thornton: [Material Design Box Shadows]("https://codepen.io/sdthornton/pen/wBZdXq") diff --git a/index.js b/index.js index 8ec08f5..1c76d29 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,14 @@ + + + const express = require('express') const bodyParser = require('body-parser') +const path = require('path') + const port = 8080; app = express() +//const DIR=JSON.parse() app.use(bodyParser.urlencoded({extended:false})) app.use(bodyParser.json()) @@ -16,7 +22,7 @@ app.post('/files/ls',(req,res)=>{ console.log("Request attempted") }) -app.get('/',express.static('static')); +app.get( '/*', express.static( path.join(__dirname,'static') ) ); app.all('*',(req,res)=>{ res.status(404).json({'error':404}); @@ -24,5 +30,5 @@ app.all('*',(req,res)=>{ }) app.listen(port,()=>{ - console.log(`Listening:${port}`) + console.log(`Listening : ${port}`) }) diff --git a/settings.json b/settings.json new file mode 100644 index 0000000..1317708 --- /dev/null +++ b/settings.json @@ -0,0 +1,6 @@ +{ + "dirname":"./", + "sqlFileName":"test.db", + "showHidden":false, + "authToUpload":false +} \ No newline at end of file diff --git a/static/base.css b/static/base.css new file mode 100644 index 0000000..bf54b7b --- /dev/null +++ b/static/base.css @@ -0,0 +1,70 @@ +body{ + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + background-color:#c5c0c0; + margin: 0%; +} +.container{ + padding:0.5rem; + /*display: flex;*/ +} +.navbar-container{ + /* Primary color */ + background-color: #2196f3; + height:2.5rem; +} + +.content{ + padding:0.5rem; + border-radius: 0.25rem; + width:50%; + max-width: 70rem; + margin:0.5rem auto 0.5rem auto; + background-color: aliceblue; +} + +.nav-bottom-container{ + position: fixed; + bottom:0; + width:100%; +} + +.nav-bottom{ + background-color:aliceblue; + + + padding:0.5rem; + height: 1.5rem; + width:100%; + +} +.nav-bottom-button-container{ + width:100%; + text-align: right; +} +.nav-bottom-button{ + margin-bottom: 0.5rem; + margin-right:0.5rem; + margin-left: auto; + /* Button - Secondary color */ + background-color:royalblue; + border:0; + border-radius: 5em; + color:white; + font-size: 2; +} + +.nav-bottom-pad{ + height:1.5rem; + margin-top:0.5rem; +} + + +.box-shadow-1{ + box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); +} +.box-shadow-2{ + box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); +} +.box-shadow-3{ + box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); +} \ No newline at end of file diff --git a/static/index.html b/static/index.html index c398097..989d8e5 100644 --- a/static/index.html +++ b/static/index.html @@ -1,9 +1,38 @@
+Lorem ipsum dolor
+ +