first commit

This commit is contained in:
ayxan
2022-08-24 17:37:03 +04:00
commit f9930c2476
53 changed files with 785 additions and 0 deletions

30
src/templates/base.html Normal file
View File

@@ -0,0 +1,30 @@
{% load static %}
<!-- neye bakıyon lan html var css var neye bakıyon -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<title>{% block title %}{% endblock title %}</title>
</head>
<body>
{% include "components/navbar.html" %}
<div class="container mt-5">
{% block content %}{% endblock content %}
</div>
{% include "components/footer.html" %}
<!-- Bootstrap JS -->
<script src="{% static 'js/bootstrap.bundle.min.js' %}"></script>
</body>
</html>

View File

@@ -0,0 +1,24 @@
{% load static %}
<link rel="stylesheet" href="{% static 'css/footer.css' %}">
<footer>
<div class="div-left" style="float: left;">
<span class="text-muted">
<a href="mailto:ayxan.shahsuvarov1@gmail.com">© 2022 Aykhan Shahsuvarov</a>
</span>
</div>
<div class="div-right" style="float: right;">
<a class="btn btn-outline-light btn-floating m-1 contact-links" target="_blank" href="https://github.com/Ayxan-z" role="button">
<i class="fab fa-github contact-icons"></i>
</a>
<a class="btn btn-outline-light btn-floating m-1 contact-links" target="_blank" href="https://www.linkedin.com/in/ayxan-shahsuvarov-59a314187" role="button">
<i class="fab fa-linkedin-in contact-icons"></i>
</a>
<a class="btn btn-outline-light btn-floating m-1 contact-links" target="_blank" href="mailto:ayxan.shahsuvarov1@gmail.com" role="button">
<i class="fa fa-envelope contact-icons"></i>
</a>
</div>
</footer>

View File

@@ -0,0 +1,9 @@
{% if messages %}
{% for message in messages %}
{% if message.tags == "info" %}
<div class="alert alert-danger">{{ message }}</div>
{% else %}
<div class="alert alert-{{ message.tags }}">{{ message }}</div>
{% endif %}
{% endfor %}
{% endif %}

View File

@@ -0,0 +1,30 @@
{% load static %}
<nav class="navbar navbar-expand-lg bg-dark navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="/" style="padding-top: 2px; padding-bottom: 2px;">
<img src="{% static 'icons/retro-tv.png' %}" width="55px" height="55px">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="me-auto"></ul>
{% if request.user.is_authenticated == True %}
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="{% url 'profile' %}" style="font-size: 18px;">
Profile
</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="{% url 'logout' %}" style="font-size: 18px;">
Logout
</a>
</li>
</ul>
{% endif %}
</div>
</div>
</nav>