| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta
- name="viewport"
- content="width=device-width, initial-scale=1"
- >
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
- <title>
- {% block title %}APP{% endblock %}
- </title>
- <link
- rel = "icon"
- href = "static/logo/hometag_logo.png"
- type = "image/x-icon"
- >
- </head>
- <style>
- .navbar-nav-right {
- position: absolute;
- top: 2px;
- right: 0px;
- list-style-type: none;
- }
- .navbar-nav-middle {
- position: absolute;
- top: 5px;
- right: 380px;
- list-style-type: none;
- }
- a {
- font-size: 18px;
- }
- .navbar-nav > li{
- padding-left:30px;
- }
- body {
- font: 400 15px/1.8 "Lato", sans-serif;
- }
- </style>
-
- <body>
- <nav class="navbar fixed-top navbar-expand-sm bg-dark navbar-dark">
- <a class="navbar-brand" href="/"><img src="static/logo/hometag_logo.png" alt="hometag_logo" id="logo" width="40"/></a></a>
- <!-- Search Function for search Art-->
- <ul class="navbar-nav">
- {% if user.is_authenticated %} <!-- shows only if user is logged in -->
- <li class="nav-item">
- <a class="nav-link" href="/">Market</a>
- <a class="nav-link" href="/create_art">Create Art</a>
- </li>
- </ul>
- <ul class="navbar-nav-right">
- <li class="nav-item">
- <a href="/profile">Profile</a>
- <a href="/logout"><img src="static/logo/logout_logo.gif" alt="logout_logo" id="logo" width="86"/></a>
- </li>
- </ul>
- {% else %}
- <li class="nav-item">
- <a class="nav-link" href="/">Market</a>
- </li>
- </ul>
- <ul class="navbar-nav-right">
- <li class="nav-item">
- <a href="/login">Login</a>
- <a href="/register">Register</a>
- </li>
- </ul>
- {% endif %}
- </ul>
- <form action="" method="POST" class="navbar-nav-middle">
- <input
- type="search_art"
- class="form-control"
- id="search_art"
- name="search_art"
- placeholder="Seach Art"
- />
- <label for="search_art"></label>
- </div>
- </form>
- </nav>
- <!-- For Flash Errors to User -->
- {% with messages = get_flashed_messages(with_categories=true) %}
- {% if messages %}
- {% for category, message in messages %}
- {% if category == 'error' %}
- <div class="alert alert-danger alter-dismissable fade show", role="alert" style="z-index:2;">
- {{ message }}
- <button type="button" class="close" data-dismiss="alert">
- <span aria-hidden="true">×</span> <!-- fancy button styling-->
- </button>
- </div>
- {% else %}
- <div class="alert alert-success alter-dismissable fade show", role="alert" style="z-index:2;">
- {{ message }}
- <button type="button" class="close" data-dismiss="alert">
- <span aria-hidden="true">×</span> <!-- fancy button styling-->
- </button>
- </div>
- {% endif %}
- {% endfor %}
- {% endif %}
- {% endwith %}
- <div class="container" style="position:relative; top:200px;"> <!-- added the style here for backend testing! -->
- {% block content %}
- {% endblock %}
- </div>
- {% block modal %}{% endblock %}
- {% block script %}{% endblock %}
- </body>
- </html>
|