Upload files to "/"

main
Vladimirs Moriļovs 2024-05-21 17:54:46 +00:00
commit cc1c15559e
5 changed files with 160 additions and 0 deletions

27
about.html 100644
View File

@ -0,0 +1,27 @@
{% extends "base.html" %}
{% block title %}About{% endblock %}
{% block content %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<div class="container">
<h1>About Us</h1>
<h3>Our mission and team</h3>
<p>LinguaPro was founded with one goal - to make learning foreign languages accessible and fun for everyone. We believe that knowledge of languages opens up new horizons and opportunities, helping people better understand each other.</p>
<h2>Our Mission: </h2><p>We strive to provide high quality education that inspires and motivates our students to achieve their goals.
</p>
<h2>Our team:</h2>
<div class="team-member1">
<h3>Alexey Ivanov Founder and CEO</h3>
<p>Alexey is an experienced linguist with more than 15 years of teaching experience. He has developed many courses and programs that have helped thousands of students master new languages.</p>
</div>
<div class="team-member2">
<h3>Maria Petrova Chief Methodologist</h3>
<p>Maria is responsible for the development of educational materials and methods. She holds a PhD in Philology and is a recognized expert in the field of language education.</p>
</div>
<div class="team-member1">
<h3>John Smith - CTO</h3>
<p>John is responsible for the technical side of the platform. Thanks to his experience and knowledge, our website works without interruptions and provides users with the most convenient interface.</p>
</div>
<h3 class="header">Our team is united by a common passion for languages and a desire to share our knowledge with the world.</h3>
</div>
{% endblock %}

55
base.html 100644
View File

@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<title>{% block title %}{% endblock %}</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="{{ url_for('index') }}">
<img src="https://th.bing.com/th/id/OIG4.LgUj9FIjzUbdTSMn0mRg" alt="" width="50" height="50" class="d-inline-block align-text-center">
Navigation
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse me-auto mb-2 mb-lg-0" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" href="{{ url_for('users') }}">Users</a></li>
<li class="nav-item"><a class="nav-link" href="{{ url_for('about') }}">About</a></li>
<li class="nav-item"><a class="nav-link" href="{{ url_for('contact') }}">Contact</a></li>
<li class="nav-item"><a class="nav-link" href="{{ url_for('data') }}">Data</a></li>
<li class="nav-item"><a class="nav-link" href="{{ url_for('register') }}">Register</a></li>
<li class="nav-item"><a class="nav-link" href="{{ url_for('weather') }}">Weather</a></li>
</ul>
<ul class="navbar-nav ms-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Profile
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="{{ url_for('login') }}">Login</a></li>
<li><a class="dropdown-item" href="#">Profile</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
{% block content %}{% endblock %}
</div>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXlJpW3Q8J2hJFj6WAZ6e8ksj65h9Cae9sDj2lzZ9X8tBT2g6sy60OGa+I5C" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/5.1.0/js/bootstrap.min.js" integrity="sha384-cn7l7gDp0ey14XtQznfW+dStF45fm1k4TcG5R8bGykvOnpGEL+DQ/ylrz5cPYxKH" crossorigin="anonymous"></script>
</body>
</html>

21
contact.html 100644
View File

@ -0,0 +1,21 @@
{% extends "base.html" %}
{% block title %}Contact{% endblock %}
{% block content %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<h2 class="header">Contact Us</h2>
<p>This is the contact page.</p>
<button type="button" class="btn btn-outline-danger btn-lg" id="btn">Danger <span id="display">0</span></button>
<script type="text/javascript">
let count = 0;
let btn = document.getElementById("btn");
let disp = document.getElementById("display");
btn.onclick = function () {
count++;
disp.innerHTML = count;
if (count >= 10) {
window.location.href = "/"; // Aizvietojiet ar vēlamo URL
}
}
</script>
{% endblock %}

48
data.html 100644
View File

@ -0,0 +1,48 @@
{% extends "base.html" %}
{% block title %}Data{% endblock %}
{% block content %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<div class="container">
<h2 class="header">Data</h2>
<table class="table table-striped table-dark">
<thead>
<tr>
<td>#</td>
<td>Name</td>
<td>Age</td>
<td>City</td>
</tr>
</thead>
<tbody>
{% for row in data %}
<tr>
<td scope="row">{{ loop.index }}</td>
{% for element in row %}
<td>{{ element }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
<form method="POST" action="{{ url_for('data') }}">
<div class="row">
<div class="col">
<label for="name">Name:</label>
<input type="text" class="form-control" id="name" name="name" required>
</div>
<div class="col">
<label for="age">Age:</label>
<input type="number" class="form-control" id="age" name="age" required>
</div>
<div class="col">
<label for="city">City:</label>
<input type="text" class="form-control" id="city" name="city" required>
</div>
<div class="col">
<button type="submit" class="btn btn-primary" id="btn">Submit</button>
</div>
</div>
</form>
</div>
{% endblock %}

9
error_login.html 100644
View File

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block title %}Succes{% endblock %}
{% block content %}
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<h1>ERROR ;[ </h1>
<div class="alert alert-danger" role="alert">
You entered the wrong email or password! <a href="{{ url_for('login')}}" class="alert-link">Back!</a>
</div>
{% endblock %}