Skip to content

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

License

Notifications You must be signed in to change notification settings

KaiqueMCR/Campin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published