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
73 changes: 73 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="main.css" />
<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>
<button class="card__button">ABOUT</button>
</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>
<button class="card__button">ARTICLES</button>
</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>
<button class="card__button">SUBSCRIBE</button>
</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="links-1" href="/">Facebook</a>
<a class="links-2" href="/">Instagram</a>
<a class="links-3" href="/">Twitter</a>
</div>
</footer>
</body>
</html>
117 changes: 117 additions & 0 deletions main.css

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

9 changes: 9 additions & 0 deletions main.css.map

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

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

$color-background: rgb(255, 240, 240);
$color-button: rgb(248, 167, 167);
$color-claro: rgb(250, 250, 250);

@mixin alineado-columna {
display: flex;
flex-direction: column;
align-items: center;
}

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

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

main {
text-align: center;
}

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

.card {
@include alineado-columna;
border-radius: 15px;
overflow: hidden;
background: $color-background;
transition-duration: 0.3s;
&:hover {
box-shadow: 0 0 5px 0 $color-button;
transform: translateY(-10px);
}
&__img {
width: 200px;
height: 120px;
object-fit: cover;
}
&__subtitle {
margin-top: 0px;
}
&__button {
padding: 10px 20px;
width: 100%;
border: 3px solid $color-button;
background-color: $color-button;
color: $color-claro;
font-weight: bold;
outline: none;
cursor: pointer;
}
}

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

footer {
@include alineado-columna;
background: $color-background;
justify-content: center;
padding: 30px 0px;
& p {
margin: 0px;
}
}

.links {
margin: 15px 0px;
&-1 {
color: ORCHID;
}
&-2 {
color: MEDIUMTURQUOISE;
}
&-3 {
color: SALMON;
}
}