mirror of
https://github.com/aykhans/series-robot-web.git
synced 2025-09-08 23:30:44 +00:00
first commit
This commit is contained in:
30
src/templates/base.html
Normal file
30
src/templates/base.html
Normal 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>
|
24
src/templates/components/footer.html
Normal file
24
src/templates/components/footer.html
Normal 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>
|
9
src/templates/components/message.html
Normal file
9
src/templates/components/message.html
Normal 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 %}
|
30
src/templates/components/navbar.html
Normal file
30
src/templates/components/navbar.html
Normal 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>
|
Reference in New Issue
Block a user