33 lines
981 B
HTML
33 lines
981 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}FantasyCron - Enter Username{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="welcome-container">
|
|
<div class="brand">
|
|
<h1 class="app-name">FantasyCron</h1>
|
|
<div class="tagline">* * * * 0,1,4</div>
|
|
</div>
|
|
<p>Enter your Sleeper username to view your fantasy teams</p>
|
|
|
|
<!-- Username input form -->
|
|
<form class="username-form" onsubmit="goToUser(event)">
|
|
<input type="text" id="username" placeholder="Enter Sleeper username" required>
|
|
<button type="submit">View Dashboard</button>
|
|
</form>
|
|
|
|
<div class="example">
|
|
<p>Example: <code>sleeperuser</code></p>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
function goToUser(event) {
|
|
event.preventDefault(); // Prevent form submission
|
|
const username = document.getElementById('username').value.trim();
|
|
if (username) {
|
|
window.location.href = `/${username}`; // Navigate to user dashboard
|
|
}
|
|
}
|
|
</script>
|
|
{% endblock %}
|