forked from anuragverma108/SwapReads
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fantasy.html
159 lines (150 loc) · 4.64 KB
/
fantasy.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fantasy Books</title>
<style>
body {
margin: 0;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
background-color: #ffb2a8; /* Light lavender background */
overflow-y: scroll;
scrollbar-width: thin;
scrollbar-color: #888 #f1f1f1;
cursor: default;
}
body::-webkit-scrollbar {
width: 12px;
}
body::-webkit-scrollbar-track {
background: #f1f1f1;
}
body::-webkit-scrollbar-thumb {
background-color: #888;
border-radius: 6px;
border: 3px solid #f1f1f1;
}
body::-webkit-scrollbar-thumb:hover {
background-color: #555;
}
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.book-card {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin: 15px;
padding: 20px;
width: 250px;
transition: transform 0.3s;
}
.book-card:hover {
transform: translateY(-5px);
}
.book-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
color: #333;
}
.book-author {
font-size: 14px;
color: #777;
margin-bottom: 15px;
}
</style>
</head>
<body>
<h1>Fantasy Books</h1>
<div class="card-container" id="bookCards">
<!-- Hardcoded book cards for Fantasy genre -->
<div class="book-card">
<p class="book-title">The Hobbit</p>
<p class="book-author">by J.R.R. Tolkien</p>
</div>
<div class="book-card">
<p class="book-title">Harry Potter and the Sorcerer's Stone</p>
<p class="book-author">by J.K. Rowling</p>
</div>
<div class="book-card">
<p class="book-title">A Game of Thrones</p>
<p class="book-author">by George R.R. Martin</p>
</div>
<div class="book-card">
<p class="book-title">The Name of the Wind</p>
<p class="book-author">by Patrick Rothfuss</p>
</div>
<div class="book-card">
<p class="book-title">The Way of Kings</p>
<p class="book-author">by Brandon Sanderson</p>
</div>
<div class="book-card">
<p class="book-title">Mistborn: The Final Empire</p>
<p class="book-author">by Brandon Sanderson</p>
</div>
<div class="book-card">
<p class="book-title">Good Omens</p>
<p class="book-author">by Neil Gaiman & Terry Pratchett</p>
</div>
<div class="book-card">
<p class="book-title">The Eye of the World</p>
<p class="book-author">by Robert Jordan</p>
</div>
<div class="book-card">
<p class="book-title">The Lies of Locke Lamora</p>
<p class="book-author">by Scott Lynch</p>
</div>
<div class="book-card">
<p class="book-title">Eragon</p>
<p class="book-author">by Christopher Paolini</p>
</div>
<div class="book-card">
<p class="book-title">The Priory of the Orange Tree</p>
<p class="book-author">by Samantha Shannon</p>
</div>
<div class="book-card">
<p class="book-title">The Once and Future King</p>
<p class="book-author">by T.H. White</p>
</div>
<div class="book-card">
<p class="book-title">The Witcher: The Last Wish</p>
<p class="book-author">by Andrzej Sapkowski</p>
</div>
<div class="book-card">
<p class="book-title">American Gods</p>
<p class="book-author">by Neil Gaiman</p>
</div>
<div class="book-card">
<p class="book-title">Uprooted</p>
<p class="book-author">by Naomi Novik</p>
</div>
<div class="book-card">
<p class="book-title">Stardust</p>
<p class="book-author">by Neil Gaiman</p>
</div>
<div class="book-card">
<p class="book-title">The Blade Itself</p>
<p class="book-author">by Joe Abercrombie</p>
</div>
<div class="book-card">
<p class="book-title">His Dark Materials: The Golden Compass</p>
<p class="book-author">by Philip Pullman</p>
</div>
<div class="book-card">
<p class="book-title">The Poppy War</p>
<p class="book-author">by R.F. Kuang</p>
</div>
<div class="book-card">
<p class="book-title">The Black Prism</p>
<p class="book-author">by Brent Weeks</p>
</div>
</div>
</body>
</html>