Nouvelle page d'accueil suivant HTML5UP.net

This commit is contained in:
Olivier DOSSMANN 2018-02-19 23:16:14 +01:00
parent 445a769ce5
commit 56c198f19a
18 changed files with 2155 additions and 3 deletions

View File

@ -68,7 +68,8 @@ WSGI_APPLICATION = 'collection.wsgi.application'
AUTH_PASSWORD_VALIDATORS = [ AUTH_PASSWORD_VALIDATORS = [
{ {
'NAME': 'NAME':
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 'django.contrib.auth.password_validation.\
UserAttributeSimilarityValidator',
}, },
{ {
'NAME': 'NAME':
@ -91,3 +92,7 @@ STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(os.path.abspath(os.path.curdir), 'static') STATIC_ROOT = os.path.join(os.path.abspath(os.path.curdir), 'static')
if os.getenv('STATIC_ROOT', None): if os.getenv('STATIC_ROOT', None):
STATIC_ROOT = os.path.abspath(os.getenv('STATIC_ROOT')) STATIC_ROOT = os.path.abspath(os.getenv('STATIC_ROOT'))
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder', )

View File

@ -17,9 +17,9 @@ from django.conf import settings
from django.conf.urls import include from django.conf.urls import include
from django.conf.urls import url from django.conf.urls import url
from django.contrib import admin from django.contrib import admin
from django.views.generic import TemplateView
from figurines.views import FigurineViewSet from figurines.views import FigurineViewSet
from figurines.views import SetViewSet from figurines.views import SetViewSet
from games.views import GameList
from games.views import GameTimelineViewSet from games.views import GameTimelineViewSet
from games.views import GameViewSet from games.views import GameViewSet
from games.views import PlatformViewSet from games.views import PlatformViewSet
@ -42,7 +42,9 @@ router.register(
r'game_timelines', GameTimelineViewSet, base_name='game_timeline') r'game_timelines', GameTimelineViewSet, base_name='game_timeline')
urlpatterns = [ urlpatterns = [
url(r'^$', GameList.as_view(), name='homepage'), url(r'^$',
TemplateView.as_view(template_name="core/homepage.html"),
name='homepage'),
url(r'^games/', include('games.urls', namespace='games'), name='games'), url(r'^games/', include('games.urls', namespace='games'), name='games'),
url(r'^admin/', admin.site.urls), url(r'^admin/', admin.site.urls),
url(r'^api/v1/', include(router.urls), name='api'), url(r'^api/v1/', include(router.urls), name='api'),

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,27 @@
/*
Eventually by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
/* BG */
#bg {
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=25)";
}
/* Type */
body, input, select, textarea {
color: #fff;
}
/* Form */
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
border: solid 2px #fff;
}

View File

@ -0,0 +1,12 @@
/*
Eventually by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
/* Signup Form */
#signup-form > * {
display: inline-block;
vertical-align: top;
}

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 382 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,43 @@
{% load static %}
<!DOCTYPE HTML>
<!--
Eventually by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>OpenBackloggery</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<!--[if lte IE 8]><script src="{% static 'js/ie/html5shiv.js' %}"></script><![endif]-->
<link rel="stylesheet" href="{% static 'css/main.css' %}" />
<!--[if lte IE 8]><link rel="stylesheet" href="{% static 'css/ie8.css' %}" /><![endif]-->
<!--[if lte IE 9]><link rel="stylesheet" href="{% static 'css/ie9.css' %}" /><![endif]-->
</head>
<body>
<!-- Header -->
<header id="header">
<h1>OpenBackloggery</h1>
<p>Just track games and figurine collection<br />
through a website.</p>
</header>
<!-- Footer -->
<footer id="footer">
<ul class="icons">
<li><a href="https://forge.o9.re/olivier/openbackloggery" class="icon fa-git-square"><span class="label">GitHub</span></a></li>
</ul>
<ul class="copyright">
<li>&copy; OpenBackloggery.</li><li>Credits: <a href="http://unsplash.com/">Unsplash</a> + <a href="http://html5up.net">HTML5 UP</a></li>
</ul>
</footer>
<!-- Scripts -->
<!--[if lte IE 8]><script src="{% static 'js/ie/respond.min.js' %}"></script><![endif]-->
<script src="{% static 'js/main.js' %}"></script>
</body>
</html>