Skip to content

Commit

Permalink
Ajustes de estilo
Browse files Browse the repository at this point in the history
  • Loading branch information
izamith committed Apr 19, 2021
1 parent 0d2ceb9 commit fd20b98
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion data/dados.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
estado, perfil
Rio de Janeiro,@patinanju
Rio de Janeiro,@discostreetz_
Rio de Janeiro,@haoleskater
Rio de Janeiro,@lulu_rolls
Rio de Janeiro,@daniela.orocha
Expand All @@ -11,6 +10,7 @@ Rio de Janeiro,@gabilly54
Rio de Janeiro,@kika__cordova
Rio de Janeiro,@4na.m.machado
Rio de Janeiro,@analumnsr
Rio de Janeiro,@discostreetz_
Rio de Janeiro,@sophi_guimaraes
Rio de Janeiro,@cleo.bicho
Rio de Janeiro,@lanes0104
Expand Down
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,17 @@
</div>


<div style ="display: none;" class ="row" id="box-info">
<div class ="row" id="box-info">
<div class="col-12 infoTitulo">
<img src="assets/minas.png" style="margin-bottom: 10px;">
<p class="caveat"> EM <span id="estadoExib">ESTADO</span></p>
<p class="caveat"> EM <span id="estadoExib">ESTADO</span></p>
<p class="infoFooter">Clique sobre o nome para ser redirecionada para o instagram</p>
</div>
<hr class="col-12 divisoria">
<div class="col-12" id="infoConteudo">
<p id="mina1">@HAOLESKATER</p>
</div>
<p class="infoFooter">Clique sobre o nome para ser redirecionada para o instagram</p>

</div>


Expand Down
15 changes: 12 additions & 3 deletions scripts/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ map.on('load', function () {
//desenhar o popup
document.getElementById('infoConteudo').innerHTML=''
document.getElementById('estadoExib').innerHTML=aFeatures[0].properties.lugar.toUpperCase()
document.getElementById('box-info').style.display="inline-block"
document.getElementById('box-info').style.height= '400px';
document.getElementById('box-info').style.opacity= 1;
var caixa = document.getElementById('infoConteudo')


Expand Down Expand Up @@ -117,21 +118,29 @@ map.on('load', function () {
map.on('click', function(e) {
if (e.defaultPrevented === false) {
console.log('hide taskbar');
document.getElementById('box-info').style.display="none"
document.getElementById('box-info').style.height= '0';
document.getElementById('box-info').style.opacity= 0;
}
});


//bolinhas sozinhas :(
map.on('click', 'unclustered-point', function (e) {
map.on('mouseenter', 'unclustered-point', function () {
map.getCanvas().style.cursor = 'pointer';
});
map.on('mouseleave', 'unclustered-point', function () {
map.getCanvas().style.cursor = '';
});
var perfilEmInfo = e.features[0].properties.mag;
var onde = e.features[0].properties.lugar;
console.log(perfilEmInfo,onde)

//desenhar o popup
document.getElementById('infoConteudo').innerHTML=''
document.getElementById('estadoExib').innerHTML=onde.toUpperCase()
document.getElementById('box-info').style.display="inline-block"
document.getElementById('box-info').style.height= '400px';
document.getElementById('box-info').style.opacity= 1;
var caixa = document.getElementById('infoConteudo')

var link = 'https://www.instagram.com/'+ perfilEmInfo.substr(1)+'/';
Expand Down
11 changes: 10 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ body {
font-size: 15px;
text-align: center;
padding-top: 30px;
height: 0;
opacity: 0;
transition: height 0.5s, opacity 0.5s linear;
}

.infoTitulo p {
Expand All @@ -129,13 +132,19 @@ body {
color: rgba(200, 189, 164, 0.25);
}

#infoConteudo {
padding-bottom: 50px;
min-height: 300px;
max-height: 300px;
overflow: auto;
}

#infoConteudo a {
color: #C14B34;
font-size: 15px;
text-align: center;
}


.infoFooter {
color: rgba(35, 45, 24, 0.47);
font-size: 13px;
Expand Down

0 comments on commit fd20b98

Please sign in to comment.