GithubHelp home page GithubHelp logo

romulocraveiro / geracoes Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 15.56 MB

Exercício de JavaScript que mostra a geração de uma pessoa, seu significado e uma ilustração, a partir do ano de nascimento

Home Page: https://romulocraveiro.github.io/geracoes/

HTML 33.77% JavaScript 39.88% CSS 26.35%
javascript flexbox-css background gradients ifelse getelementsbyid pessoais

geracoes's Introduction

Descubra qual é a sua geração

Objetivos / Aims

  • Usar JavaScript para fazer aparecer imagens e textos ao se digitar o ano de nascimento e clicar no botão "Mostrar".
  • Use JavaScript to make images and texts appear when typying the birth year and clicking the button "Mostrar" (show).

Problemas que consegui resolver / A problem I was able to solve

  • Eu queria manter o mesmo background para a página "Saiba mais", mas o "linear-gradient" não era apropriado para dar destaque ao texto. Resolvi então criar outra folha de estilo como novas instruções e funcionou.

  • I wanted to keep the same background image to the page "Saiba mais" (learn more), but the linear-gradient was not appropriate for readability. Then I decided to create another style sheet with new instructions and it worked.

  • Eu havia adicionado o ícone do GitHub no footer, mas o WAVE (web accessibility evaluation tool) sinalizou a falta de um texto para o link por trás do ícone. Foi então que resolvi acrescentar "GitHub:" antes do ícone.

  • I had added the GitHub icon on the footer, but WAVE (web accessibility evaluation tool) signalized the lack of a text for the link embeded in the icon. Then I decided to add "GitHub:" before the icon.

Algumas lições que aprendi / Some lessons I learned

  • É possível estilizar um elemento "img" no CSS mesmo que não esteja presente no documento HTML e sim somente no JavaScript.

  • It is possible to style an "img" element on CSS even if it is only on the JavaScript document, not on the HTML one.

  • Para usar aspas duplas (" ") num texto que é efeito do JavaScript é necessário colocar todo o conteúdo do texto dentro de aspas simples (' ').

  • To use double quotation marks in a text that is an effect of JavaScript it is necessary to include it between simple quotation marks (' ').

  • Usa-se a tag &nbsp com ponto e vírgula para adicionar espaço em um texto. Eu a utilizei para separar a barra vertical dos textos no footer.

  • One can use the tag &nbsp with a semi-colon to add space in a text. I used it to separate the pipe character from the texts on the footer.

Tecnologias / Technologies

  • CSS
  • HTML
  • JavaScript

Links

Autor / Author

Foto Nome GitHub Likedin E-mail
Romulo Craveiro de Sousa Tartaruga Romulo Craveiro Linkedin [email protected]

geracoes's People

Contributors

romulocraveiro avatar

Stargazers

 avatar  avatar

Watchers

 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.