KaiqueMCR / Campin

This repository is a challenge offered by Rocketseat to boost coding front-end abilities, and help beginners to reach the next level.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Camp.in Rocketseat

GitHub top language GitHub GitHub repo size GitHub issues GitHub forks GitHub stars

🚀 This repository is a challenge offered by Rocketseat to boost coding front-end abilities, and help beginners to reach the next level. Rocketseat is a brazilian educational institution of technology, so the page language is pt-br.

Screenshot

Click on the image above to see in production 👆

The biggest challenge

The biggest challenge for me was styling a custom checkbox design, this took me a few minutes of research and tutorials to do this correctly.

.container {
  display: block;
  position: relative;
  cursor: pointer;
  padding-left: 25px;

  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }

  input:checked ~ .check {
    background: var(--primary-color);
    border: none;
  }

  .check::after {
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid var(--form-background);
    border-radius: 1px;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
  }

  input:checked ~ .check::after {
    display: block;
  }
}

.check {
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: transparent;
  position: absolute;
  border: solid 1px var(--text-base);
  border-radius: 5px;

  &::after {
    content: '';
    position: absolute;
    display: none;
  }
}

👾 Technologies

  • HTML
  • CSS (Sass)
  • Javascript

License

MIT

About

This repository is a challenge offered by Rocketseat to boost coding front-end abilities, and help beginners to reach the next level.

License:MIT License


Languages

Language:SCSS 53.1%Language:HTML 38.8%Language:JavaScript 8.1%