Skip to content

Commit

Permalink
agrega header.php
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhfabian committed Oct 22, 2019
1 parent f1ee930 commit 14c02a3
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 8 deletions.
13 changes: 11 additions & 2 deletions Parents/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,18 @@
</a>
</div>
<div class="avatar-container">
<a href="#">
<a href="#" id="btn-login">
<img class="avatar" src="../images/default.png" alt="avatar">
</a>
</div>
<div class="menu-login">
<nav>
<ul>
<li><a href="http://" rel="noopener noreferrer">Mi perfil</a></li>
<li><a href="http://" ta rel="noopener noreferrer">Cerrar session</a></li>
</ul>
</nav>
</div>
</div>
</header>
</header>
<script src="../scripts/header-app.js"></script>
12 changes: 12 additions & 0 deletions scripts/header-app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var btnLogin = document.getElementById('btn-login');
var menuLogin = document.querySelector(".menu-login");

btnLogin.addEventListener("mouseover", (e)=>{
e.preventDefault();
menuLogin.classList.add('active')

})

menuLogin.addEventListener("mouseleave", ()=>{
menuLogin.classList.remove('active')
})
1 change: 1 addition & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
font-family: Arial, Helvetica, sans-serif;
padding: 0;
margin: 0;
list-style: none;
}
.container{
width: 1220px;
Expand Down
32 changes: 32 additions & 0 deletions styles/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ header div.header-container{
display: flex;
justify-content: space-between;
align-items: center;
position: relative;

}
header div.logo-container{
color: black;
Expand All @@ -37,3 +39,33 @@ header div.avatar-container img.avatar{
border-radius: 50%;
}

/*<<<<<<<<<<<<<<<<<'menu login'>>>>>>>>>>>>>>>>>*/
.active{
display: block !important;
}

div.menu-login{
width: 130px;
height: 100px;
padding: 10px;
position: absolute;
right: 0;
bottom: -105px;
background: #fff;
display: none;



}
div.menu-login ul{
display: flex;
flex-flow: column;
justify-content: center;
}

div.menu-login ul li {
padding: 7px 0;
}
div.menu-login ul li a{
color: #666;
}
13 changes: 7 additions & 6 deletions styles/lista.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ section.tabla {
width: 80%;
height: auto;
color: rgba(0, 0, 0, 0.8);
background: #69c9d6;
padding: 20px;
border-radius: 20px;
/* box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, .4); */


Expand Down Expand Up @@ -60,15 +63,13 @@ table {
}

th{
border: 2px solid #eaeded;
padding: 7px;
background: #fff;
color: #69c9d6;
height: 50px;
color: #fff;
}
td {
border: 1px solid #eaeded;
border-top: 1px solid #eaeded;
padding: 7px;
background: #B2EBF2;
min-height: 60px;
max-width: 220px;
overflow-wrap: break-word;
Expand All @@ -79,7 +80,7 @@ td.description{
table .camp-btn{
background: none;
border: none;
width: 130px;
width: 110px;
}

.inputo {
Expand Down

0 comments on commit 14c02a3

Please sign in to comment.