Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeHODiniz authored Jul 1, 2024
1 parent 2dfa9e2 commit 59a5857
Show file tree
Hide file tree
Showing 27 changed files with 1,521 additions and 14 deletions.
21 changes: 21 additions & 0 deletions codigo/Cadastro (collabora)/cadastro.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,27 @@ <h2 style="color: #f3a60f; font-family: KoHo; font-size: 175%; margin-bottom: 0p
</div>
</div>
</form>
<div class="login-link">
<a href="#" id="loginLink">Já sou collabora</a>
</div>

<div id="loginModal" class="modal">
<div class="modal-content">
<span class="close">&times;</span>
<h2>Login</h2>
<form id="loginForm">
<div class="input">
<input type="text" placeholder="Email" id="loginEmail">
</div>
<div class="input">
<input type="password" placeholder="Senha" id="loginSenha">
</div>
<div class="login-button">
<input type="submit" value="Login">
</div>
</form>
</div>
</div>
</div>

<script src="cadastro.js"></script>
Expand Down
37 changes: 37 additions & 0 deletions codigo/Cadastro (collabora)/cadastro.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,40 @@ function saveUser(user) {
users.push(user);
localStorage.setItem('users', JSON.stringify(users));
}

// Mostrar modal de login
document.getElementById('loginLink').addEventListener('click', function(event) {
event.preventDefault();
document.getElementById('loginModal').style.display = "block";
});

// Fechar modal de login
document.getElementsByClassName('close')[0].addEventListener('click', function() {
document.getElementById('loginModal').style.display = "none";
});

// Fechar modal ao clicar fora dele
window.addEventListener('click', function(event) {
if (event.target == document.getElementById('loginModal')) {
document.getElementById('loginModal').style.display = "none";
}
});

// Lidar com o login
document.getElementById('loginForm').addEventListener('submit', function(event) {
event.preventDefault();

const email = document.getElementById('loginEmail').value.trim();
const password = document.getElementById('loginSenha').value.trim();

const users = JSON.parse(localStorage.getItem('users')) || [];
const user = users.find(user => user.email === email && user.password === password);

if (user) {
alert('Login bem-sucedido!');
document.getElementById('loginModal').style.display = "none";
document.getElementById('loginForm').reset();
} else {
alert('Email ou senha incorretos.');
}
});
79 changes: 78 additions & 1 deletion codigo/Cadastro (collabora)/stylecadastro.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ html, body {
}
.dados-container{
font-family: KoHo;
color: #9517E1;
color: #f3a60f;
font-weight:600;
font-size: 150%;
margin: auto;
Expand Down Expand Up @@ -90,3 +90,80 @@ input::placeholder{
.cadastrar input:active {
transform: scale(0.95);
}

/* Estilização do link de login */
.login-link {
text-align: center;
margin-top: 20px;
}

.login-link a {
color: #401e88;
font-family: 'KoHo';
font-size: 120%;
text-decoration: none;
font-weight: bold;
}

/* Estilização do modal */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.4);
padding-top: 60px;
}

.modal-content {
background-color: #fefefe;
margin: 5% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 400px;
border-radius: 10px;
}

.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}

.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}

/* Estilização dos campos do modal */
.modal-content input {
width: 100%;
padding: 10px;
margin: 10px 0;
border: none;
border-radius: 5px;
background-color: #fdf2db;
}

.modal-content input[type="submit"] {
width: auto;
background-color: #401e88;
color: #f3a60f;
font-weight: bold;
cursor: pointer;
transition: background-color 0.3s ease;
}

.modal-content input[type="submit"]:hover {
background-color: #210559;
}

4 changes: 4 additions & 0 deletions codigo/assets/js/script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
document.getElementById('redirectButton1').addEventListener('click', function() {
window.location.href = 'vizu de sala/index.html';
});

document.getElementById('redirectButton2').addEventListener('click', function() {
window.location.href = 'Cadastro (collabora)/cadastro.html';
});
9 changes: 4 additions & 5 deletions codigo/assets/style/mainstyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ body, html {
margin: 0;
}

header{
background-color: #9517E1;
font-family: 'inter';
}

body{
background-color: #401E88;
margin: 0;
padding: 0;
border: 0;
}

header{
background-color: #9517E1;
font-family: 'inter';
}

