Add root files config and temporary favicon.
|
@ -123,6 +123,8 @@ STATIC_URL = '/static/'
|
|||
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||
|
||||
WHITENOISE_ROOT = os.path.join(BASE_DIR, 'static', 'root')
|
||||
|
||||
|
||||
# Django Rest Framework
|
||||
# http://www.django-rest-framework.org/#
|
||||
|
|
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 11 KiB |
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig>
|
||||
<msapplication>
|
||||
<tile>
|
||||
<square150x150logo src="/mstile-150x150.png"/>
|
||||
<TileColor>#2b5797</TileColor>
|
||||
</tile>
|
||||
</msapplication>
|
||||
</browserconfig>
|
After Width: | Height: | Size: 698 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 15 KiB |
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/android-chrome-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png"
|
||||
},
|
||||
{
|
||||
"src": "/android-chrome-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 13 KiB |
|
@ -7,8 +7,16 @@
|
|||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>{% block title %}{% endblock %} | Baby Buddy</title>
|
||||
|
||||
<link rel="stylesheet" href="{% static "babybuddy/css/app.css" %}" />
|
||||
<link rel="stylesheet" href="{% static "babybuddy/css/vendor.css" %}" />
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{% static "babybuddy/root/apple-touch-icon.png" %}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{% static "babybuddy/root/favicon-32x32.png" %}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{% static "babybuddy/root/favicon-16x16.png" %}">
|
||||
<link rel="manifest" href="{% static "babybuddy/root/manifest.json" %}">
|
||||
<link rel="mask-icon" href="{% static "babybuddy/root/safari-pinned-tab.svg" %}" color="#5bbad5">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
</head>
|
||||
<body style="padding-top: 3rem;">
|
||||
|
||||
|
|
|
@ -13,7 +13,11 @@ module.exports = {
|
|||
extrasConfig: {
|
||||
fonts: {
|
||||
dest: basePath + 'fonts/',
|
||||
extras: 'node_modules/font-awesome/fonts/*'
|
||||
files: 'node_modules/font-awesome/fonts/*'
|
||||
},
|
||||
root: {
|
||||
dest: basePath + 'root/',
|
||||
files: 'babybuddy/static_src/root/*'
|
||||
}
|
||||
},
|
||||
scriptsConfig: {
|
||||
|
|
|
@ -5,11 +5,18 @@ var pump = require('pump');
|
|||
var extrasConfig = require('../config.js').extrasConfig;
|
||||
|
||||
|
||||
gulp.task('extras', ['extras:fonts']);
|
||||
gulp.task('extras', ['extras:fonts', 'extras:root']);
|
||||
|
||||
gulp.task('extras:fonts', function(cb) {
|
||||
pump([
|
||||
gulp.src(extrasConfig.fonts.extras),
|
||||
gulp.src(extrasConfig.fonts.files),
|
||||
gulp.dest(extrasConfig.fonts.dest)
|
||||
], cb);
|
||||
});
|
||||
|
||||
gulp.task('extras:root', function(cb) {
|
||||
pump([
|
||||
gulp.src(extrasConfig.root.files),
|
||||
gulp.dest(extrasConfig.root.dest)
|
||||
], cb);
|
||||
});
|
||||
|
|