API exemple avec collection MongoDB étudiants
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

320 lines
5.2 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="styles.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Crete+Round" rel="stylesheet">
<title>Arthur DAMBRINE</title>
<style>
/* GENERAL */
*{
margin: 0;
padding: 0;
}
body{
font-family: Arial, sans-serif;
font-size: 15px;
}
h1, h2, h3, h4{
color: #444;
}
h1{
font-family: 'Crete Round', serif;
font-size: 45px;
}
h2{
font-size: 55px;
}
h3{
font-size: 30px;
}
h4{
font-size: 24px;
}
p{
line-height: 20px;
color: #444;
}
a{
text-decoration: none;
color: #777;
}
ul{
list-style: none;
}
.wrapper{
width: 940px;
margin: 0 auto;
padding: 0 10px;
}
.green{
color:#72a8ec;
}
.clear{
clear:both;
}
small{
font-size: 13px;
font-style: italic;
}
/* HEADER */
header{
height: 120px;
}
header h1{
float:left;
margin-top: 32px;
}
header nav{
float:right;
margin-top: 50px;
}
header nav ul li{
float: left;
display: inline-block;
}
header nav ul li a{
text-transform: uppercase;
font-weight: bold;
margin-right: 20px;
}
/* MAIN-IMAGE */
#main-image{
height: 300px;
background: url('https://image.freepik.com/photos-gratuite/fond-bois-vue-dessus_23-2148234292.jpg') center;
}
#main-image h2{
color : #FFFFFF;
font-size: 3em;
font-weight: normal;
text-transform: uppercase;
text-align: center;
padding: 40px 0 40px 0;
margin-bottom: 20px;
}
.button-1{
display: block;
width: 120px;
height: 50px;
background: #72a8ec;
color: #fff;
font-size: 20px;
margin: 0 auto;
line-height: 50px;
text-align: center;
border-radius: 3px;
}
.button-1:hover{
background: #444;
}
/* STEPS */
#steps ul{
margin: 80px 0;
}
#steps ul li{
width: 300px;
float: left;
padding-top: 140px;
text-align: center;
margin-right: 10px;
}
#steps h4{
text-transform: uppercase;
margin-bottom: 20px;
}
#steps p{
margin-bottom: 20px;
font-size: 0.97em;
}
/* POSSIBILITIES */
#possibilities{
background-color: #efefef;
padding: 60px 0;
}
#possibilities article{
width: 460px;
height: 270px;
float: left;
border-radius: 10px;
}
#possibilities article:first-child{
margin-right: 20px;
}
.overlay{
background: rgba(255,255,255,0.95);
height: 100%;
width: 190px;
padding: 20px;
border-radius: 10px 0 0 10px;
text-align: center;
box-sizing: border-box;
}
article h4{
border-bottom: 1px solid #ddd;
padding-bottom: 20px;
text-transform: uppercase;
margin-bottom: 20px;
text-align: center;
}
#possibilities p{
text-align: center;
margin-bottom: 20px;
}
.button-2{
color: #fff;
background-color: #ff7a00;
padding: 6px 20px;
border-radius: 3px;
}
.button-2:hover{
background-color: #02b8dd;
}
/* CONTACT */
#contact{
padding: 60px 0;
text-align: center;
}
#contact h3{
width: 400px;
text-transform: uppercase;
margin: 0 auto 20px auto;
border-bottom: 1px solid #02b8dd;
padding-bottom: 20px;
}
form{
margin: 100px auto;
}
label{
font-weight: bold;
font-size: 20px;
margin-right: 10px;
color: #777;
}
input[type="text"]{
padding: 10px;
font-size: 20px;
margin-right: 20px;
border: 2px solid #ddd;
border-radius: 3px;
}
.button-3{
color: #fff;
font-size: 20px;
font-weight: bold;
padding: 11px;
background-color: #72a8ec;
border-style: none;
border-radius: 3px;
}
.button-3:hover{
background-color: #444;
}
/* FOOTER */
footer{
height: 160px;
background-color: #444;
margin-top: 70px;
}
footer h1{
color:#fff;
text-align: center;
padding-top: 40px;
}
.copyright{
text-align: center;
font-weight: bold;
color: #777;
}
</style>
</head>
<body>
<header>
<div class="wrapper">
<h1>Arthur DAMBRINE<span class="green">.</span></h1>
<nav>
<ul>
<li><a href="">Accueil</a></li>
<li><a href="/api">API</a></li>
<li><a href="/docs">Documentation</a></li>
</ul>
</nav>
</div>
</header>
<section id="main-image">
<div class="wrapper">
<h2>Venez tester mon <br><strong>API</strong></h2>
</div>
<a href="/api" class="button-1">Let's go !</a>
</section>
<footer>
<div class="wrapper">
<h1>Fais avec amour<span class="green">.</span></h1>
<div class="copyright">Copyright © 2020. Tous droits réservés.</div>
</div>
</footer>
</body>
</html>