소스 검색

Update homepage, change default route for book

JoostSijm 6 년 전
부모
커밋
998e111a22
3개의 변경된 파일29개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 2
      app/flaskr.py
  2. 18 5
      app/static/index.html
  3. 10 1
      app/static/style.css

+ 1 - 2
app/flaskr.py

@@ -19,8 +19,7 @@ def index():
     return send_from_directory('static', 'index.html')
 
 
-@app.route("/tutorial", defaults={"document": "book"})
-@app.route("/tutorial/<document>.pdf")
+@app.route("/tutorial/<document>.pdf", defaults={"document": "book"})
 def tutorial_document(document):
     """Display tutorial document"""
     return send_from_directory('static', 'tutorial/%s.pdf' % document)

+ 18 - 5
app/static/index.html

@@ -9,16 +9,29 @@
 <body>
     <div class="page">
         <h1><a href="/">Rival Regions Tutorial</a></h1>
-        <p>In deze tutorial zijn de belangrijkste aspecten van het spel uitgelegd.</p>
+        <p>
+            Deze tutorial is voor beginnende en ervaren spelers van Rival Regions.
+        </p>
+        <p>
+            De tutorial is beschikbaar in twee verschillende varianten met beide dezelfde informatie.
+            Een pdf variant op a5 formaat en een in artekel variant.
+        </p>
         <h2>Downloads</h2>
+        <h3>PDF versie</h3>
         <ul>
-            <li><a href="/tutorial/book">Boek pdf</a></li>
-            <li><a href="/tutorial/article">Artikel pdf</a></li>
+            <li><a href="/tutorial/book.pdf">Boek PDF</a></li>
+            <li><a href="/tutorial/article.pdf">Artikel PDF</a></li>
+        </ul>
+        <h3>Afbeelding versie</h3>
+        <ul>
+            <li><a href="/tutorial/article.png">Artikel</a> -  met zwart tekst.</li>
+            <li><a href="/tutorial/dist.png">Artikel</a> - met witte tekst.</li>
         </ul>
         <h2>Repository</h2>
+        Help mee dit project te verbeteren:
         <ul>
-            <li><a href="https://git.craftbroec.nl/cb/rr_tutorial">Tutorial</a></li>
-            <li><a href="https://git.craftbroec.nl/cb/rr/">Website</a></li>
+            <li><a href="https://git.craftbroec.nl/cb/rr_tutorial">Tutorial</a> - Voor veranderingen aan de inhoud van het document.</li>
+            <li><a href="https://git.craftbroec.nl/cb/rr/">Website</a> - Voor verbeteringen aan deze website.</li>
         </ul>
     </div>
 </body>

+ 10 - 1
app/static/style.css

@@ -21,7 +21,6 @@ h3
 {
     font-family: 'STIX', serif;
     font-weight: normal;
-    font-size: 14pt;
 }
 
 h1
@@ -32,6 +31,16 @@ h1
     font-size: 34pt;
 }
 
+h2
+{
+    font-size: 16pt;
+}
+
+h3
+{
+    font-size: 14pt;
+}
+
 h1 a
 {
     text-decoration: none;