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">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Challenge CSS 02</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<p>Green</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="pages">
<a class="pages__link" href="/">Facebook</a>
<a class="pages__link" href="/">Instagram</a>
<a class="pages__link" href="/">Twitter</a>
</div>
</footer>
</body>
</html>
99 changes: 99 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.

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

$primary-color: #2E9C1E;
$secondary-color: #2D5F9C;
$box-shadow: 1px 1px 12px 0px #0000008a;

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

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

ul {
display: flex;
list-style: none;

li {
margin-right: 1rem;
cursor: pointer;
}
}
}

main {
margin-top: 10px;
color: black;
text-align: center;
}

.cards {
display: flex;
justify-content: center;
margin: 30px 0;
}

.card {
border-radius: 15px;
overflow: hidden;
background: $primary-color;
display: flex;
flex-direction: column;
align-items: center;
margin: 0 20px;
box-shadow: $box-shadow;

&__img {
width: 400px;
height: 350px;
object-fit: cover;
}
&__subtitle {
margin-top: 0px;
}
}

.social {
display: flex;
justify-content: center;
padding-bottom: 30px;
&__button {
padding: 10px 20px;
margin: 0 20px;
border-radius: 20px;
color: white;
font-weight: bold;
box-shadow: $box-shadow;
cursor: pointer;
background-color: $secondary-color;
border: 3px solid $secondary-color;

&:hover {
background-color: white;
color: $secondary-color;
}
}
}

footer {
background: $primary-color;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 30px 0px;
position: absolute;
bottom: 0;
left: 0;
right: 0;

p {
margin: 0px;
}
}

.pages {
margin: 15px 0px;

&__link {
color: $secondary-color;
}
}