Git Product home page Git Product logo

Comments (6)

alesanchezr avatar alesanchezr commented on June 24, 2024

Esto te quedo perfecto chamo. 💪

from breatheco-de.

alesanchezr avatar alesanchezr commented on June 24, 2024

Te voy a agregar una hora mas para que le pongas un boton para cambiar idioma parecido a el que aparece en las lessons:

Puedes usar ese componente:
Codigo del component: https://github.com/breatheco-de/projects/blob/master/src/components/language.js

Este es el CSS:

.language-switcher{
    position: fixed;
    width: 40px;
    cursor: pointer;
    bottom: 5px;
    right: 5px;
    padding: 5px;
    font-size: 10px;
    box-sizing: border-box;
    border-radius: 25px;
}
.language-switcher .icon{
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 100%;
    background-color: rgba(0,0,0,0.2);
}
.language-switcher ul{
        display: none;
        padding: 0;
        margin: 0;
}
.language-switcher ul li{
    list-style: none;
    width: 40px;
    padding: 5px;
    margin-top: -4px;
    margin-left: -6px;
}
.language-switcher:hover{
    border: 1px solid #f8f9fa;
    background: rgb(215, 215, 215);
}
.language-switcher:hover ul{ display: block; }

4B3cjGm9eL

from breatheco-de.

alesanchezr avatar alesanchezr commented on June 24, 2024

Basicamente cambiar el idioma es una redireccion de URL, refrescas la pagina y le pones el parametro del lang en el queryString

from breatheco-de.

alesanchezr avatar alesanchezr commented on June 24, 2024

@Omonroy36

from breatheco-de.

alesanchezr avatar alesanchezr commented on June 24, 2024

Aprobado.

from breatheco-de.

Jtoledo88 avatar Jtoledo88 commented on June 24, 2024

Pagado

from breatheco-de.

Related Issues (20)

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.