Skip to content

Commit 97be9f2

Browse files
committed
Book titles
1 parent db921fd commit 97be9f2

File tree

7 files changed

+65
-19
lines changed

7 files changed

+65
-19
lines changed

src/App.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
brownfooter: $route.name === 'AoC',
2525
}"
2626
>
27-
<p>Designed & developed by <a href="https://twitter.com/kavisherlock">Kavish</a></p>
27+
<p>Designed & developed by <a href="https://twitter.com/kavisherlock" target="_blank">Kavish</a></p>
2828
<p class="credit">
29-
Glitchy buttons in the header based on <a href="https://codepen.io/jh3y/pen/PoGbxLp">
29+
Glitchy buttons in the header based on <a href="https://codepen.io/jh3y/pen/PoGbxLp" target="_blank">
3030
https://codepen.io/jh3y/pen/PoGbxLp
3131
</a>
3232
</p>
@@ -41,7 +41,7 @@ export default {
4141
name: 'app',
4242
data() {
4343
return {
44-
tabs: ['Books', 'Work', 'AoC'],
44+
tabs: ['Books', 'Work'],
4545
apiKey: 'AIzaSyBj6pwMyPi8NVKBybSPJ3WWwGfx3__Nr4I',
4646
};
4747
},
@@ -91,7 +91,7 @@ export default {
9191
footer {
9292
text-align: center;
9393
padding: 10px 0 40px 0;
94-
min-width: 480px;
94+
min-width: 500px;
9595
height: 70px;
9696
background: hsla(292, 38%, 92%, 50%);
9797
color: hsl(331, 86%, 75%);

src/components/Books/Book.vue

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<transition enter-active-class="bouncein" leave-active-class="bounceout">
33
<div class="book" v-if="this.imageThumbnail">
44
<img :src='this.imageThumbnail' :alt='this.bookTitle' />
5+
<div class="overlay">{{ this.bookName.replace(/\b[A-Z0-9]{5,}\b/g, '') }}</div>
56
</div>
67
</transition>
78
</template>
@@ -54,6 +55,7 @@ export default {
5455

5556
<style scoped>
5657
.book {
58+
position: relative;
5759
text-align: center;
5860
width: auto;
5961
height: 190px;
@@ -63,6 +65,27 @@ export default {
6365
height: 190px;
6466
}
6567
68+
.overlay {
69+
position: absolute;
70+
top: 0;
71+
left: 0;
72+
background: rgba(0, 0, 0, 0.7);
73+
color: white;
74+
display: flex;
75+
justify-content: center;
76+
align-items: center;
77+
width: auto;
78+
padding: 2rem 0.5rem;
79+
margin-left: 1px;
80+
text-align: center;
81+
opacity: 0;
82+
transition: opacity 0.3s ease;
83+
}
84+
85+
.book:hover .overlay {
86+
opacity: 1;
87+
}
88+
6689
.bouncein {
6790
animation: bouncein 0.8s linear both;
6891
}

src/components/Books/BookSection.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
</div>
2424
</transition>
2525
</div>
26+
<div v-if=showBooks>
27+
<!-- eslint-disable-next-line -->
28+
<p>Disclaimer: The book images above are the first image result from a Google Books Search call on the book title, and therefore might not match the actual book I read</p>
29+
<p>Hover/Click the books to display the actual title</p>
30+
</div>
2631
<br />
2732
</div>
2833
</template>
@@ -88,6 +93,11 @@ export default {
8893
animation: rollin 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
8994
}
9095
96+
p {
97+
margin-bottom: -5px;
98+
color: hsl(212, 51%, 31%);
99+
}
100+
91101
@keyframes rollin {
92102
0% {
93103
opacity: 0;

src/pages/Books.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<template>
22
<div class="books-container">
33
<h2 class="subtext">Yearly Target: 52 Books</h2>
4-
<p class="subtext">Old Blog: <a href="https://kavishandbooks.wordpress.com/" target="_blank">Kavish and Books</a></p>
4+
<p class="subtext">
5+
<a href="https://app.thestorygraph.com/profile/kabbagepatch/" target="_blank">StoryGraph</a>,&nbsp;
6+
<a href="https://www.goodreads.com/user/show/88782158-kavi" target="_blank">Goodreads</a>
7+
</p>
8+
<p class="subtext">Blog: <a href="https://kavibooks.wordpress.com/" target="_blank">Kavi's Books</a></p>
59
<BookSection
610
v-for="(booksList, index) in books.slice().reverse()"
711
:key="2017 + books.length - 1 - index"
@@ -71,6 +75,6 @@ export default {
7175
7276
p.subtext {
7377
margin-top: -10px;
74-
margin-bottom: 30px;
78+
margin-bottom: 10px;
7579
}
7680
</style>

src/pages/Home.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<h1>About Me</h1>
88
<h2>Software Engineer since 2016</h2>
99
<h2>Reading since 2017</h2>
10-
<h2>Blogging since 2018 <span class='subtext'>(on hiatus)</span></h2>
10+
<h2>Blogging since 2018</h2>
1111
<h2>Gaming since 2020</h2>
1212
<h2>Have a Cat since 2021</h2>
13-
<h2>Watercoloring since 2023</h2>
13+
<h2>Making Art since 2023</h2>
1414
</div>
1515
</div>
1616
</div>
@@ -95,7 +95,7 @@ export default {
9595
margin-left: 100px;
9696
}
9797
98-
.about h2:nth-child(3), .about h2:nth-child(5) {
98+
.about h2:nth-child(3), .about h2:nth-child(5), .about h2:nth-child(7) {
9999
margin-left: 200px;
100100
}
101101
}
@@ -116,7 +116,7 @@ export default {
116116
margin-left: 150px;
117117
}
118118
119-
.about h2:nth-child(3), .about h2:nth-child(5) {
119+
.about h2:nth-child(3), .about h2:nth-child(5), .about h2:nth-child(7) {
120120
margin-left: 250px;
121121
}
122122
}
@@ -146,7 +146,7 @@ export default {
146146
width: 350px;
147147
}
148148
149-
.about h2:nth-child(3), .about h2:nth-child(5) {
149+
.about h2:nth-child(3), .about h2:nth-child(5), .about h2:nth-child(7) {
150150
margin-left: 250px;
151151
}
152152
}
@@ -160,7 +160,7 @@ export default {
160160
margin-left: 100px;
161161
}
162162
163-
.about h2:nth-child(3), .about h2:nth-child(5) {
163+
.about h2:nth-child(3), .about h2:nth-child(5), .about h2:nth-child(7) {
164164
margin-left: 180px;
165165
}
166166
}

src/pages/Work.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
class="repo"
4444
:repo="myRepos.filter(repo => repo.name.toLowerCase().includes('jumptorecipe'))[0]"
4545
/>
46+
<repo
47+
class="repo"
48+
:repo="myRepos.filter(repo => repo.name.toLowerCase().includes('feather'))[0]"
49+
/>
4650
</repo-section>
4751
<repo-section title="Old Projects">
4852
<h3>Machine Learning</h3>

src/resources/books/bookList2025.txt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
Tress of the Emerald Sea 9781938570346
22
One Night at the Call Center
3-
The Fellowship of the Ring 9780007322497
3+
The Fellowship of the Ring by JRR Tolkien 9780007322497
44
The Grim Steeper
5-
Rogue Protocol
6-
The Bees Laline Paull
7-
Road to Ruin Hana Lee
5+
Rogue Protocol by Martha Wells
6+
The Bees by Laline Paull
7+
Road to Ruin by Hana Lee
88
The Will of the Many 9781982141172
99
Purrder She Wrote
10-
11/22/63 9781451660807
11-
Before They Are Hanged
12-
Oathbringer 076532637X
10+
2001 A Space Odyssey 0143111574
11+
The Two Towers by JRR Tolkien
12+
Oathbringer by Brandon Sanderson 076532637X
13+
Foundation by Isaac Asimov 9780553293357
14+
Dark Days by Derek Landy
15+
Dawnshard by Brandon Sanderson
16+
The Dollmakers by Lynn Buchanan
17+
Exit Strategy Martha Wells

0 commit comments

Comments
 (0)