From a2dc10db39ce0021ad4edb794a497ff0ea37bd4a Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sat, 28 Apr 2018 23:04:34 -0400 Subject: [PATCH] Added about and source download --- SmearcarDB/server.py | 3 ++- SmearcarDB/static/index.css | 2 +- SmearcarDB/templates/index.html | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SmearcarDB/server.py b/SmearcarDB/server.py index 4ff2abc..e9689a4 100644 --- a/SmearcarDB/server.py +++ b/SmearcarDB/server.py @@ -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/", 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) diff --git a/SmearcarDB/static/index.css b/SmearcarDB/static/index.css index 4f5b711..a695080 100644 --- a/SmearcarDB/static/index.css +++ b/SmearcarDB/static/index.css @@ -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; diff --git a/SmearcarDB/templates/index.html b/SmearcarDB/templates/index.html index 84099c5..f62c174 100644 --- a/SmearcarDB/templates/index.html +++ b/SmearcarDB/templates/index.html @@ -101,8 +101,9 @@
-
-

Currently in progress!

+
+

About

+

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 Github.