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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.config
style-dist.css
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ footer p {
## 🎨 Pasos a seguir:

1. Hacer un "Fork" de este proyecto.
2. Revolver el reto.
2. Resolver el reto.
3. Crear un Pull Request hacia este repositorio.

## 🎨 ¿Cómo contribuir?

Si quieres agregar o mejorar algo, te invito a colaborar directamente en este repositorio: [challenge-html-07](https://github.com/platzimaster/challenge-html-07/)
Si quieres agregar o mejorar algo, te invito a colaborar directamente en este repositorio: [challenge-CSS-02](https://github.com/PlatziMaster/challenge-CSS-02)

## 🎨 Licencia

challenge-html-06 se lanza bajo la licencia [MIT](https://opensource.org/licenses/MIT).
challenge-CSS-02 se lanza bajo la licencia [MIT](https://opensource.org/licenses/MIT).
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">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Challenge CSS 02</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="info">
<button class="info__button">ABOUT</button>
<button class="info__button">ARTICLES</button>
<button class="info__button">SUBSCRIBE</button>
</section>
<footer>
<p>Gracias por visitarnos</p>
<p>Estas son nuestras redes sociales</p>
<div class="social">
<a class="social__facebook" href="/">Facebook</a>
<a class="social__instagram" href="/">Instagram</a>
<a class="social__twitter" href="/">Twitter</a>
</div>
</footer>
<link rel="stylesheet" href="style.css">
</body>
</html>
1 change: 1 addition & 0 deletions style-dist.css

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

78 changes: 78 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
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;
}
.card__img {
width: 200px;
height: 120px;
object-fit: cover;
}
.card__subtitle {
margin-top: 0px;
}

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

/* Inicia Footer */
footer {
background: HONEYDEW;
display: flex;
flex-direction: column;
align-items: center;
align-items: center;
padding: 30px 0px;
}

footer p {
margin: 0px;
}

.social {
margin: 15px 0px;
}
.social__facebook {
color: ORCHID;
}
.social__instagram {
color: MEDIUMTURQUOISE;
}
.social__twitter {
color: SALMON;
}
84 changes: 84 additions & 0 deletions style.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');
$main-color: HONEYDEW;
$color-1: ORCHID;
$color-2: MEDIUMTURQUOISE;
$color-3: SALMON;
@mixin style-1 {
background: $main-color;
display: flex;
flex-direction: column;
align-items: center;
}

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

header {
background: $main-color;
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;
@include style-1;
&__img {
width: 200px;
height: 120px;
object-fit: cover;
}
&__subtitle {
margin-top: 0px;
}
}

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

/* Inicia Footer */

footer {
@include style-1;
align-items: center;
padding: 30px 0px;
}

footer p {
margin: 0px;
}

.social {
margin: 15px 0px;
&__facebook {
color: $color-1;
}
&__instagram {
color: $color-2;
}
&__twitter {
color: $color-3;
}
}