batman
This commit is contained in:
commit
acb3c7642a
23 changed files with 3940 additions and 0 deletions
42
app/templates/auth/login.html
Normal file
42
app/templates/auth/login.html
Normal file
|
@ -0,0 +1,42 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Sign In - Flask Files{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="auth-container">
|
||||
<h2>Sign In</h2>
|
||||
|
||||
<form method="POST" action="{{ url_for('auth.login') }}" class="auth-form">
|
||||
{{ form.hidden_tag() }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ form.username.label }}
|
||||
{{ form.username(size=32, class="form-control") }}
|
||||
{% for error in form.username.errors %}
|
||||
<span class="error">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ form.password.label }}
|
||||
{{ form.password(size=32, class="form-control") }}
|
||||
{% for error in form.password.errors %}
|
||||
<span class="error">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="form-group checkbox">
|
||||
{{ form.remember_me() }}
|
||||
{{ form.remember_me.label }}
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
{{ form.submit(class="btn primary") }}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="auth-links">
|
||||
<p>Don't have an account? <a href="{{ url_for('auth.register') }}">Register here</a></p>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
34
app/templates/auth/profile.html
Normal file
34
app/templates/auth/profile.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Profile - Flask Files{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="profile-container">
|
||||
<h2>User Profile</h2>
|
||||
|
||||
<div class="profile-card">
|
||||
<div class="profile-header">
|
||||
<div class="avatar">
|
||||
{{ current_user.username[0].upper() }}
|
||||
</div>
|
||||
<h3>{{ current_user.username }}</h3>
|
||||
</div>
|
||||
|
||||
<div class="profile-stats">
|
||||
<div class="stat-item">
|
||||
<span class="stat-value">{{ current_user.files.count() }}</span>
|
||||
<span class="stat-label">Files</span>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<span class="stat-value">{{ current_user.shares.count() }}</span>
|
||||
<span class="stat-label">Shares</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="profile-actions">
|
||||
<a href="#" class="btn">Change Password</a>
|
||||
<a href="{{ url_for('files.browser') }}" class="btn primary">Manage Files</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
45
app/templates/auth/register.html
Normal file
45
app/templates/auth/register.html
Normal file
|
@ -0,0 +1,45 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Register - Flask Files{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<section class="auth-container">
|
||||
<h2>Create an Account</h2>
|
||||
|
||||
<form method="POST" action="{{ url_for('auth.register') }}" class="auth-form">
|
||||
{{ form.hidden_tag() }}
|
||||
|
||||
<div class="form-group">
|
||||
{{ form.username.label }}
|
||||
{{ form.username(size=32, class="form-control") }}
|
||||
{% for error in form.username.errors %}
|
||||
<span class="error">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ form.password.label }}
|
||||
{{ form.password(size=32, class="form-control") }}
|
||||
{% for error in form.password.errors %}
|
||||
<span class="error">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
{{ form.password2.label }}
|
||||
{{ form.password2(size=32, class="form-control") }}
|
||||
{% for error in form.password2.errors %}
|
||||
<span class="error">{{ error }}</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
{{ form.submit(class="btn primary") }}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="auth-links">
|
||||
<p>Already have an account? <a href="{{ url_for('auth.login') }}">Sign in</a></p>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue