-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mobile friendly index and navbar (#363)
* fixes index multi-background and compresses xray * lower size of background image * adds console link * redesigns navbar to be mobile friendly * fix whitespace * merge in latest changes * #361 Make sure hamburger menu opens on about page * remove inline styles for bs classes Co-authored-by: Hannah Gooden <[email protected]>
- Loading branch information
1 parent
65c2c4b
commit e68dbe8
Showing
10 changed files
with
127 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,5 @@ <h2 class="pt-5 pb-3"> Contact Us </h2> | |
|
||
</div> | ||
</div> | ||
<script> | ||
|
||
</script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,101 +3,104 @@ | |
{% load in_group %} | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
{% block header_includes %}{% endblock %} | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="{% static 'css/workspace.css' %}"> | ||
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500&family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/> | ||
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'favicon/apple-touch-icon.png' %}"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'favicon/favicon-32x32.png' %}"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'favicon/favicon-16x16.png' %}"> | ||
<link rel="manifest" href="{% static 'favicon/site.webmanifest' %}"> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.css"> | ||
</head> | ||
|
||
<head> | ||
{% block header_includes %}{% endblock %} | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="{% static 'css/workspace.css' %}"> | ||
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500&family=Montserrat:wght@500;700&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/> | ||
<link rel="apple-touch-icon" sizes="180x180" href="{% static 'favicon/apple-touch-icon.png' %}"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="{% static 'favicon/favicon-32x32.png' %}"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="{% static 'favicon/favicon-16x16.png' %}"> | ||
<link rel="manifest" href="{% static 'favicon/site.webmanifest' %}"> | ||
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.css"> | ||
</head> | ||
|
||
<body style="background-color: var(--background);"> | ||
<! Navigation Bar > | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> | ||
<div class="container-fluid"> | ||
<a class="navbar-brand" href="{% url "index" %}"> <img src="{% static 'images/axonolotl.png' %}" alt="" width="30" height="24" class="d-inline-block align-text-top"> NeuVue</a> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse flex-row justify-content-end" id="navbarNav"> | ||
<ul class="navbar-nav ml-auto"> | ||
|
||
{% if request.user.is_staff %} | ||
|
||
<body style="background-color: var(--background);"> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="height:4vh;"> | ||
<div class="container-fluid"> | ||
<a class="navbar-brand" href="{% url "index" %}"> <img src="{% static 'images/axonolotl.png' %}" alt="" width="30" height="24" class="d-inline-block align-text-top"> NeuVue</a> | ||
<ul class="navbar-nav ml-auto " style="flex-direction: row;"> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
Admin Tools | ||
</a> | ||
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdown"> | ||
<li> <a class="dropdown-item" href="{% url "admin:index" %}">Console</a></li> | ||
<li> <a class="dropdown-item" href="{% url "dashboard" %}">Dashboard</a></li> | ||
<li><a class="dropdown-item" href="{% url "lineage" %}">Lineage Viewer</a></li> | ||
<li><a class="dropdown-item" href="{% url "report" %}">Reports</a></li> | ||
<li><a class="dropdown-item" href="{% url "user-namespace" %}">User/Namespace Query</a></li> | ||
</ul> | ||
</li> | ||
|
||
{% if request.user.is_staff %} | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
Admin Tools | ||
</a> | ||
<ul class="dropdown-menu me-2 dropdown-menu-dark preferences" aria-labelledby="navbarDropdown"> | ||
<li> <a class="nav-link" href="{% url "dashboard" %}">Admin Dashboard</a></li> | ||
<li><hr class="dropdown-divider"></li> | ||
<li><a class="nav-link" href="{% url "lineage" %}">Lineage Viewer</a></li> | ||
<li><hr class="dropdown-divider"></li> | ||
<li><a class="nav-link" href="{% url "report" %}">Reports</a></li> | ||
<li><hr class="dropdown-divider"></li> | ||
<li><a class="nav-link" href="{% url "user-namespace" %}">User/Namespace Query</a></li> | ||
</ul> | ||
</li> | ||
{% endif%} | ||
|
||
{% if request.user|in_group:"AuthorizedUsers"%} | ||
{% endif%} | ||
|
||
{% if request.user|in_group:"AuthorizedUsers"%} | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link" href="{% url "getting-started" %}">Getting Started</a> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link" href="{% url "inspect" %}">Inspect Task</a> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
Neuron Viewers | ||
</a> | ||
<ul class="dropdown-menu me-2 dropdown-menu-dark preferences" aria-labelledby="navbarDropdown"> | ||
<li class="nav-item"> <a class="nav-link" href="{% url "synapse" %}">Synapse Viewer</a> </li> | ||
<li><hr class="dropdown-divider"></li> | ||
<li class="nav-item"> <a class="nav-link" href="{% url "nuclei" %}">Nuclei Viewer</a> </li> | ||
</ul> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{% url "getting-started" %}">Getting Started</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{% url "inspect" %}">Inspect Task</a> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
Neuron Viewers | ||
</a> | ||
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdown"> | ||
<li> <a class="dropdown-item" href="{% url "synapse" %}">Synapse Viewer</a> </li> | ||
<li> <a class="dropdown-item" href="{% url "nuclei" %}">Nuclei Viewer</a> </li> | ||
</ul> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="btn btn-outline-success" href="{% url "tasks" %}">My Tasks</a> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link" href="{% url "tasks" %}">My Tasks</a> | ||
</li> | ||
{% endif%} | ||
{% endif%} | ||
|
||
{% if request.user.is_authenticated %} | ||
{% if request.user.is_authenticated %} | ||
|
||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
<b> {{user.username}} </b> | ||
</a> | ||
<ul class="dropdown-menu me-2 dropdown-menu-dark preferences" aria-labelledby="navbarDropdown"> | ||
<li><a class="dropdown-item" href="{% url "preferences" %}" >Preferences</a></li> | ||
<li><hr class="dropdown-divider"></li> | ||
<li><a class="dropdown-item" href="{% url "logout" %}">Logout</a></li> | ||
</ul> | ||
</li> | ||
{% else %} | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
<b> {{user.username}} </b> | ||
</a> | ||
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdown"> | ||
<li><a class="dropdown-item" href="{% url "preferences" %}" >Preferences</a></li> | ||
<li><a class="dropdown-item" href="{% url "logout" %}">Sign Out</a></li> | ||
</ul> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link", href="{% url "about" %}"> About</a> | ||
</li> | ||
{% else %} | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link" href="{% provider_login_url 'google' %}">Login</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link", href="{% url "about" %}"> About</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="btn btn-outline-secondary" href="{% provider_login_url 'google' %}">Sign In</a> | ||
</li> | ||
|
||
{% endif %} | ||
</ul> | ||
{% endif %} | ||
|
||
</ul> | ||
</div> | ||
</nav> | ||
</div> | ||
</nav> | ||
|
||
{% block content %}{% endblock %} | ||
|
||
{% block content %}{% endblock %} | ||
</body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file added
BIN
+265 KB
neuvue_project/workspace/static/images/neuron_background_sketch-01-min.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-5.11 MB
neuvue_project/workspace/static/images/neuron_background_sketch-01-min.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.