diff --git a/apk b/apk
new file mode 160000
index 00000000..ccdd5a5c
--- /dev/null
+++ b/apk
@@ -0,0 +1 @@
+Subproject commit ccdd5a5c10014e87b0644fe73fef49a1881fa513
diff --git a/dist/css/signup-form.css b/dist/css/signup-form.css
new file mode 100644
index 00000000..dfad67f1
--- /dev/null
+++ b/dist/css/signup-form.css
@@ -0,0 +1,81 @@
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ font-family: Arial, sans-serif;
+ }
+
+ body {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ height: 100vh;
+ background-color: #f3f4f6;
+ }
+
+ .container {
+ width: 100%;
+ max-width: 400px;
+ padding: 20px;
+ background-color: white;
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
+ border-radius: 8px;
+ text-align: center;
+ }
+
+ h2 {
+ margin-bottom: 20px;
+ color: #333;
+ }
+
+ .form {
+ display: flex;
+ flex-direction: column;
+ gap: 15px;
+ }
+
+ input {
+ padding: 10px;
+ border: 1px solid #ccc;
+ border-radius: 5px;
+ font-size: 16px;
+ }
+
+ button {
+ padding: 10px;
+ border: none;
+ background-color: #007bff;
+ color: white;
+ font-size: 16px;
+ border-radius: 5px;
+ cursor: pointer;
+ }
+
+ button:hover {
+ background-color: #0056b3;
+ }
+
+ .toggle-form {
+ margin-top: 10px;
+ }
+
+ .toggle-form a {
+ color: #007bff;
+ text-decoration: none;
+ }
+
+ .toggle-form a:hover {
+ text-decoration: underline;
+ }
+
+ /* Style responsive pour les petits écrans */
+ @media (max-width: 400px) {
+ .container {
+ padding: 10px;
+ width: 90%;
+ }
+ }
+
+ .hidden {
+ display: none;
+ }
diff --git a/dist/css/styles.css b/dist/css/styles.css
index d88b4985..2ff96863 100644
--- a/dist/css/styles.css
+++ b/dist/css/styles.css
@@ -1,7 +1,7 @@
@charset "UTF-8";
/*!
* Start Bootstrap - Landing Page v6.0.6 (https://startbootstrap.com/theme/landing-page)
-* Copyright 2013-2023 Start Bootstrap
+* Copyright 2013-2024 Start Bootstrap
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-landing-page/blob/master/LICENSE)
*/
/*!
@@ -10916,4 +10916,8 @@ header.masthead h1, header.masthead .h1 {
footer.footer {
padding-top: 4rem;
padding-bottom: 4rem;
-}
\ No newline at end of file
+}
+
+.hidden {
+ display: none;
+}
diff --git a/dist/index.html b/dist/index.html
index 29fbf448..f0875e42 100644
--- a/dist/index.html
+++ b/dist/index.html
@@ -20,7 +20,7 @@
@@ -45,7 +45,7 @@
Generate more leads with a professional landing page!
Email Address is required.
-
Email Address Email is not valid.
+
Email Address Email is not valid.
@@ -66,6 +66,21 @@ Generate more leads with a professional landing page!
+
+
diff --git a/dist/js/scripts.js b/dist/js/scripts.js
index 0a1726ad..39904f87 100644
--- a/dist/js/scripts.js
+++ b/dist/js/scripts.js
@@ -1,6 +1,6 @@
/*!
* Start Bootstrap - Landing Page v6.0.6 (https://startbootstrap.com/theme/landing-page)
-* Copyright 2013-2023 Start Bootstrap
+* Copyright 2013-2024 Start Bootstrap
* Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-landing-page/blob/master/LICENSE)
*/
// This file is intentionally blank
diff --git a/dist/save_email.php b/dist/save_email.php
new file mode 100644
index 00000000..3f046173
--- /dev/null
+++ b/dist/save_email.php
@@ -0,0 +1,46 @@
+ 'Aucune adresse email reçue.']);
+ exit();
+}
+
+$email = $data['email'];
+
+// Valide le format de l'email
+if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
+ echo json_encode(['message' => 'Adresse email non valide.']);
+ exit();
+}
+
+try {
+ // Connexion à la base de données SQLite
+ $db = new PDO('sqlite:email.sql');
+
+ // Crée la table si elle n'existe pas
+ $db->exec("CREATE TABLE IF NOT EXISTS emails (email TEXT UNIQUE)");
+
+ // Vérifie si l'email existe déjà
+ $query = $db->prepare("SELECT email FROM emails WHERE email = :email");
+ $query->bindParam(':email', $email);
+ $query->execute();
+
+ if ($query->fetchColumn()) {
+ echo json_encode(['message' => 'L\'adresse email existe déjà dans la base de données.']);
+ } else {
+ // Ajoute l'email et trie par ordre alphabétique
+ $insert = $db->prepare("INSERT INTO emails (email) VALUES (:email)");
+ $insert->bindParam(':email', $email);
+ $insert->execute();
+
+ // Tri des emails en ordre alphabétique
+ $emails = $db->query("SELECT email FROM emails ORDER BY email ASC")->fetchAll(PDO::FETCH_COLUMN);
+
+ echo json_encode(['message' => 'Adresse email ajoutée avec succès.', 'emails' => $emails]);
+ }
+} catch (PDOException $e) {
+ echo json_encode(['message' => 'Erreur lors de l\'ajout de l\'email : ' . $e->getMessage()]);
+}
+// Pour exécuter ce code, assure-toi d’avoir un serveur local (comme XAMPP ou WAMP) et d’activer l’extension SQLite.
+?>
diff --git a/dist/signup-form.html b/dist/signup-form.html
new file mode 100644
index 00000000..9f5531a1
--- /dev/null
+++ b/dist/signup-form.html
@@ -0,0 +1,27 @@
+
+
+
+
+
+ Connexion et Inscription
+
+
+
+
+
+
+
+
\ No newline at end of file