actual links and images

This commit is contained in:
Lio 2020-10-05 21:24:30 +02:00
parent 1ffd50975d
commit 76a8ebfc68
11 changed files with 21 additions and 27 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 KiB

36
c.js
View file

@ -11,44 +11,38 @@ const name = "ALEX HELDT";
const socials = [ const socials = [
{ {
name: "twitch", name: "twitch",
link: "https://twitter.com/abisoos", link: "https://twitch.tv/alexheldtmusic",
icon: icons["Twitch"], icon: icons["Twitch"],
}, },
{ {
name: "twitter", name: "twitter",
link: "https://twitter.com/abisoos", link: "https://twitter.com/alexheldtmusic",
icon: icons["Twitter"], icon: icons["Twitter"],
}, },
{ {
name: "instagram", name: "instagram",
link: "https://twitter.com/abisoos", link: "https://instagr.am/alexheldtmusic",
icon: icons["Instagram"], icon: icons["Instagram"],
}, },
]; ];
const music = [ const music = [
{ {
id: "rumorsremix", id: "rumorsrrmx",
shown: "Rumors Remix", name: "Rumors Remix",
image: "/assets/images/serrated.jpg", image: "/assets/images/rumorsrmx_cover.JPG",
link: "https://soundcloud.com/abisoos/overdrive", link: "https://ffm.to/dd3kjja",
},
{
id: "blowfishrmx",
name: "Blowfish Boyfriend Remix",
image: "/assets/images/blowfishrmx.jpg",
link: "https://ffm.to/blowfishbfremix.owe",
}, },
{ {
id: "serrated", id: "serrated",
shown: "Serrated", name: "Serrated",
image: "/assets/images/serrated.jpg", image: "/assets/images/serrated.jpg",
link: "https://soundcloud.com/abisoos/overdrive", link: "https://ffm.to/serrated",
},
{
id: "overdrive3",
shown: "Serrated",
image: "/assets/images/serrated.jpg",
link: "https://soundcloud.com/abisoos/overdrive",
},
{
id: "overdrive4",
shown: "Serrated",
image: "/assets/images/serrated.jpg",
link: "https://soundcloud.com/abisoos/overdrive",
}, },
]; ];

View file

@ -6,7 +6,7 @@ const cors = require("cors");
const morgan = require("morgan"); const morgan = require("morgan");
const chalk = require("chalk"); const chalk = require("chalk");
const hbs = require("express-handlebars"); const hbs = require("express-handlebars");
const { dev, music, port, socials, name } = require("./c"); const { dev, allMusic, music, port, socials, name } = require("./c");
const redis = require("ioredis"); const redis = require("ioredis");
const { promisify } = require("util"); const { promisify } = require("util");
@ -72,8 +72,8 @@ app.get("/", async (req, res) => {
socials, socials,
music, music,
creator: { creator: {
name: await r.get("creator_name") || 'lio', name: (await r.get("creator_name")) || "lio",
website: await r.get("creator_website") || "https://himbo.cat", website: (await r.get("creator_website")) || "https://himbo.cat",
}, },
}); });
}); });
@ -84,7 +84,7 @@ socials.forEach((social) => {
}); });
// ! MUSIC LINKS // ! MUSIC LINKS
music.forEach((item) => { allMusic.forEach((item) => {
app.get(`/${item.id}`, (req, res) => res.redirect(item.link)); app.get(`/${item.id}`, (req, res) => res.redirect(item.link));
}); });

View file

@ -18,9 +18,9 @@
<div class="music"> <div class="music">
{{#each music}} {{#each music}}
<div class="song"> <div class="song">
<a href="{{../protocol}}://{{../host}}/{{id}}"><img src="{{image}}" alt="{{shown}} Cover Art"></a> <a href="{{../protocol}}://{{../host}}/{{id}}"><img src="{{image}}" alt="{{name}} Cover Art"></a>
<a href="{{../protocol}}://{{../host}}/{{id}}" class="title"> <a href="{{../protocol}}://{{../host}}/{{id}}" class="title">
{{shown}} {{name}}
</a> </a>
</div> </div>
{{/each}} {{/each}}