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
37 changes: 37 additions & 0 deletions m1/examen-m1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<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>Prueba práctica</title>
</head>
<body>
<div id="grid">
<header>
<h1>Curs Mean-stack 2019</h1>
<nav>
<ul>
<li class="list-item"><a href="#">Inici</a></li>
<li class="list-item"><a href="#">Calendari</a></li>
<li class="list-item"><a href="#">Activitats</a></li>
<li class="list-item"><a href="#">Persones</a></li>
<li class="list-item"><a href="#">Projectes</a></li>
</ul>
</nav>
</header>
<main>
<div class="alumnes">
<h2>alumnes</h2>
</div>
<div class="recursos">
<h2>recursos</h2>
</div>
</main>
<footer>
<p>Copyright© 2019 mean-stack - html | css | javascript</p>
</footer>
</div>
</body>
</html>
5 changes: 5 additions & 0 deletions m1/examen-m1/reset.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
body{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
104 changes: 104 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.

90 changes: 90 additions & 0 deletions m1/examen-m1/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
@import 'reset.scss';
$primary-color: #333;
$secondary-color: whitesmoke;
$back-color: #fff;
$main-font: Arial, sans-serif;
$manin-font: 1em;

#grid{
display: grid;
height: 100vh;
grid-template-columns: 1fr;
grid-template-rows: 1fr 2fr 1fr;
}
/*Header*/
header{
display: flex;
flex-direction: column;
justify-content: center;
color: #fff;
background-image: url(https://concepto.de/wp-content/uploads/2019/02/paisaje-natural-item-5.jpg);
background-repeat: no-repeat;
background-position: center top;
background-size: cover;
filter: grayscale(100%);
}
h1{
text-align: center;
font-size: 3.5em;
}
nav ul{
display: flex;
justify-content: center;
}
nav ul li{
list-style: none;
}
nav ul li a{
text-decoration: none;
padding: 5px 12px;
color: $secondary-color;
}
nav ul li a:hover{
text-shadow: 2px 2px 20px $primary-color;
}
/*main*/
main{
background-color: $back-color;
display: grid;
grid-template-areas: "alumnes recursos";
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr;
grid-gap: 1rem;
margin: 50px 0 0;
}
.alumnes, .recursos{
display: grid;
width: 20rem;
height: 15rem;
margin: 0 auto;
color: $secondary-color;
border: 1px solid $secondary-color;
border-radius: 8px;
}
.alumnes:hover,
.recursos:hover{
filter: drop-shadow(16px 16px 20px #333);
background-color: #000;
opacity: 0.1;
}
.alumnes h2,
.recursos h2{
font-size: 3em;
align-self: center;
text-align: center;
color: $secondary-color;
}
.alumnes h2:hover{
filter: drop-shadow(16px 16px 20px #333);
}
/*footer*/
footer{
background-color: $primary-color;
color: $secondary-color;
display: flex;
justify-content: center;
}
footer p{
font-size: calc(75%);
align-self: flex-end;
}