Commit d75e4d22 authored by dennisjl's avatar dennisjl
Browse files

Adds html dark mode elements

parent 61850876
Pipeline #72176 passed with stage
in 1 minute and 2 seconds
......@@ -57,6 +57,17 @@
-->
</ul>
<div class="my-2 my-lg-0 mr-5">
<!-- Darkmode toggleswich -->
<a class="btn btn-link my-sm-0 mr-2">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="customSwitch1">
<label class="custom-control-label" for="customSwitch1">Dark Mode</label>
<svg class="bi bi-moon" width="1em" height="1em" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path d="M17.293 13.293A8 8 0 016.707 2.707a8.002 8.002 0 1010.586 10.586z"></path>
</svg>
</div>
</a>
{% if user.is_authenticated %}
<a role="button" class="btn btn-outline-primary my-2 my-sm-0" href="{% url 'new_project' %}">New project</a>
<a class="btn btn-link my-2 my-sm-0" href="{% url 'logout' %}" role="button">Sign out</a>
......
{% extends 'base.html' %}
{% load bootstrap4 %}
{% block title %}DarkMode{% endblock %}
{% block content %}
<h2>Dark Mode</h2>
<form method="post">
{% csrf_token %}
{% bootstrap_form form %}
<button type="submit">Dark Mode</button>
</form>
{% endblock %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment