add web
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<h1>coming soon</h1>
|
||||
@@ -0,0 +1,94 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" data-bs-theme="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Vortexi</title>
|
||||
<link href="/static/css/bootstrapv3.min.css" rel="stylesheet"/>
|
||||
<script src="/static/js/bootstrapv3.min.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, Helvetica, sans-serif !important;
|
||||
}
|
||||
.text-secondary {
|
||||
color: #1a1a1a!important;
|
||||
}
|
||||
.m-0 {
|
||||
margin: 0!important;
|
||||
}
|
||||
.login-container {
|
||||
width: 300px;
|
||||
display: block;
|
||||
padding: .5rem;
|
||||
margin-top: 150px;
|
||||
}
|
||||
.login-container h1 {
|
||||
text-align: center;
|
||||
margin-bottom: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
.login-container p {
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
margin-bottom: 15px;
|
||||
font-size: small;
|
||||
}
|
||||
.login-container button {
|
||||
width: 100%;
|
||||
font-weight: 600;
|
||||
font-size: larger;
|
||||
padding: 3px;
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
#password {
|
||||
max-width: 300px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.messagealerts {
|
||||
background: rgba(248, 17, 17, 0.507);
|
||||
color: rgb(7, 7, 7);
|
||||
word-wrap: break-word;
|
||||
border: 2px solid rgb(223, 26, 26);
|
||||
}
|
||||
|
||||
.form-text {
|
||||
/* wrap the text*/
|
||||
word-wrap: break-word;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{% if not currentuser: %}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="login-container center-block">
|
||||
<h1>Vortexi</h1>
|
||||
<p>relive those childhood memories</p>
|
||||
{% with messages = get_flashed_messages() %}
|
||||
{% if messages %}
|
||||
<div>
|
||||
{% for message in messages %}
|
||||
<div class="alert border border-danger p-1 text-center messagealerts">
|
||||
{{ message }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
<form action="/login?studio=1" method="post">
|
||||
<input type="text" id="username" name="username" class="form-control" placeholder="Username" value="" required>
|
||||
<input type="password" name="password" id="password" class="form-control btn-dark" placeholder="Password" value="" required>
|
||||
<input type="text" name="2fa" id="password" class="form-control btn-dark" placeholder="2FA ( if enabled )" value="">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||
<button type="submit" class="btn btn-primary mb-3">Login</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{%else%}
|
||||
<h1>Welcome to Vortexi Studio :D, not much to do here yet.<br>Go to File > New to start.</h1>
|
||||
{%endif%}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,21 @@
|
||||
from flask import Blueprint, render_template, request, redirect, url_for, flash, make_response, jsonify, abort
|
||||
|
||||
StudioPagesRoute = Blueprint('studiopages', __name__, url_prefix='/')
|
||||
|
||||
@StudioPagesRoute.before_request
|
||||
def before_request():
|
||||
BrowserUserAgent = request.headers.get('User-Agent')
|
||||
if BrowserUserAgent is None:
|
||||
return abort(404)
|
||||
if "RobloxStudio" not in BrowserUserAgent:
|
||||
return abort(404)
|
||||
|
||||
@StudioPagesRoute.route("/ide/welcome", methods=['GET'])
|
||||
def myPlaces():
|
||||
return render_template("studio/myPlaces.html")
|
||||
@StudioPagesRoute.route("/IDE/ClientToolbox.aspx", methods=['GET'])
|
||||
def sussy():
|
||||
return render_template("studio/comingsoon.html")
|
||||
@StudioPagesRoute.route("/UploadMedia/UploadVideo.aspx", methods=['GET'])
|
||||
def yeezus():
|
||||
return render_template("studio/comingsoon.html")
|
||||
Reference in New Issue
Block a user