-
{props.t('AppName')}
-
A boilerplate for products.
-
-
-
+
+ {/* https://v4-alpha.getbootstrap.com/components/carousel/ */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Elige un radio de vigilancia
+
+
+
+
+
+
+
+
Recibe alertas de fuegos en esa zona
+
+
+
+
+
+
+
+
Alerta cuando hay un fuego
+
+
+
+
+
+
+ Previous
+
+
+
+ Next
+
+
+
+
+
+
+
+
{props.t('AppName')}
+
+
Siempre alerta a los fuegos en nuestro vecindario
+
+
+
-
-
);
};
+function scaleHeader() {
+ var scalable = document.querySelectorAll('.scale--js');
+ var margin = 10;
+ for (var i = 0; i < scalable.length; i++) {
+ var scalableContainer = scalable[i].parentNode;
+ scalable[i].style.transform = 'scale(1)';
+ var scalableContainerWidth = scalableContainer.offsetWidth - margin;
+ var scalableWidth = scalable[i].offsetWidth;
+ scalable[i].style.transform = 'scale(' + scalableContainerWidth / scalableWidth + ')';
+ scalableContainer.style.height = scalable[i].getBoundingClientRect().height + 'px';
+ }
+}
+
+
+// Debounce by David Walsch
+// https://davidwalsh.name/javascript-debounce-function
+
+function debounce(func, wait, immediate) {
+ var timeout;
+ return function() {
+ var context = this, args = arguments;
+ var later = function() {
+ timeout = null;
+ if (!immediate) func.apply(context, args);
+ };
+ var callNow = immediate && !timeout;
+ clearTimeout(timeout);
+ timeout = setTimeout(later, wait);
+ if (callNow) func.apply(context, args);
+ };
+};
+
+var myScaleFunction = debounce(function() {
+ scaleHeader();
+}, 250);
+
+myScaleFunction();
+
+window.addEventListener('resize', myScaleFunction);
+
export default translate([], { wait: true })(Index);
diff --git a/imports/ui/stylesheets/app.scss b/imports/ui/stylesheets/app.scss
index 21c9469..f1676f0 100644
--- a/imports/ui/stylesheets/app.scss
+++ b/imports/ui/stylesheets/app.scss
@@ -1,3 +1,4 @@
@import './colors';
@import './forms';
@import './bootstrap-overrides';
+@import './custom';
diff --git a/package.json b/package.json
index 2246aa5..6e260fd 100644
--- a/package.json
+++ b/package.json
@@ -35,6 +35,7 @@
"react-i18next": "^6.1.0",
"react-router-bootstrap": "^0.24.3",
"react-router-dom": "^4.2.2",
+ "reactstrap": "^5.0.0-alpha.3",
"simpl-schema": "^0.3.2"
},
"devDependencies": {