Git Product home page Git Product logo

challenge-css-02's Introduction

馃帹 Challenge CSS 02

SASS Practice

馃帹 驴En qu茅 consiste?

En este reto tendr谩s tres componentes: un c贸digo HTML, una fracci贸n de c贸digo SASS y una fracci贸n de c贸digo CSS. La idea, es que transformes el c贸digo CSS a SASS usando la metodolog铆a BEM.

  • C贸digo base: Aqu铆
  • Gu铆a base para instalaci贸n: Aqu铆 // Tambi茅n puedes usar Codepen

Te dejo la siguiente documentaci贸n sobre SASS:

Te dejo la siguiente documentaci贸n sobre BEM:

HTML

<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>

SASS hasta el momento:

@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;
  &__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; 
  }
}

CSS que debes "transformar" a SASS usando BEM:

Puedes usar mixins con par谩metros 馃か

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

footer p {
  margin: 0px;
}

.links {
  margin: 15px 0px;
}

.link-1 {
  color: ORCHID;
}

.link-2 {
  color: MEDIUMTURQUOISE;
}

.link-3 {
  color: SALMON;
}

馃帹 Pasos a seguir:

  1. Hacer un "Fork" de este proyecto.
  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-CSS-02

馃帹 Licencia

challenge-CSS-02 se lanza bajo la licencia MIT.

challenge-css-02's People

Contributors

juliocesardeveloper avatar teffcode avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.