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 = [
{
name: "twitch",
link: "https://twitter.com/abisoos",
link: "https://twitch.tv/alexheldtmusic",
icon: icons["Twitch"],
},
{
name: "twitter",
link: "https://twitter.com/abisoos",
link: "https://twitter.com/alexheldtmusic",
icon: icons["Twitter"],
},
{
name: "instagram",
link: "https://twitter.com/abisoos",
link: "https://instagr.am/alexheldtmusic",
icon: icons["Instagram"],
},
];
const music = [
{
id: "rumorsremix",
shown: "Rumors Remix",
image: "/assets/images/serrated.jpg",
link: "https://soundcloud.com/abisoos/overdrive",
id: "rumorsrrmx",
name: "Rumors Remix",
image: "/assets/images/rumorsrmx_cover.JPG",
link: "https://ffm.to/dd3kjja",
},
{
id: "blowfishrmx",
name: "Blowfish Boyfriend Remix",
image: "/assets/images/blowfishrmx.jpg",
link: "https://ffm.to/blowfishbfremix.owe",
},
{
id: "serrated",
shown: "Serrated",
name: "Serrated",
image: "/assets/images/serrated.jpg",
link: "https://soundcloud.com/abisoos/overdrive",
},
{
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",
link: "https://ffm.to/serrated",
},
];

View file

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

View file

@ -18,9 +18,9 @@
<div class="music">
{{#each music}}
<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">
{{shown}}
{{name}}
</a>
</div>
{{/each}}