Skip to content

Commit 76255b8

Browse files
committed
commit f1e2c3d4e5f67890123456789abcdef01234567
1 parent 2766fbe commit 76255b8

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed

templates/dashboard.html

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
11
{% extends 'base.html' %}
22
{% block content %}
3-
<h2>Upload a Document</h2>
4-
<form action="/upload" method="post" enctype="multipart/form-data">
5-
<input type="file" name="document">
6-
<button type="submit">Process</button>
7-
</form>
8-
9-
{% if result %}
10-
<div class="result">
11-
<h3>AI Output:</h3>
12-
<p>{{ result }}</p>
13-
</div>
14-
{% endif %}
3+
<div class="container">
4+
<div class="card">
5+
<h1>Welcome back{% if session.get('user_email') %}, {{ session.get('user_email').split('@')[0]|capitalize }}{% endif %}</h1>
6+
<p class="muted">Quick actions and recent activity.</p>
7+
8+
<div style="display:flex;gap:0.75rem;flex-wrap:wrap;margin-top:1rem">
9+
<a class="btn btn-primary" href="{{ url_for('main.upload_get') }}">Upload data</a>
10+
<a class="btn" href="{{ url_for('main.complete_profile') }}">Complete profile</a>
11+
<a class="btn" href="{{ url_for('main.logout') }}">Logout</a>
12+
</div>
13+
14+
<section style="margin-top:1.25rem">
15+
<h2>Upload a Document</h2>
16+
<form action="/upload" method="post" enctype="multipart/form-data">
17+
<input type="file" name="document">
18+
<button class="btn" type="submit">Process</button>
19+
</form>
20+
</section>
21+
22+
{% if result %}
23+
<div class="result" style="margin-top:1rem">
24+
<h3>AI Output:</h3>
25+
<p>{{ result }}</p>
26+
</div>
27+
{% endif %}
28+
29+
<section style="margin-top:1.5rem">
30+
<h3>Recent activity</h3>
31+
<div class="muted">No activity yet. Your uploads and analysis will appear here.</div>
32+
</section>
33+
</div>
34+
</div>
1535
{% endblock %}

0 commit comments

Comments
 (0)