|
|
@@ -6,33 +6,10 @@
|
|
|
name="viewport"
|
|
|
content="width=device-width, initial-scale=1"
|
|
|
>
|
|
|
- <link
|
|
|
- rel="stylesheet"
|
|
|
- href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
|
|
- integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
|
|
- crossorigin="anonymous"
|
|
|
- />
|
|
|
- <link
|
|
|
- rel="stylesheet"
|
|
|
- href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
|
|
|
- crossorigin="anonymous"
|
|
|
- />
|
|
|
- <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>
|
|
|
-
|
|
|
+ <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>
|
|
|
@@ -51,6 +28,12 @@
|
|
|
right: 0px;
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
+.navbar-nav-middle {
|
|
|
+ position: absolute;
|
|
|
+ top: 5px;
|
|
|
+ right: 380px;
|
|
|
+ list-style-type: none;
|
|
|
+}
|
|
|
a {
|
|
|
font-size: 18px;
|
|
|
}
|
|
|
@@ -65,20 +48,44 @@ body {
|
|
|
<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="/">Home</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="/">Home</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) %}
|
|
|
@@ -106,5 +113,8 @@ body {
|
|
|
{% block content %}
|
|
|
{% endblock %}
|
|
|
</div>
|
|
|
+
|
|
|
+{% block modal %}{% endblock %}
|
|
|
+{% block script %}{% endblock %}
|
|
|
</body>
|
|
|
</html>
|