Nouvelle page d'accueil suivant HTML5UP.net
This commit is contained in:
parent
445a769ce5
commit
56c198f19a
@ -68,7 +68,8 @@ WSGI_APPLICATION = 'collection.wsgi.application'
|
||||
AUTH_PASSWORD_VALIDATORS = [
|
||||
{
|
||||
'NAME':
|
||||
'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
||||
'django.contrib.auth.password_validation.\
|
||||
UserAttributeSimilarityValidator',
|
||||
},
|
||||
{
|
||||
'NAME':
|
||||
@ -91,3 +92,7 @@ STATIC_URL = '/static/'
|
||||
STATIC_ROOT = os.path.join(os.path.abspath(os.path.curdir), 'static')
|
||||
if os.getenv('STATIC_ROOT', None):
|
||||
STATIC_ROOT = os.path.abspath(os.getenv('STATIC_ROOT'))
|
||||
|
||||
STATICFILES_FINDERS = (
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder', )
|
||||
|
@ -17,9 +17,9 @@ from django.conf import settings
|
||||
from django.conf.urls import include
|
||||
from django.conf.urls import url
|
||||
from django.contrib import admin
|
||||
from django.views.generic import TemplateView
|
||||
from figurines.views import FigurineViewSet
|
||||
from figurines.views import SetViewSet
|
||||
from games.views import GameList
|
||||
from games.views import GameTimelineViewSet
|
||||
from games.views import GameViewSet
|
||||
from games.views import PlatformViewSet
|
||||
@ -42,7 +42,9 @@ router.register(
|
||||
r'game_timelines', GameTimelineViewSet, base_name='game_timeline')
|
||||
|
||||
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'^admin/', admin.site.urls),
|
||||
url(r'^api/v1/', include(router.urls), name='api'),
|
||||
|
4
collection/core/static/css/font-awesome.min.css
vendored
Normal file
4
collection/core/static/css/font-awesome.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
27
collection/core/static/css/ie8.css
Normal file
27
collection/core/static/css/ie8.css
Normal 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;
|
||||
}
|
12
collection/core/static/css/ie9.css
Normal file
12
collection/core/static/css/ie9.css
Normal 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;
|
||||
}
|
1187
collection/core/static/css/main.css
Normal file
1187
collection/core/static/css/main.css
Normal file
File diff suppressed because it is too large
Load Diff
BIN
collection/core/static/fonts/FontAwesome.otf
Normal file
BIN
collection/core/static/fonts/FontAwesome.otf
Normal file
Binary file not shown.
BIN
collection/core/static/fonts/fontawesome-webfont.eot
Normal file
BIN
collection/core/static/fonts/fontawesome-webfont.eot
Normal file
Binary file not shown.
685
collection/core/static/fonts/fontawesome-webfont.svg
Normal file
685
collection/core/static/fonts/fontawesome-webfont.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 382 KiB |
BIN
collection/core/static/fonts/fontawesome-webfont.ttf
Normal file
BIN
collection/core/static/fonts/fontawesome-webfont.ttf
Normal file
Binary file not shown.
BIN
collection/core/static/fonts/fontawesome-webfont.woff
Normal file
BIN
collection/core/static/fonts/fontawesome-webfont.woff
Normal file
Binary file not shown.
BIN
collection/core/static/fonts/fontawesome-webfont.woff2
Normal file
BIN
collection/core/static/fonts/fontawesome-webfont.woff2
Normal file
Binary file not shown.
BIN
collection/core/static/images/bg01.jpg
Normal file
BIN
collection/core/static/images/bg01.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 870 KiB |
BIN
collection/core/static/images/bg02.jpg
Normal file
BIN
collection/core/static/images/bg02.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
8
collection/core/static/js/ie/html5shiv.js
vendored
Normal file
8
collection/core/static/js/ie/html5shiv.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
collection/core/static/js/ie/respond.min.js
vendored
Normal file
6
collection/core/static/js/ie/respond.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
173
collection/core/static/js/main.js
Normal file
173
collection/core/static/js/main.js
Normal file
File diff suppressed because one or more lines are too long
43
collection/core/templates/core/homepage.html
Normal file
43
collection/core/templates/core/homepage.html
Normal 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>© 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>
|
Loading…
Reference in New Issue
Block a user