Skip to content

Início hue BR #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions CSS/huebr.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@


.questao h1{
font-size: 2em;
font-style: italic;
font-weight: normal;
margin: 0px;
}

/* .q1{
display: none;
} */

.questao p{
font-size: 5em;
}

.questao button{
font-size: 2em;
padding: 10px 20px;
margin: 0px 60px;
width: 150px;
height: 150px;
}

.questionario{
text-align: center;
}
.q1 button{
color: #fff;
border-radius: 100%;
border: none;
}

.q1 .btn-sim:hover{
background-color: #228B22;
}

.q1 .btn-nao:hover{
background-color: #B22222;
}


.q1 .btn-sim{
background-color: #00FF00;
}
.q1 .btn-nao{
background-color: #FF4500;
}
6 changes: 5 additions & 1 deletion CSS/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@ ul.barra-navegacao a.ativado {
color: white;
}

.conteudo{
.conteudo,.questionario{
width: 960px;
margin: 0 auto;
padding-top: 20px;
}

body{
font-size: 17px;
}

button:focus{
outline: 0;
}
24 changes: 22 additions & 2 deletions HTML/huebr.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<!--CSS da página-->
<link rel="stylesheet" href="../CSS/style.css">
<link rel="stylesheet" href="../CSS/normalize.css">
<link rel="stylesheet" href="../CSS/huebr.css">

<!--Font Roboto-->
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
Expand All @@ -18,15 +19,34 @@
<body>
<header>
<ul class="barra-navegacao">
<li><a href="index.html">Início</a></li>
<li><a href="index.html">Início</a></li>
<li><a href="padaria.html">Padaria</a></li>
<li><a href="calculadora.html">Calculadora</a></li>
<li><a href="imc.html">IMC</a></li>
<li><a class="ativado" href="huebr.html">Hue Hue Br</a></li>


</ul>
</header>

<section class="questionario">
<article class="questao q1">
<h1>Questão 1</h1>
<p>Você sofre de epilepsia?</p>
<button class="btn-sim">Sim</button>
<button class="btn-nao">Não</button>
</article>

<article class="questao q2">

</article>
</section>






<script src="../JavaScript/index.js"></script>
</body>

Expand Down
6 changes: 6 additions & 0 deletions JavaScript/huebr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// QUESTÃO 1




// QUESTÃO 2
18 changes: 9 additions & 9 deletions JavaScript/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var botaoDesativarCss = document.querySelector(".desativar-css");
// var botaoDesativarCss = document.querySelector(".desativar-css");

botaoDesativarCss.addEventListener("click", function () {
if ( document.getElementById("css").href = "../CSS/style.css") {
document.getElementById("css").href = "";
// botaoDesativarCss.addEventListener("click", function () {
// if ( document.getElementById("css").href = "../CSS/style.css") {
// document.getElementById("css").href = "";

} else {
console.log("o");
document.getElementById("css").href = "../CSS/style.css";
}
});
// } else {
// console.log("o");
// document.getElementById("css").href = "../CSS/style.css";
// }
// });