Skip to content
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
2 changes: 1 addition & 1 deletion Page login opticien
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>
<!--titre-->
<div class="titre">
Projet Dev web
Projet Dev web : opticien
</div>
<hr>
<!-- zone de login -->
Expand Down
17 changes: 17 additions & 0 deletions barre de recherche.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<script defer src="https://use.fontawesome.com/releases/v5.4.2/js/all.js"></script>
<title> barre de recherche </title>
</head>
<body>
<div class="search-box">
<input class="search-txt" type="text" name="" placeholder="type de recherche">
<a class="search-btn" href="#">
<i class="fas fa-question"></i>
</a>
</div>
</body>
</html>
95 changes: 95 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
body{
margin: 0;
padding: 0;
}

.search-box{
position: absolute;
top:7%;
left: 14%;
transform: translate(-50%,-50%);
background: #2f3640;
height:40px;
border-radius: 40px;
padding: 10px;
}
.search-box:hover > .search-txt{
width:240px;
padding: 0 6px;
}
.search-box:hover > .search-btn{
background:white;
}
.search-btn{
color: #e84118;
float: right;
width: 40px;
height: 40px;
border-radius: 50%;
background: #2f3640;
display: flex;
justify-content: center;
align-items: center;
}
.search-txt{
border:none;
background:none;
outline: none;
float: left;
padding: 0;
color: white;
font-size:16px;
transition: 0.4s;
line-height: 40px;
width: 0px;
}






.bouton{
text-align:center;
margin-top:300px;
}
.btn{
border:1px solid #3498db;
background:none;
padding: 10px 20px;
font-size : 20px;
font-family:"montserrat";
cursor:pointer;
margin:10px;
transition:0.8s;
position:relative;
overflow:hidden;
}
.btn1{
color:#3498db;
background-color:white;
}
.btn1:hover{
color:white;
background-color:#3498db;
}
.btn::before{
content:"";
position:absolute;
left: 0;
width:100%;
height:0%;
background:#3498db;
z-index:-1;
transition:0,8s;
}

.btn1::before{
top:0;
border-radius:0 0 50% 50%;
}
.btn1:hover::before{
height:180%;
}