Skip to content

Commit 57fc84d

Browse files
committed
Added 2023 books
1 parent 03dbf4b commit 57fc84d

File tree

3 files changed

+46
-21
lines changed

3 files changed

+46
-21
lines changed

src/pages/Books.vue

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
<h2 class="subtext">Yearly Target: 52 Books</h2>
44
<p class="subtext">Blog: <a href="https://kavishandbooks.wordpress.com/" target="_blank">Kavish and Books</a></p>
55
<BookSection
6-
:year="'2022'"
7-
:bookCount="'(' + bookNames2022.length + '/52)'"
8-
:books="bookNames2022"
6+
v-for="(booksList, index) in books.slice().reverse()"
7+
:key="2017 + books.length - 1 - index"
8+
:year="2017 + books.length - 1 - index"
9+
:bookCount="'(' + booksList.length + '/52)'"
10+
:books="booksList"
911
:apiKey="apiKey"
10-
:initialShowBooks="true"
12+
:initialShowBooks="index == 0"
1113
/>
12-
<BookSection
14+
<!-- <BookSection
1315
:year="'2021'"
1416
:bookCount="'(' + bookNames2021.length + '/52)'"
1517
:books="bookNames2021"
@@ -38,12 +40,13 @@
3840
:bookCount="'(' + bookNames2017.length + '/52)'"
3941
:books="bookNames2017"
4042
:apiKey="apiKey"
41-
/>
43+
/> -->
4244
</div>
4345
</template>
4446

4547
<script>
4648
import BookSection from '../components/Books/BookSection.vue';
49+
import bookList2023 from '../resources/books/bookList2023.txt';
4750
import bookList2022 from '../resources/books/bookList2022.txt';
4851
import bookList2021 from '../resources/books/bookList2021.txt';
4952
import bookList2020 from '../resources/books/bookList2020.txt';
@@ -58,24 +61,22 @@ export default {
5861
},
5962
data() {
6063
return {
61-
bookNames2022: [],
62-
bookNames2021: [],
63-
bookNames2020: [],
64-
bookNames2019: [],
65-
bookNames2018: [],
66-
bookNames2017: [],
64+
books: [],
6765
};
6866
},
6967
components: {
7068
BookSection,
7169
},
7270
mounted() {
73-
this.bookNames2022 = bookList2022.split('\n');
74-
this.bookNames2021 = bookList2021.split('\n');
75-
this.bookNames2020 = bookList2020.split('\n');
76-
this.bookNames2019 = bookList2019.split('\n');
77-
this.bookNames2018 = bookList2018.split('\n');
78-
this.bookNames2017 = bookList2017.split('\n');
71+
this.books = [
72+
bookList2017.split('\n'),
73+
bookList2018.split('\n'),
74+
bookList2019.split('\n'),
75+
bookList2020.split('\n'),
76+
bookList2021.split('\n'),
77+
bookList2022.split('\n'),
78+
bookList2023.split('\n'),
79+
];
7980
},
8081
};
8182
</script>

src/pages/Home.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<div class="about-container">
66
<div class="about">
77
<h1>About Me</h1>
8-
<h2>Drinking Coffee since 2015</h2>
98
<h2>Software Engineer since 2016</h2>
109
<h2>Reading since 2017</h2>
11-
<h2>Blogging since 2018</h2>
12-
<h2>Stuck Inside since COVID-19</h2>
10+
<h2>Blogged between 2018-2020</h2>
11+
<h2>Gaming since 2020</h2>
12+
<h2>Cat-Dad since 2021</h2>
1313
</div>
1414
</div>
1515
</div>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
The 100-Year-Old Man Who Climbed Out the Window and Disappeared
2+
Dongri To Dubai
3+
The Well of Ascension 0765316889
4+
The Hitchhikers Guide to the Galaxy Douglas Adams
5+
This Wicked Fate
6+
The Restaurant At the End of the Universe Douglas Adams
7+
The Left Hand of Darkness
8+
Reaper Man
9+
The Dragon Republic
10+
Can't Spell Treason Without Tea
11+
Life, the Universe and Everything
12+
Vagina: A Re-education
13+
The Hero of Ages
14+
The War of the Worlds 9781496500373
15+
The Vine Witch
16+
Noble Roots 9798439182701
17+
Stone Blind
18+
The Burning God
19+
Winnie-the-Pooh
20+
The Island of Doctor Moreau
21+
Labyrinth Kate Mosse
22+
Words of Radiance
23+
Heroes 9781405940382
24+
Babel: An Arcane History

0 commit comments

Comments
 (0)