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
54 changes: 54 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Platzi Master: CSS to SASS</title>
<link rel="stylesheet" href="./styles.css">

</head>
<body>
<header>
<p>LOGO</p>
<ul>
<li>ABOUT</li>
<li>ARTICLES</li>
<li>SUBSCRIBE</li>
</ul>
</header>
<main>
<h1>GREEN</h1>
<h2>HOLISTIC HEALTH</h2>
</main>
<section class="cards">
<section class="card">
<img class="card__img" src="https://images.pexels.com/photos/3674030/pexels-photo-3674030.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" alt="">
<h2 class="card__title">Title</h2>
<p class="card__subtitle">Subtitle</p>
</section>
<section class="card">
<img class="card__img" src="https://images.pexels.com/photos/3865676/pexels-photo-3865676.jpeg?auto=compress&cs=tinysrgb&dpr=2&w=500" alt="">
<h2 class="card__title">Title</h2>
<p class="card__subtitle">Subtitle</p>
</section>
<section class="card">
<img class="card__img" src="https://images.pexels.com/photos/3059398/pexels-photo-3059398.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" alt="">
<h2 class="card__title">Title</h2>
<p class="card__subtitle">Subtitle</p>
</section>
</section>
<section class="social">
<button class="social__button">ABOUT</button>
<button class="social__button">ARTICLES</button>
<button class="social__button">SUBSCRIBE</button>
</section>
<footer>
<p>Gracias por visitarnos</p>
<p>Estas son nuestras redes sociales</p>
<div class="links">
<a class="link-1" href="/">Facebook</a>
<a class="link-2" href="/">Instagram</a>
<a class="link-3" href="/">Twitter</a>
</div>
</footer>
</body>
</html>
79 changes: 79 additions & 0 deletions styles.css

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

1 change: 1 addition & 0 deletions styles.css.map

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

85 changes: 85 additions & 0 deletions styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

@mixin color_link($color) {
color: $color;
}

body {
margin: 0;
padding: 0;
font-family: 'Roboto', sans-serif;
}

header {
background: HONEYDEW;
display: flex;
justify-content: space-between;
padding: 0px 20px;
}

main {
text-align: center;
}

.cards {
display: flex;
justify-content: space-evenly;
margin-bottom: 30px;
}

.card {
border-radius: 15px;
overflow: hidden;
background: HONEYDEW;
display: flex;
flex-direction: column;
align-items: center;
&__img {
width: 200px;
height: 120px;
object-fit: cover;
}
&__subtitle {
margin-top: 0px;
}
}

.social {
display: flex;
justify-content: space-evenly;
padding-bottom: 30px;
&__button {
padding: 10px 20px;
border-radius: 20px;
border: 3px solid HONEYDEW;
}
}

footer {
background: HONEYDEW;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 30px 0px;

p {
margin: 0px;
}
}

.links {
margin: 15px 0px;
}

.link {
&-1 {
@include color_link(ORCHID);
}
&-2 {
@include color_link( MEDIUMTURQUOISE);
}
&-3 {
@include color_link(SALMON);
}
}