Added about and source download

This commit is contained in:
Kenneth Jao 2018-04-28 23:04:34 -04:00
parent a4b8237b85
commit a2dc10db39
3 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
from flask import Flask
from flask import render_template, jsonify, request
from flask_sqlalchemy import SQLAlchemy
from flask import send_file
import datetime
import os
@ -154,7 +155,7 @@ def initial():
@app.route("/server/<lang_id>", methods=["GET"])
def file_return(lang_id):
try:
return send_file('source/' + lang_id)
return send_file('files/' + lang_id)
except Exception as e:
return str(e)

View File

@ -217,7 +217,7 @@ a {
}
.card > p {
margin: 2vh 0 2vh 4vh;
margin: 2vh 2vh 2vh 4vh;
font-size: 2.2vh;
font-weight: 300;
grid-column: 1 / 4;

View File

@ -101,8 +101,9 @@
</div>
</div>
<div id="about" class="optionContainer">
<div class="temp card">
<h2>Currently in progress!</h2>
<div class="card">
<h2>About</h2>
<p>Smearcar-db is an online database which compares languages and the relative frequencies of their component phonemes. This information can be referenced through the provided sources. The database can be downloaded for further analysis using the "Database and Files" tab. This website is licensed under the GNU GPLv3 license and its source can be found at <a href="https://github.com/yamanq/smearcar-db.git" target="_blank">Github</a>.</p>
</div>
</div>
</div>