mirror of
https://github.com/NovaOSS/nova-web.git
synced 2024-11-25 16:23:58 +01:00
Fixed parts/ not being published to GitHub
This commit is contained in:
parent
41bc3ecaa0
commit
16e1ae1bcb
|
@ -51,5 +51,5 @@ def create_app() -> flask.Flask:
|
|||
production = create_app()
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('* Live on http://localhost:2211')
|
||||
print('* DEV environment online at http://localhost:2211')
|
||||
create_app().run(debug=True, use_reloader=True, use_evalex=False, port=2211, host='0.0.0.0', threaded=True)
|
||||
|
|
26
web/templates/common/begin.html
Normal file
26
web/templates/common/begin.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{% include 'common/seo.html' %}
|
||||
|
||||
{% for css in 'navbar base footer input fonts'.split() %}
|
||||
<link rel="stylesheet" href="/static/css/{{ css }}.css">
|
||||
{% endfor %}
|
||||
|
||||
<link rel="stylesheet" href="/static/ext/css/prism.css">
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.28.0/prism.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-bash.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-python.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-java.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
|
||||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
|
||||
|
||||
<title>NovaAI - Make AI Open Again</title>
|
||||
</head>
|
||||
<body>
|
||||
{% include 'common/nav.html' %}
|
4
web/templates/common/end.html
Normal file
4
web/templates/common/end.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{% include 'common/footer.html' %}
|
||||
</body>
|
||||
<script src="/static/js/menu.js"></script>
|
||||
</html>
|
36
web/templates/common/footer.html
Normal file
36
web/templates/common/footer.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<footer>
|
||||
<div class="rows">
|
||||
<div class="row">
|
||||
<h2>Get started</h2>
|
||||
<a href="/go">Start using the API</a>
|
||||
<a href="/novacord">How to use NovaCord</a>
|
||||
<a href="/replit">Secure your API keys when using Replit</a>
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<h2>About</h2>
|
||||
<a href="/#faq">FAQ</a>
|
||||
<a href="mailto:{{ contact_email }}">Contact</a>
|
||||
<a href="https://github.com/novaoss/nova-api/graphs/contributors?type=a" target="_blank">Contributors</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<h2>Links</h2>
|
||||
<a href="https://github.com/novaoss" target="_blank">GitHub</a>
|
||||
<a href="https://discord.nova-oss.com" target="_blank">Discord</a>
|
||||
<a href="https://www.reddit.com/r/nova_ai" target="_blank">Reddit</a>
|
||||
<a href="https://t.me/nova_gpt" target="_blank">Telegram</a>
|
||||
<a href="https://trello.com/b/ar5MDmwH/nova-base" target="_blank">Trello</a>
|
||||
</div>
|
||||
<div class="row">
|
||||
<h2>Legal</h2>
|
||||
<a href="/legal/imprint">Imprint</a>
|
||||
<a href="/legal/terms">Terms of Service</a>
|
||||
<a href="/legal/privacy">Privacy Policy</a>
|
||||
<a href="https://github.com/novaoss/nova-web/blob/main/LICENSE" target="_blank">License</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<p>
|
||||
© 2023. All rights reserved.
|
||||
</p>
|
||||
</footer>
|
25
web/templates/common/nav.html
Normal file
25
web/templates/common/nav.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<nav>
|
||||
<!-- <img height="64" alt="NovaOSS Logo" aria-label="NovaOSS Logo" class="logo" src=""> -->
|
||||
<svg class="logo" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-sparkles" width="64" height="64" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2zm-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z"></path></svg>
|
||||
|
||||
<h1>NovaAI
|
||||
<mark>open source</mark>
|
||||
</h1>
|
||||
|
||||
<!-- Separator -->
|
||||
<span></span>
|
||||
|
||||
<div id="links" class="link-menu">
|
||||
<a href="/">Home</a>
|
||||
<a href="https://status.nova-oss.com" target="_blank">Status</a>
|
||||
<a href="https://code.nova-oss.com" target="_blank">Source Code</a>
|
||||
<a href="mailto:{{ contact_email }}">Contact</a>
|
||||
</div>
|
||||
|
||||
<svg alt="Mobile menu" id="menu" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-dots-vertical" width="40" height="40" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>
|
||||
<path d="M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>
|
||||
<path d="M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path>
|
||||
</svg>
|
||||
</nav>
|
33
web/templates/common/seo.html
Normal file
33
web/templates/common/seo.html
Normal file
|
@ -0,0 +1,33 @@
|
|||
<!-- Main -->
|
||||
<link href="https://nova-oss.com/" rel="canonical"/>
|
||||
<meta content="NovaAI" name="apple-mobile-web-app-title"/>
|
||||
<meta content="en" http-equiv="Content-Language"/>
|
||||
|
||||
<!-- OpenGraph -->
|
||||
<meta property="og:title" content="NovaAI: Use cutting-edge AI for free!">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="hhttps://nova-oss.com">
|
||||
<meta property="og:image" content="https://nova-oss.com/static/img/banner.png">
|
||||
|
||||
<!-- Description -->
|
||||
<meta property="og:description" content=
|
||||
"🤖 Tired of paying for LLM APIs? NovaAI allows you to utilize the newest language models for free!"
|
||||
>
|
||||
<meta property="description" content=
|
||||
"🤖 Tired of paying for LLM APIs? NovaAI allows you to utilize the newest language models for free!"
|
||||
>
|
||||
<meta name="description" content=
|
||||
"🤖 Tired of paying for LLM APIs? NovaAI allows you to utilize the newest language models for free!"
|
||||
>
|
||||
|
||||
<meta property="og:determiner" content="the">
|
||||
<meta property="og:locale" content="en_US">
|
||||
<meta property="og:locale:alternate" content="en_GB">
|
||||
<meta property="og:site_name" content="nova-oss.com | official website of project NovaAI">
|
||||
|
||||
<meta property="og:article:author" content="NovaAI">
|
||||
<meta property="og:article:tag" content="NovaAI">
|
||||
|
||||
<!-- Other -->
|
||||
<meta name="theme-color" content="#28aaf0">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
|
@ -1,4 +1,4 @@
|
|||
{% include 'parts/begin.html' %}
|
||||
{% include 'common/begin.html' %}
|
||||
<link rel="stylesheet" href="/static/css/home.css">
|
||||
|
||||
<header>
|
||||
|
@ -83,4 +83,4 @@
|
|||
punctuation on these messages.
|
||||
</h6>
|
||||
</main>
|
||||
{% include 'parts/end.html' %}
|
||||
{% include 'common/end.html' %}
|
|
@ -1,4 +1,4 @@
|
|||
{% include 'parts/begin.html' %}
|
||||
{% include 'common/begin.html' %}
|
||||
|
||||
<main>
|
||||
<h1>Privacy</h1>
|
||||
|
@ -90,4 +90,4 @@
|
|||
</p>
|
||||
</main>
|
||||
|
||||
{% include 'parts/end.html' %}
|
||||
{% include 'common/end.html' %}
|
|
@ -1,4 +1,4 @@
|
|||
{% include 'parts/begin.html' %}
|
||||
{% include 'common/begin.html' %}
|
||||
|
||||
<main>
|
||||
{% if verify %}
|
||||
|
@ -141,4 +141,4 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
{% include 'parts/end.html' %}
|
||||
{% include 'common/end.html' %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% include 'parts/begin.html' %}
|
||||
{% include 'common/begin.html' %}
|
||||
<link rel="stylesheet" href="/static/css/home.css">
|
||||
|
||||
<main>
|
||||
|
@ -39,4 +39,4 @@
|
|||
</p>
|
||||
</main>
|
||||
|
||||
{% include 'parts/end.html' %}
|
||||
{% include 'common/end.html' %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% include 'parts/begin.html' %}
|
||||
{% include 'common/begin.html' %}
|
||||
<link rel="stylesheet" href="/static/css/home.css">
|
||||
|
||||
<main>
|
||||
|
@ -54,4 +54,4 @@ novaai.api_base = 'https://api.nova-oss.com/v1'</code></pre>
|
|||
|
||||
</main>
|
||||
|
||||
{% include 'parts/end.html' %}
|
||||
{% include 'common/end.html' %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% include 'parts/begin.html' %}
|
||||
{% include 'common/begin.html' %}
|
||||
<link rel="stylesheet" href="/static/css/home.css">
|
||||
|
||||
<main>
|
||||
|
@ -68,4 +68,4 @@ client.login(process.env.DISCORD_BOT_TOKEN)</code></pre>
|
|||
</p>
|
||||
</main>
|
||||
|
||||
{% include 'parts/end.html' %}
|
||||
{% include 'common/end.html' %}
|
||||
|
|
Loading…
Reference in a new issue