1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!-- templates/index.html -->
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>KTVManager</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
- <link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon-96x96.png') }}" sizes="96x96" />
- <link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='favicon.svg') }}" />
- <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" />
- <link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static', filename='apple-touch-icon.png') }}" />
- <meta name="apple-mobile-web-app-title" content="kTvManager" />
- <link rel="manifest" href="{{ url_for('static', filename='site.webmanifest') }}" />
- <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}" />
- </head>
- <body>
- <!-- Navbar -->
- <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
- <a class="navbar-brand" href="/">KTVManager</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarNav">
- <ul class="navbar-nav ml-auto">
- <li class="nav-item">
- <a class="nav-link" href="/">Home</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="/accounts">Accounts</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="/urls">URLs</a>
- </li>
- </ul>
- </div>
- </nav>
- <!-- Main Content -->
- <main div class="container mt-5">
- <h1>Welcome to KTV Manager</h1>
- <!-- Login Form -->
- <form action="/login" method="post" class="mt-3">
- <div class="form-group">
- <label for="username">Username:</label>
- <input type="text" class="form-control" id="username" name="username" required>
- </div>
- <div class="form-group">
- <label for="password">Password:</label>
- <input type="password" class="form-control" id="password" name="password" required>
- </div>
- <button type="submit" class="btn btn-primary">Login</button>
- {% if error %}
- <div class="alert alert-danger mt-3">{{ error }}</div>
- {% endif %}
- </form>
- </div>
- </main>
- <footer class="bg-dark text-white text-center py-3 mt-5">
- <p></p>
- </footer>
- <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
- <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.0.7/dist/umd/popper.min.js"></script>
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
- <script>
- if ('serviceWorker' in navigator) {
- navigator.serviceWorker.register('{{ url_for("static", filename="service-worker.js") }}')
- // .then(reg => {
- // console.log('Service worker:', reg);
- // .catch(err => {
- // console.log('Service worker:', err);
- // });
- }
- </script>
- </body>
- </html>
|