Add root files config and temporary favicon.

This commit is contained in:
Christopher Charbonneau Wells 2017-10-23 15:13:11 -04:00
parent 89b47b1f99
commit 029f554dfc
14 changed files with 52 additions and 3 deletions

View File

@ -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/#

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -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"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -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;">

View File

@ -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: {

View File

@ -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);
});