This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import PropTypes from 'prop-types' | |
import { Link as LinkRouter } from 'react-router-dom' | |
import './Link.css' | |
function Link({ to, children }) { | |
return ( | |
<LinkRouter className="link" to={to}> | |
{children} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { Link as LinkRouter } from 'react-router-dom' | |
import './Link.css' | |
function Link({ to, children }) { | |
return ( | |
<LinkRouter className="link" to={to}> | |
{children} | |
</LinkRouter> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import './Botao.css' | |
function Botao({ desabilitado }) { | |
return ( | |
<button className={`botao ${desabilitado ? 'botao--desabilitado' : ''}`}> | |
{props.children} | |
</button> | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Doughnut Chart</title> | |
<script src="../../dist/Chart.bundle.js"></script> | |
<script src="../utils.js"></script> | |
<style> | |
canvas { | |
-moz-user-select: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Twit = require('twit') | |
const T = new Twit({ | |
consumer_key: '<segredo>', | |
consumer_secret: '<segredo>', | |
access_token: '<segredo>', | |
access_token_secret: '<segredo>' | |
}) | |
module.exports = exports = () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let i = 0 | |
let acertos = 0 | |
let erros = 0 | |
document.querySelector('.quiz').innerHTML = ` | |
<img src=${quiz[i].imagem} alt=${quiz[i].alt} /> | |
<p>${quiz[i].pergunta}</p> | |
<div class="btn"> | |
<button id="btn-sim" onclick="onClick('não')">NÃO</button> | |
<button id="btn-nao" onclick="onClick('sim')">SIM</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const perguntas = { | |
pergunta1: { | |
texto: "lorem ipsum blablabla", | |
resposta: "sim", | |
}, | |
pergunta2: { | |
texto: "shururu", | |
resposta: "nao" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
absdfjhadsfadbf,amnbdsfa |
NewerOlder