header .logo a{
text-decoration: none;
Expand Down
65 changes: 65 additions & 0 deletions codigo/faq/faq2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

body{
font-family: 'Open Sans', sans-serif;
color: #fff;
background-color: #9517E1;
}

.title{
font-size: 50px;
text-align: center;
margin-top: 80px;
margin-bottom: 40px;
text-decoration: underline 4px;
}


.questions-container{
max-width: 800px;
margin: 0 auto;
}

.question{
border-bottom: 1px solid #fff;
}
.question button{
width: 100%;
background-color: #9517E1;
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 15px;
border:none;
outline: none;
font-size: 22px;
color: #fff;
font-weight: 700;
cursor: pointer;
}
.question p{
font-size: 22px;
max-height: 0;
opacity: 0;
line-height: 1.5;
overflow: hidden;
transition: all 0.6s ease;
}
.d-arrow{
transition: transform 0.5s ease-in ;
color: #f3a60f;
}

/*add this class when click*/
.question p.show{
max-height: 200px;
opacity: 1;
padding:0px 15px 30px 15px;
}
.question button .d-arrow.rotate{
transform: rotate(180deg);
}
57 changes: 57 additions & 0 deletions codigo/faq/faq2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> FAQ ACCORDION </title>
<!-- fontawasome cdn -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" />
<!-- google font -->
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
<!-- css -->
<link rel="stylesheet" href="faq2.css">
</head>
<body>

<section>
<h1 class="title">FAQ's</h1>

<div class="questions-container">
<div class="question">
<button>
<span>Como funciona a plataforma do Collabora?</span>
<span><i class="fas fa-chevron-down d-arrow"></i></span>
</button>
<p> No Collabora você aprende com os outros! Você pode se cadastrar para ensinar ou para assistir aulas e tirar dúvidas.</p>
</div>

<div class="question">
<button>
<span>Como entrar em uma sala de aula online?</span>
<i class="fas fa-chevron-down d-arrow"></i>
</button>
<p> Basta clicar em "Salas" e selecionar qual você quer entrar. Caso prefira criar sua própria sala você pode clicar em "Criar Sala".</p>
</div>

<div class="question">
<button>
<span>Por que vincular a minha conta ao meu CPF traz mais segurança?</span>
<i class="fas fa-chevron-down d-arrow"></i>
</button>
<p> Com a conta nominal a sua segurança aumenta!</p>
</div>

<div class="question">
<button>
<span>Como faço para ter acesso e recursos exclusivos no Collabora?</span>
<i class="fas fa-chevron-down d-arrow"></i>
</button>
<p> Você pode assinar o plano premium! </p>
</div>
</div>
</section>

<!-- external js-->
<script src="faq2.js"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions codigo/faq/faq2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const buttons = document.querySelectorAll("button");

buttons.forEach( button => {
button.addEventListener('click',()=> {
const faq = button.nextElementSibling;
const icon = button.children[1];

faq.classList.toggle('show');
icon.classList.toggle('rotate');
})
} )
Binary file added codigo/foto home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 6 additions & 8 deletions codigo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
</div>
<div class="menu box">
<ul>
<li><a href="...">Salas</a></li>
<li><a href="...">Planos</a></li>
<li><a href="...">Minha Conta</a></li>
<li><a href="...">Ajuda</a></li>
<li><a href="vizu de sala/index.html">Salas</a></li>
<li><a href="planos/index.html">Planos</a></li>
<li><a href="meu perfil/index.html">Minha Conta</a></li>
<li><a href="faq/faq2.html">Ajuda</a></li>
</ul>
</div>
<div class="login box">
<a href="/Cadastro (collabora)/cadastro.html">collabore-se</a>
<a href="Cadastro (collabora)/cadastro.html">collabore-se</a>
</div>
</div>
</header>

<div id="carouselExampleSlidesOnly" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="/assets/images/2204_w037_n003_317b_p1_317.jpg" style="width: 100vw; text-align: center; overflow: hidden;" class="d-block w-100" alt="...">
<img src="foto home.jpg" style="width: 98.5vw; text-align: center; overflow: hidden;" class="d-block w-100" alt="...">
</div>
</div>

Expand All @@ -54,8 +54,6 @@ <h1>AINDA NAO COLLABORA?</h1>
<button class="button" id="redirectButton2">Cadastrar</button>
</div>
</div>


</div>

<script src="assets/js/script.js"></script>
Expand Down
Binary file added codigo/meu perfil/assets/pessoa feliz.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 59a5857

Please sign in to comment.