--- /dev/null
+* {
+ padding: 0;
+ margin: 0;
+ box-sizing: border-box; }
+
+@font-face {
+ font-family: "Barlow";
+ src: url("../BarlowSemiCondensed-Medium.woff") format("woff"); }
+body {
+ font-family: Barlow, sans-serif; }
+
+.form {
+ display: inherit; }
+
+.container {
+ background-image: url("../img/background.png");
+ background-size: cover;
+ background-repeat: no-repeat;
+ width: 100vw;
+ height: 100vh;
+ background-position: center;
+ display: flex;
+ align-items: center;
+ flex-direction: column; }
+
+.img {
+ margin: 10vh 0; }
+
+.mail {
+ width: 384px;
+ height: 60px;
+ background: white;
+ border: none;
+ font-size: 20px;
+ color: black;
+ padding: 0 24px; }
+ .mail-btn {
+ width: 384px;
+ height: 60px;
+ background: #2FA07B;
+ border: none;
+ font-size: 20px;
+ color: white;
+ cursor: pointer; }
+
+input::placeholder {
+ color: black; }
+
+@media (max-width: 900px) {
+ .form {
+ display: block; }
+
+ .mail-btn {
+ display: block;
+ width: 300px;
+ max-width: 300px;
+ min-width: 200px;
+ margin: 0 20px; }
+
+ .mail {
+ width: 300px;
+ max-width: 300px;
+ min-width: 200px;
+ margin: 0 20px; }
+
+ .img {
+ max-width: 250px; }
+
+ input::placeholder {
+ text-align: center; } }
+
+/*# sourceMappingURL=style.css.map */
--- /dev/null
+$green : #2FA07B
+*
+ padding: 0
+ margin: 0
+ box-sizing: border-box
+@font-face
+ font-family: "Barlow"
+ src: url("../BarlowSemiCondensed-Medium.woff") format("woff")
+body
+ font-family: Barlow, sans-serif
+.form
+ display: inherit
+
+.container
+ background-image: url("../img/background.png")
+ background-size: cover
+ background-repeat: no-repeat
+ width: 100vw
+ height: 100vh
+ background-position: center
+ display: flex
+ align-items: center
+ flex-direction: column
+
+.img
+ margin: 10vh 0
+.mail
+ width: 384px
+ height: 60px
+ background: white
+ border: none
+ font-size: 20px
+ color: black
+ padding: 0 24px
+ &-btn
+ width: 384px
+ height: 60px
+ background: $green
+ border: none
+ font-size: 20px
+ color: white
+ cursor: pointer
+input::placeholder
+ color: black
+@media (max-width: 900px)
+ .form
+ display: block
+ .mail-btn
+ display: block
+ width: 300px
+ max-width: 300px
+ min-width: 200px
+ margin: 0 20px
+ .mail
+ width: 300px
+ max-width: 300px
+ min-width: 200px
+ margin: 0 20px
+
+ .img
+ max-width: 250px
+ //min-width: 80px
+
+ input::placeholder
+ text-align: center
+
--- /dev/null
+<?php
+if(isset($_POST['mail']))
+{
+ $data=$_POST['mail'].PHP_EOL;
+ $fp = fopen('mail.txt', 'a');
+ fwrite($fp, $data);
+ fclose($fp);
+}
+?>
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport"
+ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <link rel="stylesheet" href="css/style.css">
+ <title>Macair</title>
+</head>
+<body>
+<div class="container">
+ <img class="img" src="img/logo.png" alt="">
+
+ <form class="form" method="post">
+ <input class="mail" type="email" name="mail" placeholder="votre email">
+ <button class="mail-btn" type="submit">S'inscrire à la newsletter</button>
+ </form>
+
+</div>
+</body>
+</html>