-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from sheepman4267/0.2.0
0.2.0
- Loading branch information
Showing
16 changed files
with
166 additions
and
56 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
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
* { | ||
box-sizing: border-box; | ||
padding: 0; | ||
margin: 0; | ||
font-family: "sans-serif"; | ||
} | ||
|
||
.navbar { | ||
height: 75px; | ||
background: #b37bff; | ||
display: flex; | ||
flex-direction: row; | ||
box-shadow: 0 0 5px 0 #000000; | ||
z-index: 5; | ||
} | ||
|
||
.nav-container.left { | ||
margin: 0 auto 0 10px; | ||
align-self: center; | ||
} | ||
|
||
.nav-container.right { | ||
margin: 0 10px 0 auto; | ||
} | ||
|
||
.nav-container.center { | ||
align-self: center; | ||
text-align: center; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
.center-content { | ||
max-width: 11in; | ||
margin-right: auto; | ||
margin-left: auto; | ||
background: #87b9d3; | ||
height: calc(100vh - 75px); | ||
} | ||
|
||
.app-button-container { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(100px, 200px)); | ||
padding: 10px; | ||
grid-gap: 10px; | ||
align-items: start; | ||
width: 100%; | ||
} | ||
|
||
#core-body > .content-container { | ||
background: #417698; | ||
} | ||
|
||
.app-button { | ||
width: 100%; | ||
min-width: fit-content; | ||
text-align: center; | ||
border: 2px solid #5c6b79; | ||
background: #bed1de; | ||
border-radius: 10px; | ||
height: 30px; | ||
padding-left: 10px; | ||
padding-right: 10px; | ||
white-space: nowrap; | ||
text-decoration: 0; | ||
color: black; | ||
} |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<html lang="en"> | ||
{% load static %} | ||
|
||
<link rel="stylesheet" type="text/css" href="{% static 'lists/style.css' %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static 'core/core.css' %}"> | ||
<script src="https://unpkg.com/[email protected]"></script><!--integrity="sha384-tvG/2mnCFmGQzYC1Oh3qxQ7CkQ9kMzYjWZSNtrRZygHPDDqottzEJsqS4oUVodhW" crossorigin="anonymous"></script>--> | ||
|
||
{% block head %} | ||
|
@@ -12,8 +12,12 @@ | |
</head> | ||
{% endblock %} | ||
|
||
<body id="body" class="main-body" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'> | ||
{% block body %} | ||
<body id="core-body" class="main-body" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'> | ||
{% block navbar %} | ||
{% endblock %} | ||
<div class="content-container"> | ||
{% block body %} | ||
{% endblock %} | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% extends 'core/base.html' %} | ||
|
||
{% block navbar %} | ||
{% include 'core/navbar.html' %} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
<div class="center-content"> | ||
<div class="app-button-container"> | ||
<a class="app-button" href="{% url 'lists-index' %}">Lists!</a> | ||
</div> | ||
</div> | ||
{% 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% load icon %} | ||
<div class="navbar" id="navbar"> | ||
<div class="nav-container left"> | ||
</div> | ||
<div class="nav-container center"> | ||
<h1>Effort</h1> | ||
<h4>v0.2.0</h4> | ||
</div> | ||
<div class="nav-container right"> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from django.urls import path | ||
from core import views | ||
|
||
urlpatterns = [ | ||
path('', views.index, name='core-index') | ||
] |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
from django.shortcuts import render | ||
from django.contrib.auth.decorators import login_required | ||
|
||
@login_required | ||
def index(request): | ||
return render(request, 'core/index.html') | ||
|
||
# Create your views here. |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
services: | ||
app: | ||
image: docker.io/sheepman4267/effort:latest | ||
|
||
volumes: | ||
static-root: | ||
|
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,9 @@ | |
|
||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<link rel="stylesheet" type="text/css" href="{% static 'lists/style.css' %}"> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<link rel="stylesheet" type="text/css" href="{% static 'core/core.css' %}"> | ||
<link rel="stylesheet" type="text/css" href="{% static 'lists/lists.css' %}"> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<script src="{% url 'jsi18n' %}"></script> | ||
|
||
|
@@ -16,12 +17,12 @@ | |
</head> | ||
{% endblock %} | ||
|
||
<body id="body" class="main-body show-list" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' hx-boost="false" > | ||
<body id="body" class="main-body show-list" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}' hx-boost="true" > | ||
{% block navbar %} | ||
{% endblock %} | ||
<div class="content-container"> | ||
{% block body %} | ||
{% endblock %} | ||
</> | ||
</div> | ||
</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
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