From 17236b2405bfe1695c42bae3a3d37fdf73f6ef93 Mon Sep 17 00:00:00 2001 From: ry Date: Thu, 20 Feb 2020 20:38:22 +0100 Subject: [PATCH] testing stuff --- assets/css/main.css | 11 +++++++++-- assets/css/main.css.map | 2 +- assets/css/main.sass | 10 +++++++--- server.js | 10 ++++++++++ views/index.hbs | 15 +++++++++++---- 5 files changed, 38 insertions(+), 10 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index 14cdd3f..c7cf218 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -6,7 +6,6 @@ * { margin: 0; padding: 0; - padding-cursor: pointer; } body { @@ -24,7 +23,7 @@ iframe { } .socials { - font-size: 4vh; + font-size: 3vh; left: 0; line-height: 4vh; letter-spacing: 15px; @@ -44,6 +43,14 @@ iframe { color: #a865ff81; } +a .socials { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -ms-flex-pack: distribute; + justify-content: space-around; +} + .logo { width: auto; height: 10vh; diff --git a/assets/css/main.css.map b/assets/css/main.css.map index ed42aa2..06dcd88 100644 --- a/assets/css/main.css.map +++ b/assets/css/main.css.map @@ -1,6 +1,6 @@ { "version": 3, - "mappings": "AAAA,UAAU;EACN,WAAW,EAAE,QAAQ;EACrB,GAAG,EAAE,2CAA2C;;;AAGpD,AAAA,CAAC,CAAC;EACD,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;EACP,cAAM,EAAE,OAAO;CAAK;;AAGxB,AAAA,IAAI,CAAC;EACD,WAAW,EAAE,oBAAoB;EACjC,gBAAgB,EAAE,+BAA+B;EACjD,eAAe,EAAE,KAAK;EACtB,qBAAqB,EAAE,KAAK;EAC5B,mBAAmB,EAAE,MAAM;EAC3B,iBAAiB,EAAE,SAAS;EAC5B,cAAc,EAAE,SAAS;CAAG;;AAEhC,AAAA,MAAM,CAAC;EACH,MAAM,EAAE,mBAAmB;CAAG;;AAElC,AAAA,QAAQ,CAAC;EACL,SAAS,EAAE,GAAG;EACd,IAAI,EAAE,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AAE,GAAG;EACT,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,IAAI;EACZ,WAAW,EAAE,KAAK;CAAG;;AAGzB,AAAA,QAAQ,CAAC;EACL,SAAS,EAAE,KAAK;EAChB,KAAK,EAAE,KAAK;EACZ,UAAU,EAAE,MAAM;EAClB,OAAO,EAAE,aAAa;EACtB,OAAO,EAAE,GAAG;EACZ,QAAQ,EAAE,QAAQ;EAClB,GAAG,EAAE,GAAG;CAAG;;AAGf,AAAA,QAAQ,CAAC,CAAC,CAAC;EACH,eAAe,EAAE,IAAI;EACrB,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;EACV,KAAK,EAAE,OAAO;CAAG;;AAEzB,AAAA,QAAQ,CAAC,CAAC,AAAA,MAAM,CAAC;EACb,KAAK,EAAE,SAAS;CAAG;;AAEvB,AAAA,KAAK,CAAC;EACF,KAAK,EAAE,IAAI;EACX,MAAM,EAAE,IAAI;EACZ,WAAW,EAAE,KAAK;CAAG;;AAGzB,AAAA,SAAS,CAAC;EACN,cAAc,EAAE,QAAQ;EACxB,kBAAkB,EAAE,EAAE;EACtB,yBAAyB,EAAE,QAAQ;EACnC,yBAAyB,EAAE,WAAW;CAAG;;AAE7C,UAAU,CAAV,QAAU;EACN,IAAI;IACA,SAAS,EAAE,iBAAkB;;EACjC,GAAG;IACC,SAAS,EAAE,kBAAkB;;EACjC,EAAE;IACE,SAAS,EAAE,iBAAkB", "sources": [ "main.sass" ], diff --git a/assets/css/main.sass b/assets/css/main.sass index cea854b..c85e030 100644 --- a/assets/css/main.sass +++ b/assets/css/main.sass @@ -6,7 +6,6 @@ * margin: 0 padding: 0 - cursor: pointer body @@ -22,7 +21,7 @@ iframe margin: 1.5% 1.5% 1.5% 1.5% .socials - font-size: 4vh + font-size: 3vh left: 0 line-height: 4vh letter-spacing: 15px @@ -40,6 +39,12 @@ iframe color: #a865ff81 +a + .socials + display: flex + justify-content: space-around + + .logo width: auto height: 10vh @@ -62,7 +67,6 @@ iframe top: 95% - .creator a text-decoration: none margin: 0 diff --git a/server.js b/server.js index 75fd20e..d308a88 100644 --- a/server.js +++ b/server.js @@ -49,6 +49,11 @@ app.use( }) ); +function breakSocials(social) { + // if (typeof social !== String) throw new Error('This social media is not a string :eyes:') + return social.split('') +} + module.exports = async =>{ app.get('/', async (req, res) => { res.render('index', { @@ -58,18 +63,23 @@ module.exports = async =>{ social: [{ name: 'Twitter', link: 'twitter.com/yaisor', + character: breakSocials('Twitter') }, { name: 'Soundcloud', link: 'soundcloud.com/yaisor', + character: breakSocials('Soundcloud') }, { name: 'Patreon', link: 'patreon.com/sorsor', + character: breakSocials('Patreon') }, { name: 'Bandcamp', link: 'sorsor.bandcamp.com/', + character: breakSocials('bandcamp') }, { name: 'Youtube', link: 'youtube.com/sorsor', + character: breakSocials('youtube') }, { name: 'Discord', diff --git a/views/index.hbs b/views/index.hbs index ba483d5..6651dc5 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -1,15 +1,22 @@
-
+
Sor's Icon

{{#each social}} - + {{/each}}
+
- +
@@ -17,5 +24,5 @@
-

made by wrwlf.co

+

wrwlf.co