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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.sass-cache/
62 changes: 62 additions & 0 deletions css/index.css

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

7 changes: 7 additions & 0 deletions css/index.css.map

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

66 changes: 66 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./css/index.css" />
<title>Reto 02 CSS - Sergio Ruiz</title>
</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 class="footer">
<p class="footer__paragraph">Gracias por visitarnos</p>
<p class="footer__paragraph">Estas son nuestras redes sociales</p>
<div class="footer__links">
<a class="footer__link--1" href="/">Facebook</a>
<a class="footer__link--2" href="/">Instagram</a>
<a class="footer__link--3" href="/">Twitter</a>
</div>
</footer>
</body>
</html>
84 changes: 84 additions & 0 deletions sass/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
$backgroundPrincipal: HONEYDEW;
$colorEnlace1: ORCHID;
$colorEnlace2: MEDIUMTURQUOISE;
$colorEnlace3: SALMON;

@mixin footer {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 30px 0px;
}

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

header {
background: $backgroundPrincipal;
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: $backgroundPrincipal;
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 $backgroundPrincipal;
}
}

.footer {
background: $backgroundPrincipal;
@include footer;
&__paragraph {
margin: 0px;
}
&__links {
margin: 15px 0px;
}
&__link--1 {
color: $colorEnlace1;
}
&__link--2 {
color: $colorEnlace2;
}
&__link--3 {
color: $colorEnlace3;
}
}