add glimmers

This commit is contained in:
Ellpeck 2018-07-28 11:22:20 +02:00
parent 122f2b7f44
commit 31c06c5988
4 changed files with 49 additions and 6 deletions

View file

@ -115,6 +115,34 @@
<img src="res/blobheart.png" id="blobheart"> <img src="res/blobheart.png" id="blobheart">
</div> </div>
<!-- Book -->
<div class="modal fade" id="book-modal" tabindex="-1">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Where to buy <em>Glimmers in the Shadow</em></h5>
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
There are a lot of different places where you can buy the book.
<p>
<br>On Lulu, I get a bigger profit than on the other sites, so if you want to support me financially, you should buy there:<br>
<a class="btn btn-info rounded-0" href="http://www.lulu.com/shop/julian-schubert/glimmers-in-the-shadow/paperback/product-23679000.html">Lulu</a>
</p>
<p>
If you want to buy the book conveniently, you can use a site from the list below that works best for you:<br>
<a class="btn btn-info rounded-0" href="https://www.amazon.de/Glimmers-Shadow-Julian-Schubert/dp/0244393176/">Amazon.de</a>
<a class="btn btn-info rounded-0" href="https://www.amazon.com/Glimmers-Shadow-Julian-Schubert/dp/0244393176/">Amazon.com</a>
<a class="btn btn-info rounded-0" href="https://www.amazon.co.uk/Glimmers-Shadow-Julian-Schubert/dp/0244393176/">Amazon.co.uk</a>
<a class="btn btn-info rounded-0" href="http://www.foyles.co.uk/witem/fiction-poetry/glimmers-in-the-shadow,julian-schubert-9780244393175">Foyles</a>
<br><em>Note that some other sites and places might also be available to buy the book from.</em>
</p>
</div>
</div>
</div>
</div>
<!-- Impressum --> <!-- Impressum -->
<div class="modal fade" id="impressum-modal" tabindex="-1"> <div class="modal fade" id="impressum-modal" tabindex="-1">
<div class="modal-dialog modal-lg"> <div class="modal-dialog modal-lg">

BIN
res/projects/glimmers.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View file

@ -1,11 +1,17 @@
$(function() { $(function() {
let openImp = function() { let openModals = function(hash) {
if (hash.length > 1) {
if (hash === '#impressum') {
$('#impressum-modal').modal('show'); $('#impressum-modal').modal('show');
} else if (hash === '#glimmers') {
$('#book-modal').modal('show');
} }
$('#impressum-button').on('click', openImp);
if (window.location.hash.includes('#impressum')) {
openImp();
} }
}
openModals(window.location.hash);
$('a').on('click', function() {
openModals($(this).attr('href'));
});
$('.navbar-collapse a').on('click', function() { $('.navbar-collapse a').on('click', function() {
$('.navbar-collapse').collapse('hide'); $('.navbar-collapse').collapse('hide');

View file

@ -8,6 +8,15 @@ const projects = [{
'status': 'In development', 'status': 'In development',
'icon': 'rb' 'icon': 'rb'
}, },
{
'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>',
'links': {
'Buy the Book': '#glimmers'
},
'status': 'Published',
'icon': 'glimmers'
},
{ {
'name': 'Actually Additions', 'name': 'Actually Additions',
'desc': 'Actually Additions is a rather popular Minecraft mod that I used to work on. It\'s become widely known in the modding community and has reached over 10 million downloads by now, which is crazy. I don\'t work on it anymore myself, but it\'s being maintained for current versions by someone else.', 'desc': 'Actually Additions is a rather popular Minecraft mod that I used to work on. It\'s become widely known in the modding community and has reached over 10 million downloads by now, which is crazy. I don\'t work on it anymore myself, but it\'s being maintained for current versions by someone else.',