~metalune/simplytranslate_web

86597f47301c067e6b977bca00e0f8c829f60ef5 — metalune 5 months ago f17057d
Add info.html
4 files changed, 51 insertions(+), 3 deletions(-)

M main.py
A static/info.css
M templates/index.html
A templates/info.html
M main.py => main.py +5 -0
@@ 100,5 100,10 @@ async def index():
        use_text_fields=use_text_fields
    )

@app.route("/info", methods=["GET"])
async def info():
    return await render_template("info.html")


if __name__ == "__main__":
    app.run()

A static/info.css => static/info.css +4 -0
@@ 0,0 1,4 @@
body {
    max-width: 800px;
    margin: 0 auto;
}

M templates/index.html => templates/index.html +2 -3
@@ 9,7 9,6 @@
        {{ lang_option(lang_name, current_lang) }}
    {% endfor %}
{% endmacro %}

<html>
    <head>
        <title>SimplyTranslate</title>


@@ 84,9 83,9 @@
        <br>
        <br>
        <br>

        
        <footer>
              <a href="https://git.sr.ht/~metalune/simplytranslate_web">Source for this Website</a>
            <a href="/info">Info</a>
        </footer>
    </body>
</html>

A templates/info.html => templates/info.html +40 -0
@@ 0,0 1,40 @@
<!DOCTYPE html>
<html>
    <head>
        <title>SimplyTranslate - Info</title>
        <link rel="stylesheet" href="/static/info.css">
        <meta name="description" content="Experience simple and private Google translations">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta charset="UTF-8">
    </head>

    <body>
        <h2>SimplyTranslate</h2>
        <a href="https://git.sr.ht/~metalune/simplytranslate_web">Source Code</a>

        <h3>About</h3>
        <p>SimplyTranslate is part of the Simple Web project.</p>
        <p>We aim to provide fast and private translations to the user without wasting much overhead for extensive styling or JavaScript</p>
        <p>The interface is designed to be fully compatible with all kinds of web browsers, including text-based ones.</p>

        <h3>Contact & Support</h3>
        <p>You can contact us and give feedback/get support here:</p>
        <a href="https://webchat.freenode.net/?channel=#simple-web">#simple-web on Freenode</a>

        <h3>Main Contributors</h3>
        <ul>
            <li>fattalion</li>
            <li>yyp</li>
            <li>metalune</li>
        </ul>

        <h3>Other Projects Like This</h3>
        <ul>
            <li><a href="https://gtranslate.metalune.xyz">gtranslate</a> - <a href="https://git.sr.ht/~yerinalexey/gtranslate">Source Code</a></li>
        </ul>
        <br>
        <br>

        <a href="/">Back To The Translator</a>
    </body>
</html>