aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader
diff options
context:
space:
mode:
authorPjotr Prins2020-05-29 11:00:08 -0500
committerPjotr Prins2020-05-29 11:00:08 -0500
commit92fa550c6edfeb9acc9a5cbc31c0c272f8703898 (patch)
treebd2ade8b9331a3ec0211d2af99d0bd39f1a4ed7d /bh20simplewebuploader
parent50a9933a997e468db3343023a580308b28edc653 (diff)
downloadbh20-seq-resource-92fa550c6edfeb9acc9a5cbc31c0c272f8703898.tar.gz
bh20-seq-resource-92fa550c6edfeb9acc9a5cbc31c0c272f8703898.tar.lz
bh20-seq-resource-92fa550c6edfeb9acc9a5cbc31c0c272f8703898.zip
Blog stuff
Diffstat (limited to 'bh20simplewebuploader')
-rw-r--r--bh20simplewebuploader/main.py2
-rw-r--r--bh20simplewebuploader/static/blog.css44
-rw-r--r--bh20simplewebuploader/templates/banner.html2
-rw-r--r--bh20simplewebuploader/templates/header.html5
4 files changed, 50 insertions, 3 deletions
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py
index 847e36b..81fe571 100644
--- a/bh20simplewebuploader/main.py
+++ b/bh20simplewebuploader/main.py
@@ -451,7 +451,7 @@ def blog_page():
buf = None;
if blog_content:
buf = get_html_body('doc/blog/'+blog_content+'.html')
- return render_template('blog.html',menu='BLOG',embed=buf)
+ return render_template('blog.html',menu='BLOG',embed=buf,blog=blog_content)
@app.route('/about')
diff --git a/bh20simplewebuploader/static/blog.css b/bh20simplewebuploader/static/blog.css
new file mode 100644
index 0000000..145bada
--- /dev/null
+++ b/bh20simplewebuploader/static/blog.css
@@ -0,0 +1,44 @@
+.title { font-family: Lucida Sans Typewriter,Lucida Console,monaco,Bitstream Vera Sans Mono,monospace }
+.table-of-contents { font-family: monospace; color: red; }
+/* .text-table-of-contents { font-family: monospace; color: black; font-size:80%; } */
+.timestamp { font-family: monospace; color: darkgreen; }
+
+h1,h2 { font-family: Lucida Sans Typewriter,Lucida Console,monaco,Bitstream Vera Sans Mono,monospace; color:black;background-color:#F0F8FF; }
+h2,h3,h4 { color: darkblue; }
+code { color: darkblue; }
+body {font-family: Palatino, 'Palatino Linotype', serif; color:black;background-color:#e5d8f0; font-size: large }
+
+div.verbatim { margin: 30px; color: black; background-color: white; border-style:outset; font-family: palatino font, monospace; font-size:80%; font-weight:bold; }
+div.quote { font-family: palatino font, monospace; font-size:80%; }
+div.quotation { font-family: palatino font, monospace; font-size:80%; }
+pre.example { font-family: prestige, monospace; color:black; font-size:70%; background-color: lightyellow; }
+pre.src { margin: 30px; font-family: prestige, monospace; font-weight: bold; color:white; font-size:80%; background-color: black; }
+
+div[id="text-table-of-contents"]{
+ font-family: palatino font, monospace; background-color:white;
+ border-style: dotted;
+ border-color: #98bf21;
+ border-width: 1px;
+}
+div[class^="outline-text"] {
+ background-color:#ebe6f0;
+ border-style: dotted;
+ border-color: #98bf21;
+ border-width: 1px;
+ font-family: Palatino, 'Palatino Linotype', serif; color:black; font-size: large
+}
+span[class="todo TESTING"] {
+ color:purple;
+}
+span[class="todo IN_PROGRESS"] {
+ color:brown;
+}
+span[class^="section-number"] {
+ color:grey;
+}
+span[class="journal"] {
+ color:darkblue;
+}
+span[class="year"] {
+ color:darkred;
+}
diff --git a/bh20simplewebuploader/templates/banner.html b/bh20simplewebuploader/templates/banner.html
index 3e2ee9d..8f2b09a 100644
--- a/bh20simplewebuploader/templates/banner.html
+++ b/bh20simplewebuploader/templates/banner.html
@@ -1,6 +1,6 @@
<section class="header">
<div class="logo"><a href="http://covid-19.genenetwork.org/"><img src="static/image/coronasmallcomp.gif" width="150" title="COVID-19 image by Tyler Morgan-Wall"></a></div>
- <h1>Web uploader for Public SARS-CoV-2 Sequence Resource</h1>
+ <h1>COVID-19 PubSeq: Public SARS-CoV-2 Sequence Resource</h1>
<p>Database contains <span id="Counter"></span> public sequences!</p>
diff --git a/bh20simplewebuploader/templates/header.html b/bh20simplewebuploader/templates/header.html
index 0c06f62..6e326ee 100644
--- a/bh20simplewebuploader/templates/header.html
+++ b/bh20simplewebuploader/templates/header.html
@@ -3,6 +3,9 @@
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<link href="/static/main.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Web uploader for Public SARS-CoV-2 Sequence Resource</title>
+ <title>COVID-19 PubSeq: Public SARS-CoV-2 Sequence Resource</title>
<script type="text/javascript" src="/static/main.js"></script>
+ {% if blog %}
+ <link rel="Blog stylesheet" type="text/css" href="/static/blog.css" />
+ {% endif %}
</head>