diff --git a/src/Assets/centroHistoricodeParaty.png b/src/Assets/centroHistoricodeParaty.png new file mode 100644 index 0000000..8ee70e5 Binary files /dev/null and b/src/Assets/centroHistoricodeParaty.png differ diff --git a/src/Assets/cristoRedentor.png b/src/Assets/cristoRedentor.png new file mode 100644 index 0000000..bb57867 Binary files /dev/null and b/src/Assets/cristoRedentor.png differ diff --git a/src/Assets/ilhaGrande.png b/src/Assets/ilhaGrande.png new file mode 100644 index 0000000..e485968 Binary files /dev/null and b/src/Assets/ilhaGrande.png differ diff --git a/src/Assets/paoDeAcucar.png b/src/Assets/paoDeAcucar.png new file mode 100644 index 0000000..2ae3465 Binary files /dev/null and b/src/Assets/paoDeAcucar.png differ diff --git a/src/scripts/components/TouristAttractions.js b/src/scripts/components/TouristAttractions.js index f8d1a58..28b7a42 100644 --- a/src/scripts/components/TouristAttractions.js +++ b/src/scripts/components/TouristAttractions.js @@ -18,10 +18,12 @@ export class TouristAttractions { this.inputTitle = document.querySelector('.input-text__titulo'); this.inputDescription = document.querySelector('.input-text__descricao'); + + } events () { - this.inputFile.addEventListener('change', this.imgPreview.bind(this), false); + this.inputFile.addEventListener('change', this.imgPreview.bind(this)); this.form.addEventListener('submit', this.addProperty.bind(this)); } @@ -47,9 +49,6 @@ export class TouristAttractions { img.classList.add('img-result'); - this.labelInput.innerText = ""; - - this.labelInput.appendChild(img); }); @@ -57,6 +56,7 @@ export class TouristAttractions { reader.readAsDataURL(file); + this.labelInput.innerText = ""; this.labelInput.style.border = "none"; @@ -97,6 +97,8 @@ export class TouristAttractions { }; + + renderListItems () { let spotStructure = ''; @@ -109,9 +111,13 @@ export class TouristAttractions {
-

${i.titulo}

+
+

${i.titulo}

+
+

${i.description}

+
`; diff --git a/src/scripts/components/slick.min.js b/src/scripts/components/slick.min.js new file mode 100644 index 0000000..42172c2 --- /dev/null +++ b/src/scripts/components/slick.min.js @@ -0,0 +1 @@ +!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(t,o){var s,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:i(t),appendDots:i(t),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return i('