Show HN: DropClicks – A clear the screen game (PWA built with react)
dropclicks.net4 pointsby danab1 comments
/**
* FizzBuzz with CSS
*/
body {
counter-reset: fizzbuzz;
}
div {
width: 100px;
height: 20px;
background: #ddd;
margin: 0 0 10px;
}
div::after {
content: counter(fizzbuzz);
counter-increment: fizzbuzz;
}
div:nth-child(3n)::after {
content: "fizz";
}
div:nth-child(5n)::after {
content: "buzz";
}
div:nth-child(15n)::after {
content: "fizzbuzz";
}
Built with react, which was overall a nice experience. Repo is here https://github.com/danab/DropClicks/, any code feedback would be lovely!