Skip to content

Commit

Permalink
alteração tema escuro mconta mcursos
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaisParisi authored Aug 9, 2024
1 parent a5765f8 commit 5a8d034
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 6 deletions.
9 changes: 8 additions & 1 deletion assets/css/mconta.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
padding: 10px;
text-align: center;
}

.formas-de-pagamento{
border: 1px solid black;
padding: 15px;
border-radius: 10px;
}
.formas-de-pagamento:hover{
background-color: #46aa2e;
color: white;
transition: all 1s;
}
5 changes: 4 additions & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const linkMenuLateral = document.querySelectorAll(".link-menu-lateral")
const Main = document.querySelector('.main')
const planosLink = document.querySelectorAll(".link-planos-lista")
const textoConteudo = document.querySelectorAll(".texto-conteudo")
const cursoBasicoNomeHtml = document.querySelectorAll('.curso-basico-nome-html')


temaEscuro.onclick = function(){
Expand All @@ -16,7 +17,6 @@ temaEscuro.onclick = function(){
document.body.style.backgroundColor = "#282c27"
temaEscuro.textContent = "Tema Claro"
menuListaItem[0].style.backgroundColor = "#282c27"
menuListaItem[0].style.color = "#FFFFFF"
menuListaItem[1].style.backgroundColor = "#282c27"
menuListaItem[2].style.backgroundColor = "#282c27"
input.style.backgroundColor = "#282c27"
Expand All @@ -30,6 +30,9 @@ temaEscuro.onclick = function(){


Main.style.color = "#FFFFFF"
cursoBasicoNomeHtml[0].style.color = "FFFFFF"





Expand Down
38 changes: 38 additions & 0 deletions assets/js/mconta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const temaEscuro = document.querySelector(".tema-escuro")
const input = document.querySelector(".input-pesquisa")
const usuario = document.querySelector(".usuario")
const Main = document.querySelector('.main')









temaEscuro.onclick = function(){

if (temaEscuro.textContent == "Tema Escuro"){
document.body.style.backgroundColor = "#282c27"
temaEscuro.textContent = "Tema Claro"
input.style.backgroundColor = "#282c27"
input.style.color = "#FFFFFF"
usuario.style.backgroundColor = "#282c27"
usuario.style.color = "#FFFFFF"
Main.style.color = "#FFFFFF"

} else {
document.body.style.backgroundColor = "#e8f8e6"
temaEscuro.textContent = "Tema Escuro"
input.style.backgroundColor = "#e8f8e6"
input.style.color = "#000000"
usuario.style.backgroundColor = "#e8f8e6"
usuario.style.color = "#000000"
Main.style.color = "#000000"



}
}
console.log(temaEscuro)
38 changes: 38 additions & 0 deletions assets/js/mcursos.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const temaEscuro = document.querySelector(".tema-escuro")
const input = document.querySelector(".input-pesquisa")
const usuario = document.querySelector(".usuario")
const Main = document.querySelector('.main')









temaEscuro.onclick = function(){

if (temaEscuro.textContent == "Tema Escuro"){
document.body.style.backgroundColor = "#282c27"
temaEscuro.textContent = "Tema Claro"
input.style.backgroundColor = "#282c27"
input.style.color = "#FFFFFF"
usuario.style.backgroundColor = "#282c27"
usuario.style.color = "#FFFFFF"
Main.style.color = "#FFFFFF"

} else {
document.body.style.backgroundColor = "#e8f8e6"
temaEscuro.textContent = "Tema Escuro"
input.style.backgroundColor = "#e8f8e6"
input.style.color = "#000000"
usuario.style.backgroundColor = "#e8f8e6"
usuario.style.color = "#000000"
Main.style.color = "#000000"



}
}
console.log(temaEscuro)
6 changes: 2 additions & 4 deletions assets/pages/mconta.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
<input class="input-pesquisa" type="search" placeholder="Pesquisar cursos" name="" id="">
</div>
</div>
<div class="cabecalho-menu">

</div>
<div class="cabecalho-conta">
<div class="usuario">
<img src="../img/avatar-do-usuario.png" alt="" class="usu-img">
Expand All @@ -43,9 +40,10 @@
<p>Informações de contato: meuEmail@gmail.com</p>
</div>
<div class="formas-de-pagamento">
<p><a href="#">Meus pagamentos</a></p>
<p>Meus pagamentos</p>
</div>
</div>
</section>
<script src="../js/mconta.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions assets/pages/mcursos.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@ <h3 class="curso-basico-nome">Cartografia</h3>
</div>
</div>
</section>
<script src="../js/mcursos.js"></script>
</body>
</html>

0 comments on commit 5a8d034

Please sign in to comment.