Giter Site home page Giter Site logo

es-rene99 / rock-paper-scissors Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 66 KB

Rock paper scissors game with vanilla JS.

Home Page: https://es-rene99.github.io/rock-paper-scissors/

JavaScript 19.98% HTML 12.56% CSS 67.46%
css html5 js the-odin-project

rock-paper-scissors's Introduction

Rock Paper Scissors for the Odin Project

Cool things I learned

  • Is preferred to use sanitize.css than normalize.css for browser compatibility
  • Website for further explanation of BEM methodology
    • Block?

      • Functionally independent component that can be reused, represented by the class attribute.

      • Describes a purpose, so it cannot be div, but it can be a semantic element like main

        • menu
        • button
        • error
        • header
        • logo
        • subject-form
      • They can be nested in each other

        <!-- `header` block -->
        <header class="header">
            <!-- Nested `logo` block -->
            <div class="logo"></div>
        
            <!-- Nested `search-form` block -->
            <form class="search-form"></form>
        </header>
      • If the code section might be reused and it doesn't depend on the other page components being implemented.

    • Element

      • Composite part of a block that can't be used separately from it.
      • Describes the purpose
        • item
        • text
        • input
        • button
      • the structure is block-name__element-name
      • They always need to be inside of the block
      • If a section of a code can't be used separately without the parent entity(the block) then is an element.
    • Modifier

      • Describes a state or behavior of a block or element
        • color_red
        • size_b
        • theme_dark
        • size_s
        • left-top
      • The structure is block__modifier-name_value
      • Is separated by a single underscore
    • ID selectors for BEM should not be used, to ensure the necessary independence for blocks and reusing them from place to place.

rock-paper-scissors's People

Contributors

es-rene99 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.