Initial commit

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2022-01-16 18:45:00 +01:00
commit 71c14cae9d
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
3 changed files with 107 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.output/

58
data.json Normal file
View file

@ -0,0 +1,58 @@
{
"books": [
{
"title": "The Bands of Mourning",
"author": "Brandon Sanderson",
"year": 2016,
"pages": 336,
"isbn": "9781466862678",
"startDate": "2022-01-14",
"endDate": null
},
{
"title": "Shadows of Self",
"author": "Brandon Sanderson",
"year": 2015,
"pages": 384,
"isbn": "9781466862661",
"startDate": "2020-02-06",
"endDate": "2022-01-13"
},
{
"title": "The Alloy of Law",
"author": "Brandon Sanderson",
"year": 2011,
"pages": 336,
"isbn": "9781429994897",
"startDate": "2020-01-30",
"endDate": "2020-02-06"
},
{
"title": "The Hero of Ages",
"author": "Brandon Sanderson",
"year": 2008,
"pages": 576,
"isbn": "9781429960304",
"startDate": "2020-01-23",
"endDate": "2020-01-29"
},
{
"title": "The Well of Ascension",
"author": "Brandon Sanderson",
"year": 2007,
"pages": 592,
"isbn": "9781429961813",
"startDate": "2018-08-01",
"endDate": "2020-01-23"
},
{
"title": "The Final Empire",
"author": "Brandon Sanderson",
"year": 2006,
"pages": 544,
"isbn": "9781429914567",
"startDate": "2016-09-18",
"endDate": "2018-08-01"
}
]
}

48
templates/index.html Normal file
View file

@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style></style>
</head>
<body>
<header>
<h1>My book list</h1>
<p>This page lists all books that I've read since I started tracking them.</p>
</header>
<main>
<table>
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Year</th>
<th>Pages</th>
<th>Started</th>
<th>Finished</th>
</tr>
</thead>
<tbody>
{% for book in books %}
<tr>
<td>{{book.title}}</td>
<td>{{book.author}}</td>
<td>{{book.year}}</td>
<td>{{book.pages}}</td>
<td>{{book.startDate}}</td>
<td>{{book.endDate}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</main>
<footer>
Hello World! {{GIT_COMMIT}}
</footer>
</body>
</html>