added SVG for upcoming and past read and repair events + css
@ -1,8 +1,6 @@
|
||||
from feedparser import parse
|
||||
|
||||
from csvparser.csvparser import getfieldsofinterest, getfullpublication
|
||||
|
||||
|
||||
feed = parse("http://varia.zone/en/feeds/all-en.rss.xml")
|
||||
|
||||
|
||||
@ -26,8 +24,9 @@ def rabbithole():
|
||||
entries = getentries()
|
||||
fieldsofinterest = getfieldsofinterest()
|
||||
for title, entry in entries.items():
|
||||
entry = entry.lower()
|
||||
for id, fields in fieldsofinterest.items():
|
||||
if [f for f in fields if(f in entry)]:
|
||||
if [f for f in fields if(f.lower() in entry)]:
|
||||
publicationinfo = getfullpublication(id)
|
||||
pubtitle = publicationinfo["Title"]
|
||||
print(
|
||||
|
16
library/static/css/bookmark.css
Normal file
@ -0,0 +1,16 @@
|
||||
#pastevents{
|
||||
position: fixed;
|
||||
top: -1em;
|
||||
right: 3em;
|
||||
height: 14em;
|
||||
}
|
||||
|
||||
#upcomingevents{
|
||||
position: fixed;
|
||||
top: -2.5em;
|
||||
right: 6em;
|
||||
height: 14em;
|
||||
}
|
||||
#pastevents:hover{
|
||||
z-index: 1;
|
||||
}
|
@ -71,6 +71,10 @@ body:after {
|
||||
color: black;
|
||||
}
|
||||
|
||||
#publication {
|
||||
margin-top: 3em;
|
||||
}
|
||||
|
||||
button {
|
||||
z-index: 10;
|
||||
border: 3px solid black;
|
||||
|
Before Width: | Height: | Size: 129 KiB |
Before Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 108 KiB |
Before Width: | Height: | Size: 105 KiB |
Before Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 121 KiB |
Before Width: | Height: | Size: 130 KiB |
Before Width: | Height: | Size: 133 KiB |
Before Width: | Height: | Size: 117 KiB |
73
library/static/svg/bookmark-past.svg
Normal file
@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
id="Capa_1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
width="197.81665"
|
||||
height="539.99939"
|
||||
viewBox="0 0 197.06678 537.95139"
|
||||
xml:space="preserve"
|
||||
sodipodi:docname="bookmark-past.svg"
|
||||
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"><metadata
|
||||
id="metadata11"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs9"><rect
|
||||
x="177.97797"
|
||||
y="223.17792"
|
||||
width="182.00249"
|
||||
height="193.39874"
|
||||
id="rect21" /></defs><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="956"
|
||||
inkscape:window-height="1041"
|
||||
id="namedview7"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.0725863"
|
||||
inkscape:cx="97.88594"
|
||||
inkscape:cy="268.97551"
|
||||
inkscape:window-x="2326"
|
||||
inkscape:window-y="18"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="Capa_1"
|
||||
inkscape:document-rotation="0"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0" />
|
||||
<g
|
||||
id="g4"
|
||||
transform="translate(-170.442,-5e-4)">
|
||||
<path
|
||||
d="M 346.164,0 H 191.939 c -11.857,0 -21.497,9.716 -21.497,21.497 v 505.894 c 0,11.857 6.12,14.076 13.617,4.896 0,0 56.304,-68.697 70.609,-87.822 14.306,-19.125 15.683,-21.268 32.972,0 17.365,21.268 66.938,87.363 66.938,87.363 7.191,9.41 12.929,7.496 12.929,-4.283 V 21.497 C 367.66,9.716 357.945,0 346.164,0 Z"
|
||||
fill="#dd4f77"
|
||||
id="path2" />
|
||||
</g>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
id="text19"
|
||||
style="font-size:42.6667px;line-height:1.25;font-family:unscii;-inkscape-font-specification:unscii;text-align:center;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect21);"
|
||||
x="57.5"
|
||||
y="0"
|
||||
transform="translate(-170.442,-5e-4)"><tspan
|
||||
x="232.94822"
|
||||
y="262.5111"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Carlito;-inkscape-font-specification:Carlito;fill:#ffffff">Past </tspan></tspan><tspan
|
||||
x="212.52112"
|
||||
y="317.84447"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Carlito;-inkscape-font-specification:Carlito;fill:#ffffff">Events</tspan></tspan></text></svg>
|
After Width: | Height: | Size: 2.8 KiB |
42
library/static/svg/bookmark-svgrepo-com.svg
Normal file
@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="537.953px" height="537.952px" viewBox="0 0 537.953 537.952" style="enable-background:new 0 0 537.953 537.952;"
|
||||
xml:space="preserve">
|
||||
<g>
|
||||
<path d="M346.164,0H191.939c-11.857,0-21.497,9.716-21.497,21.497v505.894c0,11.857,6.12,14.076,13.617,4.896
|
||||
c0,0,56.304-68.697,70.609-87.822c14.306-19.125,15.683-21.268,32.972,0c17.365,21.268,66.938,87.363,66.938,87.363
|
||||
c7.191,9.41,12.929,7.496,12.929-4.283V21.497C367.66,9.716,357.945,0,346.164,0z"/>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
<g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1006 B |
87
library/static/svg/bookmark-upcoming.svg
Normal file
@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
id="Capa_1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
width="197.81665"
|
||||
height="539.99939"
|
||||
viewBox="0 0 197.06678 537.95139"
|
||||
xml:space="preserve"
|
||||
sodipodi:docname="bookmark-upcoming.svg"
|
||||
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"><metadata
|
||||
id="metadata13"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs11"><rect
|
||||
x="207.04167"
|
||||
y="97.061699"
|
||||
width="111.52129"
|
||||
height="86.161156"
|
||||
id="rect17" /></defs><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1916"
|
||||
inkscape:window-height="1041"
|
||||
id="namedview9"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.0725863"
|
||||
inkscape:cx="-8.3621061"
|
||||
inkscape:cy="267.6066"
|
||||
inkscape:window-x="1366"
|
||||
inkscape:window-y="18"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="Capa_1"
|
||||
inkscape:document-rotation="0"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0" />
|
||||
<g
|
||||
id="g4"
|
||||
transform="translate(-170.442,-5e-4)">
|
||||
<path
|
||||
d="M 346.164,0 H 191.939 c -11.857,0 -21.497,9.716 -21.497,21.497 v 505.894 c 0,11.857 6.12,14.076 13.617,4.896 0,0 56.304,-68.697 70.609,-87.822 14.306,-19.125 15.683,-21.268 32.972,0 17.365,21.268 66.938,87.363 66.938,87.363 7.191,9.41 12.929,7.496 12.929,-4.283 V 21.497 C 367.66,9.716 357.945,0 346.164,0 Z"
|
||||
fill="#404d81"
|
||||
id="path2" />
|
||||
</g>
|
||||
<text
|
||||
xml:space="preserve"
|
||||
id="text15"
|
||||
style="font-size:40px;line-height:1.25;font-family:unscii;-inkscape-font-specification:unscii;letter-spacing:0px;word-spacing:0px;white-space:pre;shape-inside:url(#rect17);"
|
||||
transform="translate(-182.94372,-1.3642201)" /><text
|
||||
xml:space="preserve"
|
||||
style="font-size:42.6667px;line-height:1.25;font-family:unscii;-inkscape-font-specification:unscii;letter-spacing:0px;word-spacing:0px"
|
||||
x="98.764069"
|
||||
y="245.41867"
|
||||
id="text23"
|
||||
inkscape:transform-center-x="-22.440464"
|
||||
inkscape:transform-center-y="6.5100632"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan21"
|
||||
x="98.764069"
|
||||
y="245.41867"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.6667px;font-family:Carlito;-inkscape-font-specification:Carlito;text-align:center;text-anchor:middle;fill:#ffffff">Upcoming</tspan><tspan
|
||||
sodipodi:role="line"
|
||||
x="98.764069"
|
||||
y="300.75204"
|
||||
id="tspan25"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.6667px;font-family:Carlito;-inkscape-font-specification:Carlito;text-align:center;text-anchor:middle;fill:#ffffff">Read & </tspan><tspan
|
||||
sodipodi:role="line"
|
||||
x="98.764069"
|
||||
y="356.08542"
|
||||
id="tspan27"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:42.6667px;font-family:Carlito;-inkscape-font-specification:Carlito;text-align:center;text-anchor:middle;fill:#ffffff">Repair</tspan></text></svg>
|
After Width: | Height: | Size: 3.6 KiB |
@ -5,6 +5,7 @@
|
||||
<title>varia library zone</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/style.css')}}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/dropdown.css')}}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/bookmark.css')}}">
|
||||
</head>
|
||||
<body>
|
||||
<div id="cloud"></div>
|
||||
@ -16,6 +17,8 @@
|
||||
</filter>
|
||||
</svg>
|
||||
<h1 id="varia">VARIA LIBRARY COLLECTION</h1>
|
||||
<a href="/events"><img src="{{ url_for('static', filename='svg/bookmark-past.svg')}}" id="pastevents" /></a>
|
||||
<a href="upcoming"><img src="{{ url_for('static', filename='svg/bookmark-upcoming.svg')}}" id="upcomingevents" /></a>
|
||||
{% block main %}
|
||||
{% endblock main %}
|
||||
</body>
|
||||
|
0
library/templates/events.html
Normal file
@ -4,7 +4,7 @@
|
||||
<button id="leftmostbtn"><a href="/">All books</a></button>
|
||||
<button><a href="/upload">Upload</a></button>
|
||||
</div>
|
||||
<table>
|
||||
<table id="publication">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>Title of publication</td>
|
||||
|