Commit 76dc8159 authored by Barnabás Czémán's avatar Barnabás Czémán
Browse files

Intial ukit design

parent 17f94d67
{
"name": "entries",
"authors": [
"DevTeam"
],
"description": "",
"main": "",
"license": "None",
"homepage": "",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
......@@ -108,4 +108,8 @@ LOGIN_URL = '/login/'
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'bower_components')
]
STATIC_URL = '/static/'
{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
......@@ -6,27 +7,37 @@
{% endblock %}
<title>{% block title %}Awsome entries{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% static 'uikit/css/uikit.almost-flat.min.css' %}"/>
</head>
<body>
<h1>Awsome entries!</h1>
{% if user.is_authenticated %}
<p>Hello, {{ user }}!</p>
{% endif %}
<a href="{% url 'home' %}">Home</a>
<nav class="uk-navbar">
<ul class="uk-navbar-nav">
<li><a href="{% url 'home' %}" class="uk-navbar-brand">Free Entries</a>
<li><a href="{% url 'home' %}">Home</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'create_entry' %}">New entry</a></li>
<li><a href="{% url 'logout' %}">Logout</a></li>
{% else %}
<li><a href="{% url 'login' %}">Login</a></li>
{% endif %}
</ul>
</nav>
{% if user.is_authenticated %}
<a href="{% url 'create_entry' %}">New entry</a>
<a href="{% url 'logout' %}">Logout</a>
{% else %}
<a href="{% url 'login' %}">Login</a>
{% endif %}
<div class="uk-alert uk-alert-success"><p>Hello, {{ user }}!</p></div>
<hr>
{% endif %}
{% block content %}
{% endblock %}
<script src="{% static 'jquery/dist/jquery.min.js' %}" />
<script src="{% static 'uikit/js/ukit.min.js' %}" />
</body>
</html>
\ No newline at end of file
</html>
......@@ -4,21 +4,10 @@
Barni
{% endblock %}
{% block css %}
<style>
.entry{
margin: 15px;
padding: 5px;
border: solid 1px black;
}
</style>
{% endblock %}
{% block content %}
{% for entry in entries %}
<div class="entry">
<h3>{{ entry.title }}</h3>
<div class="uk-panel uk-panel-box uk-margin">
<h3 class="uk-panel-title">{{ entry.title }}</h3>
<p>{{ entry.description }}</p>
<a href="{{ entry.url }}">Click!!</a>
</div>
......@@ -26,4 +15,4 @@ Barni
No entries.
{% endfor %}
{% endblock %}
\ No newline at end of file
{% 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