Some visual improvements and also NA

This commit is contained in:
Ellpeck 2018-11-08 00:15:15 +01:00
parent 8277831995
commit e00314bda9
7 changed files with 34 additions and 15 deletions

View file

@ -63,7 +63,8 @@
'Why are you like this?', 'Why are you like this?',
'this is so sad alexa play despacito', 'this is so sad alexa play despacito',
'The server is at a loss for what you were trying to find', 'The server is at a loss for what you were trying to find',
'oh no :(' 'oh no :(',
'The world is quiet here.'
]; ];
let message = Math.floor(Math.random() * messages.length); let message = Math.floor(Math.random() * messages.length);

BIN
res/projects/na.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View file

@ -42,6 +42,10 @@ const questions = [{
'q': 'How did you make this site?', 'q': 'How did you make this site?',
'a': 'I made this page using <a href="https://getbootstrap.com/">Bootstrap</a>. The content is dynamically generated using JavaScript based on a bunch of JSON data. If you\'re curious about the (probably pretty messy) code, then you can check out the <a href="https://github.com/Ellpeck/Web">GitHub repository</a>.' 'a': 'I made this page using <a href="https://getbootstrap.com/">Bootstrap</a>. The content is dynamically generated using JavaScript based on a bunch of JSON data. If you\'re curious about the (probably pretty messy) code, then you can check out the <a href="https://github.com/Ellpeck/Web">GitHub repository</a>.'
}, },
{
'q': "What's your favorite ice cream?",
'a': 'Frozen yogurt.'
},
{ {
'q': 'Tabs or spaces?', 'q': 'Tabs or spaces?',
'a': (Math.random() >= 0.5 ? 'Tabs' : 'Spaces') + '.' 'a': (Math.random() >= 0.5 ? 'Tabs' : 'Spaces') + '.'

View file

@ -1,4 +1,10 @@
const projects = [{ const projects = [{
'name': "Nature's Aura",
'desc': "Nature's Aura is a new Minecraft mod about collecting, using and replenishing the Aura naturally present in the world to create useful devices and unique mechanics. It's currently not released yet, but the first public beta will be very soon.",
'status': 'In development',
'icon': 'na'
},
{
'name': 'Rock Bottom', 'name': 'Rock Bottom',
'desc': 'Rock Bottom is a game I\'ve been working on for a little more than a year now. It\'s a 2D-sidescrolling sandbox game with a storyline that has multiplayer support, a modding API and a lot more fun stuff. It\'s currently still in early development.', 'desc': 'Rock Bottom is a game I\'ve been working on for a little more than a year now. It\'s a 2D-sidescrolling sandbox game with a storyline that has multiplayer support, a modding API and a lot more fun stuff. It\'s currently still in early development.',
'links': { 'links': {
@ -18,15 +24,6 @@ const projects = [{
'status': 'Handed off', 'status': 'Handed off',
'icon': 'aa' 'icon': 'aa'
}, },
{
'name': 'Music',
'desc': 'As a little thing on the side, I started making some music. It\'s a lot of chiptune and similar stuff. I just started out, so I\'m not necessarily very good at it yet. If you\'re interested though, you should have a listen!',
'links': {
'SoundCloud': 'https://soundcloud.com/ellopecko'
},
'status': 'Side project',
'icon': 'music'
},
{ {
'name': 'Glimmers in the Shadow', 'name': 'Glimmers in the Shadow',
'desc': 'Glimmers in the Shadow is a book I\'ve been working on for a while. It contains stories and poems I wrote over the course of about two years. Here\'s the description from the cover:<br><em>It turns out that life as a human person isn\'t as easy as some people might lead you to believe. <br>During the last couple of years, my main way of dealing with negative feelings has been writing poems and stories as a way to understand my feelings or start thinking about something different." <br>This book is a collection of stories, poems, and personal anecdotes written by a teenager struggling with life. They go far beyond that, though: They\'re deep, weird, confusing, they\'re emotional. But together, they tell a story of a young person trying to understand the world.</em>', 'desc': 'Glimmers in the Shadow is a book I\'ve been working on for a while. It contains stories and poems I wrote over the course of about two years. Here\'s the description from the cover:<br><em>It turns out that life as a human person isn\'t as easy as some people might lead you to believe. <br>During the last couple of years, my main way of dealing with negative feelings has been writing poems and stories as a way to understand my feelings or start thinking about something different." <br>This book is a collection of stories, poems, and personal anecdotes written by a teenager struggling with life. They go far beyond that, though: They\'re deep, weird, confusing, they\'re emotional. But together, they tell a story of a young person trying to understand the world.</em>',
@ -78,8 +75,10 @@ for (project of projects) {
p += '<span class="text-muted project-status">' + project['status'] + '</span>'; p += '<span class="text-muted project-status">' + project['status'] + '</span>';
let links = project['links']; let links = project['links'];
for (let name in links) { if (links) {
p += '<a href="' + links[name] + '" class="card-link btn btn-outline-info rounded-0">' + name + '</a>'; for (let name in links) {
p += '<a href="' + links[name] + '" class="card-link btn btn-outline-info rounded-0">' + name + '</a>';
}
} }
p += '</div>'; p += '</div>';

View file

@ -9,6 +9,8 @@
Maroon 5 Maroon 5
The Script The Script
Poppy Poppy
IAMX
The Faint
*/ */
const quotes = [ const quotes = [
@ -78,6 +80,14 @@ const quotes = [
"Can't go a day without computer boy", "Can't go a day without computer boy",
"I don't care and I won't change myself", "I don't care and I won't change myself",
"I fell in love with the man of the future", "I fell in love with the man of the future",
"Baby, you're the highlight of my lowlife" "Baby, you're the highlight of my lowlife",
"I just wanna turn the lights on",
"I come with knives and agony",
"I drove through countries like a marching funeral",
"In the search of fools and utopia",
"Evil voices lie when they say you're alone",
"I walk with the noise",
"I need to surrender",
"Oh my god, you're beautiful"
]; ];
$('#quote-text').html('<em>' + quotes[Math.floor(Math.random() * quotes.length)] + '</em>'); $('#quote-text').html('<em>' + quotes[Math.floor(Math.random() * quotes.length)] + '</em>');

View file

@ -26,7 +26,7 @@ for (way of support) {
sp += '<a class="btn btn-light support-button rounded-0" href="' + way['link'] + '"><img src="res/support/' + way['icon'] + '.png" class="support-image" alt="">' + way['name'] + '</a>'; sp += '<a class="btn btn-light support-button rounded-0" href="' + way['link'] + '"><img src="res/support/' + way['icon'] + '.png" class="support-image" alt="">' + way['name'] + '</a>';
sp += '</div>'; sp += '</div>';
sp += '<div class="col">'; sp += '<div class="col support-desc">';
sp += way['desc']; sp += way['desc'];
sp += '</div>'; sp += '</div>';

View file

@ -110,7 +110,12 @@ body {
.card-link { .card-link {
margin-left: 0px !important; margin-left: 0px !important;
margin-right: 10px; margin-right: 20px;
margin-bottom: 20px;
}
.support-desc {
margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }