Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions m1/examen-m1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="cat">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="style.css">
<title>Examen</title>
</head>
<body>
<header class="my-header">
<h1>Curs Mean Stack 2019</h1>
<nav>
<ul class="nav-list">

<li><a href="#">Inici</a></li>
<li><a href="#">Calendari</a></li>
<li><a href="#">Activitats</a></li>
<li><a href="#">Persones</a></li>
<li><a href="#">Projectes</a></li>

</ul>
</nav>
</header>

<main>
<div class="flex-container">

<div class="box box1"><a href="#"><h2 class="shadow">alumnes</h2></a></div>
<div class="box box2"><a href="#"><h2 class="shadow">recursos</h2></a></div>
</div>
</main>

<footer>
<p>Copyright 2019 mean-stack <abbr title="Hyperxtext Markup language">html</abbr> <abbr title="Cascading Stylesheet">css</abbr> | javascript</p>
</footer>


</body>
</html>
100 changes: 100 additions & 0 deletions m1/examen-m1/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions m1/examen-m1/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

115 changes: 115 additions & 0 deletions m1/examen-m1/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
/*RESET Y PROPIEDADES GLOBALES*/

*{ margin:0; padding:0; }

$primary-color: whitesmoke;

body{
font-family: Arial, Helvetica, sans-serif;
font-size:1rem;
color: $primary-color;

}

h1{
font-size: 2.8rem;

}

h2{font-size: 2.3rem; }

a{
text-decoration: none;
color: $primary-color;
}


li {
list-style-type: none;
}

footer{
background-color:#333;
display: flex;
align-items: flex-end;
justify-content: center;
font-size: 0.8rem;
}
/*LAYOUT*/

header,footer{
width:100%;
height:220px;
}

.my-header{
padding-top:3rem;
text-align: center;
background-image:url('https://concepto.de/wp-content/uploads/2019/02/paisaje-natural-item-5.jpg');
background-repeat: no-repeat;
background-size: cover;
filter: grayscale(100%);
}

main{
min-height: 36vh;
margin:2rem;
padding:1.5rem;

}


/*DETALLES*/

nav{

ul{
display: flex;
justify-content: center;
padding-top: 5em;


}
li {
padding:1rem;

}
}

.flex-container{
display:flex;
flex-wrap: wrap;
align-content: center;
justify-content: space-between;
margin-left:1em;
margin-right:1em;

}


.box{
display: flex;
justify-content: center;
align-items: center;
width:400px;
height:200px;
border-radius: 15px;
}


.box:hover{
filter: drop-shadow(16px 16px 20px #333);
background-color: #333;
opacity:0.1;
z-index: 0;


}

h2:hover {
position: relative;
z-index: 1;
filter: drop-shadow(30px 10px 4px #333);


}