Skip to content
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

nav feita #4

Merged
merged 1 commit into from
Feb 21, 2020
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
29 changes: 25 additions & 4 deletions 4safe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,39 @@

<body>

<nav>
<img src="images/logo2.png" alt="logo">
<header>
<nav>
<a href="index.html">
<img src="images/logo2.png" alt="logo">
</a>

<ul>
<li><a href="">Quem Somos</a></li>
<li><a href="">Equipe</a></li>
<li><a href="">Perguntas Frequentes</a></li>
</ul>
</nav>

<button onclick="ShowForm()" class="subscribe-button">
Quero Tranquilidade!

</button>
</nav>
</header>

<button id="black-overlay" onclick="HideForm()"></button>

<div id="forms">
<Button onclick="HideForm()" id="close-form-button">X</Button>
<p>Preencha o formulário para entrarmos em contato com você!</p>
<form action="">
<div>
<label for="safe">Modalidade do seguro:</label>
<select name="safe" id="safe" required>
<option value="volvo">Vida</option>
<option value="volvo">Carro</option>
<option value="volvo">Ambos</option>
</select>
</div>
<div>
<label for="name">Nome</label>
<input type="text" name="name" id="name" required>
Expand All @@ -42,7 +61,9 @@
</div>

<main rule="main">
<section></section>
<section>
<img src="images/4safe.png" alt="4safe">
</section>
<section></section>
<section></section>
<section></section>
Expand Down
65 changes: 59 additions & 6 deletions 4safe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ body{
flex-direction: column;
}

nav{
header{
display: flex;
justify-content: space-between;
align-items: center;
Expand All @@ -26,17 +26,52 @@ nav{
width: 100%;
height: 80px;
background-color:white;
border-bottom: 1px solid black;
outline: 1px;
outline-style: groove;
outline-color: black;
outline-color: rgba(0, 0, 0, .2);
}

nav{
height: 100%;
}

nav img{
header a{
height: 90%;
margin-left: 10px;
}

header img{
height: 100%;
padding: 5px;
background-color: #3b4f66;
padding: 2px;
border-radius: 20px;
margin-left: 20px;
}

nav{
display: flex;
align-items: center;

height: 100%;
}

nav ul{
list-style: none;
display: flex;
align-items: center;
height: 100%;
}

nav li{
border-right: 2px solid #698f69;
padding: 10px 0;
padding-right: 10px;
}

nav li a{
text-decoration: none;
color: #698f69;
font-size: 20px;
}

.subscribe-button{
Expand Down Expand Up @@ -88,6 +123,7 @@ nav img{
#forms form div{
display: flex;
justify-content: space-between;
align-items: center;
}

#forms label{
Expand All @@ -105,6 +141,15 @@ nav img{
border-bottom: 2px solid grey;
}

#forms select{
width: 100px;
border: none;
background-color: rgba(0, 0, 0, 0);
color: #3b4f66;
font-size: 20px;
cursor: pointer;
}

#check-box-div input{
width: 50px;
}
Expand Down Expand Up @@ -168,14 +213,22 @@ main{
}

main section{
display: flex;
height: 800px;
background-color: #b8bfc7;
}

main section:nth-of-type(even){
main section:nth-of-type(odd){
background-color: white;
}

main section:nth-of-type(1){
justify-content: center;
align-items: center;
background-color: #3b4f66;
height: 500px;
}

footer{
display: flex;
justify-content: flex-end;
Expand Down