Skip to content
This repository was archived by the owner on Feb 17, 2021. It is now read-only.
Open
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
6 changes: 6 additions & 0 deletions aline-pereira/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$(document).ready(function() {
$('.btn').click(function() {
$('.items').toggleClass("show");
$('ul li').toggleClass("hide");
});
});
Binary file added aline-pereira/assets/baloes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added aline-pereira/assets/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added aline-pereira/assets/logo@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added aline-pereira/assets/modelo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added aline-pereira/assets/relogio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions aline-pereira/form.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const name = $("#name").val()
const email = $("#email").val()
const message = $("#message").val()

$(document).ready(function() {
$("#submit").click(function() {
$.ajax({
url: 'http://mockbin.com/request?foo=bar&foo=baz',
type: "POST",
dataType: 'json',
data: {
name,
email,
message
},
success: function(data)
})
});
});
90 changes: 90 additions & 0 deletions aline-pereira/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
<title>Início | Guepardo Transportes</title>
<link rel="stylesheet" href="./style.css" />
<link rel="stylesheet" href="./reset.css" />
<script src="https://code.jquery.com/jquery-3.4.1.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body>
<header>
<nav>
<ul>
<li class="logo">
<img src="./assets/logo@3x.png" alt="Logo Guepardo" title="Guepardo Transportes">
</li>
<li class="items"><a href="#">Inicio</a></li>
<li class="items"><a href="#">Sobre</a></li>
<li class="items"><a href="#">Serviços</a></li>
<li class="items"><a href="#">Contato</a></li>
<li class="btn"><a href="#"><i class="fas fa-bars">=</i></a></li>
</ul>
</nav>
</header>

<section class="banner">
<div class="bannerText">
<h2>
Entregando cargas e sonhos
</h2>
<p>
Desde 1980 entregando cargas e fazemos pessoas e negócios sorrirem e se realizarem.
</p>
</div>
</section>

<section class="hero">
<div class="container">
<div class="text">
<h2>
Entregas rápidas e eficientes.
</h2>
<p>
Temos experiência na entrega de cargas para pessoas e empresas em tempo recorde para todo Brasil.
</p>
</div>
<img src="./assets/relogio.png" alt="Logo Guepardo" title="Guepardo Transportes" />
</div>
</section>


<section class="form">
<div class="container">
<form id="form" method="post">
<h2>Fale conosco</h2>
<ul>
<li>
<label for="name">Nome</label>
<input type="text" id="name" required>
</li>
<li>
<label for="Email">Email</label>
<input type="email" id="email" required>
</li>
<li>
<label for="message">Mensagem</label>
<textarea rows="6" id="message"></textarea>
</li>
<li>
<button id="submit" type="submit">Enviar</button>
</li>
</ul>
</form>
<img src="./assets/baloes.png" alt="" />
</div>
</section>

<footer class="footer">
<p>&copy; 2021 Guepardo Transportes</p>
</footer>

<script src="app.js"></script>
<script src="form.js"></script>
</body>

</html>
31 changes: 31 additions & 0 deletions aline-pereira/reset.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

236 changes: 236 additions & 0 deletions aline-pereira/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
nav {
background: #ecec53;
padding: 5px 40px;
}

nav ul {
list-style: none;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}

nav ul li {
padding: 15px 0;
cursor: pointer;
}

nav ul li.items {
position: relative;
width: auto;
margin: 0 16px;
text-align: center;
order: 3;
font-weight: bold;
}

nav ul li.items:after {
position: absolute;
content: '';
left: 0;
bottom: 5px;
height: 2px;
width: 100%;
background: #000000;
opacity: 0;
transition: all 0.2s linear;
}

nav ul li.items:hover:after {
opacity: 1;
bottom: 8px;
}

nav ul li.logo {
flex: 1;
cursor: default;
user-select: none;
}

nav ul li.logo img {
width: 150px;
margin-left: 20px;
padding: 15px 0;
}

nav ul li a {
color: #000000;
font-size: 18px;
text-decoration: none;
transition: .4s;
}

nav ul li i {
font-size: 23px;
}

nav ul li.btn {
display: none;
}

nav ul li.btn.hide i:before {
content: '\f00d';
}


/*banner*/

.banner {
position: relative;
width: 100%;
height: 60%;
background: url("./assets/banner.jpg");
background-repeat: no-repeat;
background-size: cover;
}

.bannerText {
padding: 100px 60px;
color: #FFFFFF;
}

.bannerText h2 {
margin-bottom: 20px;
}


/*===============
HERO
==================*/

section.hero {
margin: 80px 0;
}

section.hero .container {
width: 90%;
max-width: 980px;
margin: auto;
display: flex;
justify-content: space-between;
}

section.hero .container .text {
margin: auto;
}

section.hero .container img {
width: 370px;
margin-left: 40px;
}

section.hero h2 {
font-weight: 500;
margin-bottom: 20px;
}


/*===============
FORM
==================*/

section.form .container {
width: 90%;
max-width: 980px;
margin: auto;
display: flex;
justify-content: space-between;
}

section.form .container h2 {
font-weight: 500;
margin-bottom: 20px;
}

section.form .container img {
width: 370px;
margin-left: 40px;
}

section.form ul li {
display: flex;
flex-wrap: wrap;
align-items: center;
}

section.form ul>li:not(:last-child) {
margin-bottom: 20px;
}

section.form ul li label,
section.form ul li p {
padding: 8px;
font-weight: 300;
letter-spacing: .09em;
}

section.form ul>li>label,
ul li p {
flex: 1 0 120px;
max-width: 350px;
}

section.form ul>li>label+*,
.flex-inner {
flex: 1 0 350px;
}

section.form ul li input:not([type='checkbox']),
ul li textarea {
padding: 10px;
}

section.form ul li button {
margin-right: auto;
padding: 10px 16px;
border: none;
background: #ecec53;
color: #000000;
text-transform: uppercase;
letter-spacing: .09em;
border-radius: 6px;
}

.footer {
margin-top: 50px;
}

.footer p {
background: #d3d3d3;
text-align: center;
padding: 30px 0;
}

@media (max-width: 992px) {
nav {
padding: 5px 30px;
}
nav ul li.items {
width: 100%;
display: none;
}
nav ul li.items.show {
display: block;
}
nav ul li.btn {
display: block;
}
nav ul li.items:hover:after {
opacity: 0;
}
section.hero .container {
flex-direction: column;
}
section.hero .container img {
width: 300px;
margin-left: 0px;
}
section.form .container {
flex-direction: column;
}
section.form .container img {
width: 300px;
margin-left: 0px;
}
}