Skip to content

Commit 8ca5308

Browse files
committed
Novos códigos do Inteliogia
1 parent 131fac6 commit 8ca5308

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1495
-0
lines changed

efeito-flip/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"liveServer.settings.port": 5501
3+
}

efeito-flip/img/flip.jpg

65.1 KB
Loading

efeito-flip/index.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="pt-br">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="style.css">
8+
<title>Card Flip 3D</title>
9+
</head>
10+
<body>
11+
12+
<div class="container">
13+
<div class="card">
14+
15+
<div class="frente">
16+
17+
</div><!--frente-->
18+
19+
<div class="tras">
20+
<h2>Leite Condesado</h2>
21+
</div><!--tras-->
22+
23+
</div><!--card-->
24+
</div><!--container-->
25+
26+
<div class="container">
27+
<div class="card">
28+
<div class="frente">
29+
30+
</div>
31+
<div class="tras">
32+
<h2>Leite Integral</h2>
33+
</div>
34+
</div>
35+
</div>
36+
37+
<div class="container">
38+
<div class="card">
39+
<div class="frente">
40+
41+
</div>
42+
<div class="tras">
43+
<h2>Leite Desnatado</h2>
44+
</div>
45+
</div>
46+
</div>
47+
</body>
48+
</html>

efeito-flip/style.css

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
*{
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
font-family: 'Outfit', sans-serif;
6+
}
7+
8+
body{
9+
height: 100vh;
10+
11+
display: flex;
12+
align-items: center;
13+
justify-content: center;
14+
gap: 20px;
15+
16+
background-image: linear-gradient(45deg, #eeeeee, #ffffff);
17+
}
18+
19+
/* NECESSÁRIO PARA O PROJETO */
20+
.container{
21+
position: relative;
22+
width: 350px;
23+
height: 500px;
24+
}
25+
26+
.card{
27+
position: absolute;
28+
width: 100%;
29+
height: 100%;
30+
cursor: pointer;
31+
32+
transform-style: preserve-3d;
33+
34+
transition: all .5s ease-in-out;
35+
}
36+
37+
.container:hover .card{
38+
transform: rotateY(180deg);
39+
}
40+
41+
.frente, .tras{
42+
position: absolute;
43+
width: 100%;
44+
height: 100%;
45+
border-radius: 20px;
46+
box-shadow: 0px 0px 10px 2px #00000032;
47+
48+
backface-visibility: hidden;
49+
50+
/* NÃO É NECESSÁRIO */
51+
display: flex;
52+
align-items: center;
53+
justify-content: center;
54+
}
55+
56+
.frente{
57+
background-image: url(img/flip.jpg);
58+
background-position: center;
59+
}
60+
61+
.tras{
62+
transform: rotateY(180deg);
63+
64+
background-image: linear-gradient(45deg, #fff,#d6d6d6);
65+
color: #000;
66+
}

efeito-snapp/index.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html lang="pt-br">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="style.css">
8+
<title>Efeito Snapping</title>
9+
</head>
10+
<body>
11+
<div class="interface">
12+
13+
<section class="page1">
14+
<h1>Primeira Página</h1>
15+
</section><!--page1-->
16+
17+
<section class="page2">
18+
<h1>Segunda Página</h1>
19+
</section><!--page1-->
20+
21+
<section class="page3">
22+
<h1>Terceira Página</h1>
23+
</section><!--page1-->
24+
25+
<section class="page4">
26+
<h1>Quarta Página</h1>
27+
</section><!--page1-->
28+
29+
<section class="page5">
30+
<h1>Quinta Página</h1>
31+
</section><!--page1-->
32+
33+
</div><!--interface-->
34+
</body>
35+
</html>

efeito-snapp/style.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
*{
2+
margin: 0;
3+
padding: 0;
4+
box-sizing: border-box;
5+
font-family: 'Outfit', sans-serif;
6+
}
7+
8+
.page1{
9+
background-color: #f64740;
10+
}
11+
.page2{
12+
background-color: #3772ff;
13+
}
14+
.page3{
15+
background-color: #fdca40;
16+
}
17+
.page4{
18+
background-color: #00ffae;
19+
}
20+
.page5{
21+
background-color: #06070e;
22+
}
23+
24+
.interface{
25+
height: 100vh;
26+
scroll-snap-type: y mandatory;
27+
overflow-y: scroll;
28+
}
29+
30+
section{
31+
height: 100vh;
32+
display: flex;
33+
justify-content: center;
34+
align-items: center;
35+
color: #fff;
36+
37+
scroll-snap-align: start;
38+
position: sticky;
39+
top: 0;
40+
left: 0;
41+
}

formulário-com-PHP/envia.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
// if(isset($_POST['email']) && !empty($_POST['email'])){
4+
5+
// VARIÁVEIS
6+
$nome = addslashes($_POST['nome']);
7+
$email = addslashes($_POST['email']);
8+
$telefone = addslashes($_POST['telefone']);
9+
10+
11+
12+
$subject = "Formulário Inteliogia";
13+
14+
$body = "Nome: " .$nome. "\n" .
15+
"Email: " .$email."\n" .
16+
"Telefone: " .$telefone;
17+
18+
$header = "From:[email protected]"."\n"."Replay-To:".$email."\n"."X=Mailer:PHP/".phpversion();
19+
20+
if(mail($to,$subject,$body,$header)){
21+
echo("Email enviado com sucesso");
22+
} else{
23+
echo("Houve um erro ao enviar o email");
24+
}
25+
26+
// }
27+
28+
?>
158 KB
Loading

formulário-com-PHP/index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!DOCTYPE html>
2+
<html lang="pt-br">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="stylesheet" href="style.css">
8+
<title>Formulário Personalizado</title>
9+
</head>
10+
<body>
11+
<section class="form-container">
12+
<div class="container">
13+
<!-- PRIMEIRO PASSO: ADICIONAR O MÉTODO E A AÇÃO. DEPOIS O NOME DOS INPUT -->
14+
<form method="post" action="envia.php">
15+
<h1>Entre em contato</h1>
16+
<p>Preencha o formulário abaixo e entraremos em contato com você</p>
17+
<div class="input-single">
18+
<input class="input" type="text" id="nome" name="nome" required autocomplete="off">
19+
<label for="nome">Seu nome completo</label>
20+
</div>
21+
<div class="input-single">
22+
<input class="input" type="text" id="email" name="email" required autocomplete="off">
23+
<label for="email">Seu e-mail</label>
24+
</div>
25+
<div class="input-single">
26+
<input class="input" type="text" id="telefone" name="telefone" required autocomplete="off">
27+
<label for="telefone">Seu telefone</label>
28+
</div>
29+
<div class="btn"><input type="submit" value="Enviar"></div>
30+
</form>
31+
</div><!--container-->
32+
</section>
33+
</body>
34+
</html>

formulário-com-PHP/style.css

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');
2+
3+
*{
4+
margin: 0;
5+
padding: 0;
6+
box-sizing: border-box;
7+
font-family: 'Outfit', sans-serif;
8+
}
9+
10+
body{
11+
width: 100%;
12+
height: 100vh;
13+
background-image: url(images/fundo.jpg);
14+
background-position: center;
15+
background-repeat: no-repeat;
16+
background-size: cover;
17+
display: flex;
18+
align-items: center;
19+
justify-content: center;
20+
}
21+
22+
.container{
23+
max-width: 1280px;
24+
margin: 0 auto;
25+
padding: 6%;
26+
}
27+
28+
form{
29+
background: #fff;
30+
max-width: 500px;
31+
height: 450px;
32+
padding: 40px;
33+
border-radius: 20px;
34+
}
35+
36+
form h1{
37+
text-align: center;
38+
margin-bottom: 10px;
39+
color: #2D5966;
40+
font-size: 22pt;
41+
}
42+
43+
form p{
44+
text-align: center;
45+
margin-bottom: 25px;
46+
}
47+
48+
form .input-single{
49+
position: relative;
50+
margin: 30px 0;
51+
}
52+
53+
form .input-single label{
54+
position: absolute;
55+
left: 0;
56+
bottom: 5px;
57+
cursor: text;
58+
transition: all 0.5s;
59+
color: #808080;
60+
}
61+
62+
form .input-single .input{
63+
width: 100%;
64+
border: 0;
65+
border-bottom: 2px solid #808080;
66+
padding: 5px;
67+
outline: 0;
68+
font-size: 16px;
69+
}
70+
71+
form .input-single .input:focus{
72+
border-bottom: 2px solid #2D5966;
73+
}
74+
75+
form .input-single .input:focus ~ label,
76+
form .input-single .input:valid ~ label{
77+
transform: translateY(-20px);
78+
font-size: 12px;
79+
color: #2D5966;
80+
}
81+
82+
.btn{
83+
width: 100%;
84+
text-align: center;
85+
}
86+
87+
form input[type=submit]{
88+
padding: 10px 40px;
89+
border: 0;
90+
border-radius: 10px;
91+
background-color: #2D5966;
92+
color: #fff;
93+
font-size: 14pt;
94+
cursor: pointer;
95+
}
96+

0 commit comments

Comments
 (0)