diff --git a/library/csvparser/csvparser.py b/library/csvparser/csvparser.py
index 5fb9c96..7c91346 100644
--- a/library/csvparser/csvparser.py
+++ b/library/csvparser/csvparser.py
@@ -5,6 +5,7 @@ import csv
import os
script_dir = os.path.dirname(__file__)
+image_dir = os.path.abspath(os.path.join(script_dir, "../static/images"))
def parsecsv():
@@ -23,17 +24,27 @@ def getpublications():
year = row["Year"]
if not year:
year = "Unknown"
+
pubinfo = {
"Title": row["Publication"],
"Author": row["Author"],
"Type": row["Type"].lower().title(),
"Year": year,
"License": row["LicenseShort"].lower().title(),
+ "Image": hasimage(row["Id"])
}
publications[row["Id"]] = pubinfo
return publications
+def hasimage(id):
+ image_file = os.path.join(image_dir, "image-{0}.jpg".format(id))
+ if os.path.exists(image_file):
+ return True
+ else:
+ return False
+
+
def gettypes():
libcsv = open(os.path.join(script_dir, "varlib.csv"), "r")
with libcsv:
diff --git a/library/static/css/dropdown.css b/library/static/css/dropdown.css
index 78512cb..2f8906c 100644
--- a/library/static/css/dropdown.css
+++ b/library/static/css/dropdown.css
@@ -9,6 +9,10 @@
background-color: #62b264;
}
+#leftmostbtn{
+ margin-left: 1em;
+}
+
.show {
display: block;
}
diff --git a/library/static/css/style.css b/library/static/css/style.css
index 7d05912..4bed702 100644
--- a/library/static/css/style.css
+++ b/library/static/css/style.css
@@ -6,10 +6,8 @@ html, body {
body:after {
font-size: .8em;
background-color: #EB4377;
- /*color: rgba(223, 183, 180, .3);*/
position: fixed;
width: 100%;
- bottom: 1em;
text-align: center;
}
@@ -30,7 +28,7 @@ body:after {
#varia {
line-height: 1.03em;
- position: absolute;
+ position: relative;
top: 10%;
left: 50%;
transform: translate(-50%, -50%);
@@ -39,20 +37,38 @@ body:after {
font-size: 60px;
text-align: center;
font-family: alphaClouds;
- mix-blend-mode: exclusion;
+ mix-blend-mode: exclusion;
+ margin: 30px 0;
}
+
@supports (-webkit-text-stroke: 1px lightpink) {
#varia {
-webkit-text-stroke: 1px lightpink;
}
}
+
.container {
margin 0 auto;
}
-#leftmostbtn{
- margin-left: 1em;
+#bookshelf {
+ max-width: 90%;
+ margin-top: 3em;
+ display: block;
+ columns: 30rem;
+ gap: 1rem;
}
+
+#bookshelf > div {
+ width: 100%;
+ break-inside: avoid;
+ margin: 10px auto;
+}
+
+#bookshelf > div > a {
+ color: black;
+}
+
button {
z-index: 10;
border: 3px solid black;
@@ -70,9 +86,11 @@ table {
border-spacing: 0;
border-collapse: collapse;
}
+
tr {
margin: 0;
}
+
td {
margin:0;
padding: 0.5em;
@@ -81,3 +99,10 @@ td {
border: 1px solid black;
background-color: #f1f1f1;
}
+.tdimage {
+ padding: 0
+}
+.tdimage > img {
+ width: 100%;
+ height: 100%;
+}
diff --git a/library/static/images/image-11.jpg b/library/static/images/image-11.jpg
new file mode 100644
index 0000000..89a5390
Binary files /dev/null and b/library/static/images/image-11.jpg differ
diff --git a/library/static/images/image-16.jpg b/library/static/images/image-16.jpg
new file mode 100644
index 0000000..f18bd97
Binary files /dev/null and b/library/static/images/image-16.jpg differ
diff --git a/library/static/images/image-2.jpg b/library/static/images/image-2.jpg
new file mode 100644
index 0000000..34daf86
Binary files /dev/null and b/library/static/images/image-2.jpg differ
diff --git a/library/static/images/image-22.jpg b/library/static/images/image-22.jpg
new file mode 100644
index 0000000..0d4b057
Binary files /dev/null and b/library/static/images/image-22.jpg differ
diff --git a/library/static/images/image-42.jpg b/library/static/images/image-42.jpg
new file mode 100644
index 0000000..ff95f19
Binary files /dev/null and b/library/static/images/image-42.jpg differ
diff --git a/library/static/images/image-5.jpg b/library/static/images/image-5.jpg
new file mode 100644
index 0000000..41a89bb
Binary files /dev/null and b/library/static/images/image-5.jpg differ
diff --git a/library/static/images/image-60.jpg b/library/static/images/image-60.jpg
new file mode 100644
index 0000000..65d6931
Binary files /dev/null and b/library/static/images/image-60.jpg differ
diff --git a/library/static/images/image-7.jpg b/library/static/images/image-7.jpg
new file mode 100644
index 0000000..afe27c0
Binary files /dev/null and b/library/static/images/image-7.jpg differ
diff --git a/library/static/images/image-8.jpg b/library/static/images/image-8.jpg
new file mode 100644
index 0000000..1907d26
Binary files /dev/null and b/library/static/images/image-8.jpg differ
diff --git a/library/templates/index.html b/library/templates/index.html
index e879dfe..0003e20 100644
--- a/library/templates/index.html
+++ b/library/templates/index.html
@@ -4,12 +4,32 @@
{% include 'menu.html' %}
-