diff --git a/babybuddy/settings/base.py b/babybuddy/settings/base.py index 18e34fe6..b3e617a9 100644 --- a/babybuddy/settings/base.py +++ b/babybuddy/settings/base.py @@ -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/# diff --git a/babybuddy/static_src/root/android-chrome-192x192.png b/babybuddy/static_src/root/android-chrome-192x192.png new file mode 100644 index 00000000..0fcc7af7 Binary files /dev/null and b/babybuddy/static_src/root/android-chrome-192x192.png differ diff --git a/babybuddy/static_src/root/android-chrome-512x512.png b/babybuddy/static_src/root/android-chrome-512x512.png new file mode 100644 index 00000000..05e2ee41 Binary files /dev/null and b/babybuddy/static_src/root/android-chrome-512x512.png differ diff --git a/babybuddy/static_src/root/apple-touch-icon.png b/babybuddy/static_src/root/apple-touch-icon.png new file mode 100644 index 00000000..ab0410c0 Binary files /dev/null and b/babybuddy/static_src/root/apple-touch-icon.png differ diff --git a/babybuddy/static_src/root/browserconfig.xml b/babybuddy/static_src/root/browserconfig.xml new file mode 100644 index 00000000..f9c2e67f --- /dev/null +++ b/babybuddy/static_src/root/browserconfig.xml @@ -0,0 +1,9 @@ + + + + + + #2b5797 + + + diff --git a/babybuddy/static_src/root/favicon-16x16.png b/babybuddy/static_src/root/favicon-16x16.png new file mode 100644 index 00000000..ba160d49 Binary files /dev/null and b/babybuddy/static_src/root/favicon-16x16.png differ diff --git a/babybuddy/static_src/root/favicon-32x32.png b/babybuddy/static_src/root/favicon-32x32.png new file mode 100644 index 00000000..a7885e56 Binary files /dev/null and b/babybuddy/static_src/root/favicon-32x32.png differ diff --git a/babybuddy/static_src/root/favicon.ico b/babybuddy/static_src/root/favicon.ico new file mode 100644 index 00000000..47c5a745 Binary files /dev/null and b/babybuddy/static_src/root/favicon.ico differ diff --git a/babybuddy/static_src/root/manifest.json b/babybuddy/static_src/root/manifest.json new file mode 100644 index 00000000..4fbe1818 --- /dev/null +++ b/babybuddy/static_src/root/manifest.json @@ -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" +} \ No newline at end of file diff --git a/babybuddy/static_src/root/mstile-150x150.png b/babybuddy/static_src/root/mstile-150x150.png new file mode 100644 index 00000000..a5e3ce57 Binary files /dev/null and b/babybuddy/static_src/root/mstile-150x150.png differ diff --git a/babybuddy/static_src/root/safari-pinned-tab.svg b/babybuddy/static_src/root/safari-pinned-tab.svg new file mode 100644 index 00000000..e12fc42e --- /dev/null +++ b/babybuddy/static_src/root/safari-pinned-tab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/babybuddy/templates/babybuddy/base.html b/babybuddy/templates/babybuddy/base.html index d6474239..4757b9ef 100644 --- a/babybuddy/templates/babybuddy/base.html +++ b/babybuddy/templates/babybuddy/base.html @@ -7,8 +7,16 @@ {% block title %}{% endblock %} | Baby Buddy + + + + + + + + diff --git a/gulpfile.js/config.js b/gulpfile.js/config.js index 3ee0894a..e48e2390 100644 --- a/gulpfile.js/config.js +++ b/gulpfile.js/config.js @@ -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: { diff --git a/gulpfile.js/tasks/extras.js b/gulpfile.js/tasks/extras.js index dd7bac02..ccbaba06 100644 --- a/gulpfile.js/tasks/extras.js +++ b/gulpfile.js/tasks/extras.js @@ -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); +});