SERNY Sacha
3 years ago
11 changed files with 803 additions and 59 deletions
Binary file not shown.
@ -1,21 +1,21 @@ |
|||||
<!DOCTYPE html> |
<!DOCTYPE html> |
||||
<html lang="fr"> |
<html lang="fr"> |
||||
|
|
||||
<head> |
<head> |
||||
<title>Titre</title> |
<title>Titre</title> |
||||
<meta charset="UTF-8"> |
<meta charset="UTF-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
<link href="style/style_home.css" rel="stylesheet"> |
<link href="style/style_home.css" rel="stylesheet"> |
||||
<link rel="icon" type="image/x-icon" href="_content/favicon-32x32.png"> |
<link rel="icon" type="image/x-icon" href="_content/favicon-32x32.png"> |
||||
</head> |
</head> |
||||
|
|
||||
<body> |
<body> |
||||
<main class="home"> |
<main class="home"> |
||||
<div class="title"> |
<div class="title"> |
||||
<h1><a href="index.html">PopOp</a></h1> |
<h1><a href="index.html">PopOp</a></h1> |
||||
</div> |
</div> |
||||
|
|
||||
</main> |
</main> |
||||
</body> |
</body> |
||||
|
|
||||
</html> |
</html> |
@ -0,0 +1,69 @@ |
|||||
|
<!-- Traitement PHP --> |
||||
|
<?php |
||||
|
/* |
||||
|
Faire de la sécurité et de l'optimisation |
||||
|
Ce code est pourri mais VRAIMENT |
||||
|
*/ |
||||
|
$servername = 'mysql-serny-nsi.alwaysdata.net'; |
||||
|
$username = 'serny-nsi'; |
||||
|
$mdp = 'ecole9090*'; |
||||
|
|
||||
|
$bdd = new PDO('mysql:host=mysql-serny-nsi.alwaysdata.net;dbname=serny-nsi_main', $username, $mdp); |
||||
|
|
||||
|
if (isset($_POST['submit'])) { |
||||
|
if (isset($_POST["f_email"]) AND !empty($_POST["f_email"]) AND isset($_POST["f_password"]) AND !empty($_POST["f_password"])) { |
||||
|
$password = htmlspecialchars($_POST['password']); |
||||
|
$mail = htmlspecialchars($_POST['f_email']); |
||||
|
|
||||
|
$look = $bdd->("SELECT * FROM membres WHERE email = ?"); |
||||
|
$look->execite(array($mail)); |
||||
|
$userexist = -1; |
||||
|
$userexist = $look->rowCount(); |
||||
|
if ($userexist == 0) { |
||||
|
|
||||
|
} else { |
||||
|
$erreur = "Le mail utilisé est inconnu." |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
?> |
||||
|
<!DOCTYPE html> |
||||
|
<html lang="fr"> |
||||
|
|
||||
|
<head> |
||||
|
<title>Conenxion</title> |
||||
|
<meta charset="UTF-8"> |
||||
|
<link href="style/style_log.css" rel="stylesheet"> |
||||
|
<link rel="icon" type="image/x-icon" href="_content/favicon-32x32.png"> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<div class="log-area"> |
||||
|
<p>Connecte-toi pour accéder à plus de foncitonnalités</p> |
||||
|
<form action="" method="POST"> |
||||
|
<div class="f_inputs"> |
||||
|
<div> |
||||
|
<label for="f_email">Adresse mail : </label><input type="email" id="f_email" maxlength="70" |
||||
|
placeholder="Adresse mail"> |
||||
|
</div> |
||||
|
<div> |
||||
|
<label for="f_password">Mot de passe : </label><input type="password" id="f_password" maxlength="40" |
||||
|
placeholder="Mot de passe"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="buttons"> |
||||
|
<div class="sign_up"> |
||||
|
<a href="sign_up.html">Pas de compte ?</a> |
||||
|
</div> |
||||
|
<div class="sign_in"> |
||||
|
<input type="submit" name="" value="Se connecter" id="submit"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div> |
||||
|
<?= $erreur ?> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
</body> |
||||
|
|
||||
|
</html> |
@ -1,39 +1,39 @@ |
|||||
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&display=swap'); |
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&display=swap'); |
||||
|
|
||||
body { |
body { |
||||
margin: 0; |
margin: 0; |
||||
} |
} |
||||
main { |
main { |
||||
display: flex; |
display: flex; |
||||
flex-direction: row; |
flex-direction: row; |
||||
justify-content: center; |
justify-content: center; |
||||
width: 100vw; |
width: 100vw; |
||||
height: 100vh; |
height: 100vh; |
||||
background-image: radial-gradient(circle at 32.47% 115.42%, #ffc100 0, #ffb200 8.33%, #ffa014 16.67%, #ff8c2a 25%, #ff7638 33.33%, #ff5e41 41.67%, #f94646 50%, #e12e49 58.33%, #cb164b 66.67%, #b7004e 75%, #a60052 83.33%, #970056 91.67%, #8a005c 100%); |
background-image: radial-gradient(circle at 32.47% 115.42%, #ffc100 0, #ffb200 8.33%, #ffa014 16.67%, #ff8c2a 25%, #ff7638 33.33%, #ff5e41 41.67%, #f94646 50%, #e12e49 58.33%, #cb164b 66.67%, #b7004e 75%, #a60052 83.33%, #970056 91.67%, #8a005c 100%); |
||||
|
|
||||
& .title { |
& .title { |
||||
display: flex; |
display: flex; |
||||
flex-direction: column; |
flex-direction: column; |
||||
justify-content: center; |
justify-content: center; |
||||
|
|
||||
& h1, & h1:visited, & h1:link, & h1:active { |
& h1, & h1:visited, & h1:link, & h1:active { |
||||
padding: 1em; |
padding: 1em; |
||||
background-color: #fff; |
background-color: #fff; |
||||
box-shadow:-1px -1px 15px 0px rgba(255, 255, 255, 0.75); |
box-shadow:-1px -1px 15px 0px rgba(255, 255, 255, 0.75); |
||||
|
|
||||
& a { |
& a { |
||||
color: black; |
color: black; |
||||
text-decoration: none; |
text-decoration: none; |
||||
font-size: 3.5em; |
font-size: 3.5em; |
||||
font-family: "Playfair Display", sans-serif; |
font-family: "Playfair Display", sans-serif; |
||||
font-weight: 700; |
font-weight: 700; |
||||
transition: font-size 0.75s ease-in-out; |
transition: font-size 0.75s ease-in-out; |
||||
|
|
||||
&:hover { |
&:hover { |
||||
transition: font-size 0.75s ease-out; |
transition: font-size 0.75s ease-out; |
||||
font-size: 5em; |
font-size: 5em; |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
} |
} |
@ -0,0 +1,64 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="fr"> |
||||
|
|
||||
|
<head> |
||||
|
<title>PopOp</title> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<link href="style/style_index.css" rel="stylesheet"> |
||||
|
<link href="style/style_main.css" rel="stylesheet"> |
||||
|
<link rel="icon" type="image/x-icon" href="_content/favicon-32x32.png"> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<header> |
||||
|
<h1><a class="_title" href="home.html"><span class="word1">Pop</span><span class="word3">Op</span></a></h1> |
||||
|
<ul> |
||||
|
<li><a href="top.html">Top</a></li> |
||||
|
<li><a href="index.html">Musiques</a></li> |
||||
|
<li><a href="reading.html">Lectures</a></li> |
||||
|
</ul> |
||||
|
<div> |
||||
|
<a href="sign_in.php">Se connecter</a> |
||||
|
<a href="sign_up.php">S'inscrire</a> |
||||
|
</div> |
||||
|
</header> |
||||
|
<main> |
||||
|
<div class="main-side"> |
||||
|
|
||||
|
</div> |
||||
|
<div class="main-contents"> |
||||
|
<aside> |
||||
|
<h2>À propos...</h2> |
||||
|
<p>Voici un site ma foi très peu utile et pertinent afin de rendre un travail un minimum |
||||
|
complété. Ce site n'a pas vraiment d'objectif. Dans l'état actuel des choses le système de connexion |
||||
|
et d'inscription requiert de "simuler" un serveur ou d'en être sur un réel. Par conséquent ce |
||||
|
système n'est pas mis en place ou effectif. Sur mon "test" de <a |
||||
|
href="https://minivoltrush.alwaysdata.net/signup.php" target="_blank">site à ce lien</a>, ce |
||||
|
système fonctionne très bien. Cependant je n'assume plus son contenu ^-^.</p> |
||||
|
</aside> |
||||
|
<aside> |
||||
|
<h2>Fun Fact</h2> |
||||
|
<p>Je me suis souvenu qu'il fallait faire <a href="index.html" target="_blank">ce site</a> uniquement le |
||||
|
dimanche soir |
||||
|
précédent la rentrée du |
||||
|
Lundi 8 Novembre.</p> |
||||
|
<p>Faire un lien un minimum esthétique c'est long. -_-</p> |
||||
|
</aside> |
||||
|
<aside> |
||||
|
<h2>Image aléatoire</h2> |
||||
|
<p>Un site du nom de <a href="https://picsum.photos" target="_blank">picsum</a> affiche une image |
||||
|
aléatoire. Rien de |
||||
|
plus. |
||||
|
</p> |
||||
|
<img src="https://picsum.photos/400/240" alt="random-pic" height="240" width="400"> |
||||
|
</aside> |
||||
|
</div> |
||||
|
</main> |
||||
|
<footer> |
||||
|
<a href="#mentions-legales" target="_blank">Mentions légales + points d'amélioration.</a> <br> Mise en page par |
||||
|
SERNY Sacha. Données par <a href="https://www.wikipedia.org">Wikipedia</a> |
||||
|
</footer> |
||||
|
</body> |
||||
|
|
||||
|
</html> |
Loading…
Reference in new issue