FinTech_app/templates/main.html
2023-01-24 14:48:22 +01:00

74 lines
3.6 KiB
HTML

{% load static %}
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<title>{% block title %}FinTech{% endblock %}</title>
<link rel="stylesheet" type="text/css" href={% static "/main.css" %}>
{% block css_files %}{% endblock %}
</head>
<body>
<!--Navbar-->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="/">FinTech</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-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="navbar-nav mr-auto">
<li class="nav-item">
{% if user.is_authenticated %}
<a class="nav-link" href="/logout">Wyloguj</a>
<a class="nav-link" href="/oblplot/">Użyj bezpiecznego wariantu</a>
<a class="nav-link" href="/wigplot">Użyj bardziej ryzykownego wariantu</a>
<a class="nav-link" href="https://www.xtb.com/pl">Zainwestuj z Xtb</a>
<a class="nav-link" href="https://www.etoro.com/pl/">Zainwestuj z Etoro</a>
{% else %}
<a class="nav-link" href="/login">Zaloguj</a>
{% endif %}
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Edukacja
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="/view-pdf1">Informacje o stronie</a>
<a class="dropdown-item" href="/view-pdf-rynki/">Obligacje</a>
<a class="dropdown-item" href="/view-pdf-akcje/">Akcje</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#">{% if user.is_authenticated %}
Witaj, {{ user.get_username }}. Dziękujemy, że jesteś z nami.
{% endif %}</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Szukaj">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Szukaj</button>
</form>
</div>
</nav>
<main>
{% block content %}
<div>
<h1 style="text-align:center">Witaj na stronie FinTech!</h1>
<h4 style="text-align:center">Tutaj możesz nauczyć się jak inwestować i prognozować kursy z pomocą sztucznej inteligencji.</h4>
</div>
<div style="flex:2"><img class="center" src="{% static 'images/charts.jpg' %}"></div>
{% endblock %}
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</main>
</body>
</html>