From 03bb41927d742ac905b6a560e26ab40395d8dcff Mon Sep 17 00:00:00 2001 From: Creuzdos Date: Sun, 8 Mar 2020 15:32:53 +0000 Subject: [PATCH] Upload files to 'css' --- css/index.html | 29 +++++++++++++++++++++++++++++ css/index.js | 15 +++++++++++++++ css/styles.css | 19 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 css/index.html create mode 100644 css/index.js create mode 100644 css/styles.css diff --git a/css/index.html b/css/index.html new file mode 100644 index 0000000..833f45d --- /dev/null +++ b/css/index.html @@ -0,0 +1,29 @@ + + + + + + + SoundBox du Channel Ultime + + + + + + + + + +

SoundBox du Channel Ultime

+
+
+
{{son.replace(".mp3","")}}
+ +
+
+ + + + diff --git a/css/index.js b/css/index.js new file mode 100644 index 0000000..c181de0 --- /dev/null +++ b/css/index.js @@ -0,0 +1,15 @@ +const express = require('express'); +const fs = require('fs'); +let app = express(); +app.use(express.static('.')); +app.get('/', function(request, response){ + response.sendFile('index.html'); +}); + +app.get('/Sounds', function(request, response){ + const dir = fs.readdirSync('./Sounds'); + response.send(dir); + //console.log(dir); +}); + +app.listen(3000); diff --git a/css/styles.css b/css/styles.css new file mode 100644 index 0000000..14f6c47 --- /dev/null +++ b/css/styles.css @@ -0,0 +1,19 @@ +h1{ + text-align: center; +} + +.son{ + /*border: 1px solid #FF0000; + background-color: #45ccbb;*/ +} + +audio{ + display: block; + min-height: 40px; + margin: auto; +} + +.titre{ + text-align: center; + font-weight: bold; +}