diff --git a/SignUp/gaming.jpg b/SignUp/gaming.jpg new file mode 100644 index 00000000..8281e362 Binary files /dev/null and b/SignUp/gaming.jpg differ diff --git a/SignUp/google.png b/SignUp/google.png new file mode 100644 index 00000000..894ca6aa Binary files /dev/null and b/SignUp/google.png differ diff --git a/SignUp/signup.css b/SignUp/signup.css index d426fd74..987c826b 100644 --- a/SignUp/signup.css +++ b/SignUp/signup.css @@ -1,358 +1,111 @@ -* { - box-sizing: border-box; - margin: 0; - padding:0; +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Arial', sans-serif; } body { - background: url('https://images.pexels.com/photos/7135057/pexels-photo-7135057.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2') no-repeat center center fixed; - background-size: cover; - font-family: 'Trebuchet MS', Arial, sans-serif; - display: flex; - flex-direction: column; - justify-content: start; - align-items: start; - height: 100vh; - color: white; - text-shadow: 1px 1px 2px #000; -} - - -.error-message { - color: red; - font-size: 0.85em; - margin-top: 5px; -} - -.signup-container { - - opacity: 0.75; - background-color: rgba(0, 0, 0, 0); - padding:3rem 5rem; - border-radius: 20px; - box-shadow: 0 0px 0px rgba(0, 0, 0, 0.5); - text-align: center; - max-width: 500px; - width: 100%; - animation: fadeIn 2s ease-in-out; - background-color: black; - margin: auto; -} - -@keyframes fadeIn { - from { - opacity: 0; - transform: scale(0.9); - } - to { - opacity: 0.75; - transform: scale(1); - } -} - -h1 { - margin-bottom: 1.5rem; - font-size: 1.5rem; - color: #fb5283; -} - -.input-group { - margin-bottom: 1.5rem; - text-align: left; -} - -label { - display: block; - margin-bottom: 0.5rem; - font-size: 16px; + background-image: url('gaming.jpg'); /* Add your background image */ + background-size: cover; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; } -input[type="text"], -input[type="email"], -input[type="password"] { +.register-container { + background-color: rgba(255, 255, 255, 0.003); /* Transparent background */ + border-radius: 10px; + padding: 30px; + max-width: 400px; width: 100%; - padding: 0.75rem; - border: 2px solid #6a1b9a; - border-radius: 5px; - background-color: #3a3f44; - color: white; - font-family: "Press Start 2P", cursive; - font-size: 0.875rem; + box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37); + backdrop-filter: blur(12px); } -input[type="text"]:focus, -input[type="email"]:focus, -input[type="password"]:focus { - outline: none; - border-color: #ba68c8; - background-color: #2a2e32; +.register-container:hover{ + border: 2px solid rgb(18, 242, 18); } -.signup-button { +.register-form h2 { color: white; - font-family: Helvetica, sans-serif; - font-weight: bold; - font-size: 20px; text-align: center; - background-color: #ffa12b; - display: block; - position: relative; - padding: 15px 60px; - margin: auto; - - cursor: pointer; - transition: background-color 0.2s, color 0.2s; - - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); - text-shadow: 0px 1px 0px #000; - filter: dropshadow(color=#000, offx=0px, offy=1px); - - -webkit-box-shadow: inset 0 1px 0 #ffe5c4, 0 10px 0 #915100; - -moz-box-shadow: inset 0 1px 0 #ffe5c4, 0 10px 0 #915100; - box-shadow: inset 0 1px 0 #ffe5c4, 0 10px 0 #915100; - - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; -} - -.signup-button:active { - top: 10px; - background-color: #f78900; - - -webkit-box-shadow: inset 0 1px 0 #ffe5c4, inset 0 -3px 0 #915100; - -moz-box-shadow: inset 0 1px 0 #ffe5c4, inset 0 -3pxpx 0 #915100; - box-shadow: inset 0 1px 0 #ffe5c4, inset 0 -3px 0 #915100; -} -.signup-button:after { - content: ""; - height: 100%; - width: 100%; - padding: 4px; - position: absolute; - bottom: -15px; - left: -4px; - z-index: -1; - background-color: #2b1800; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; -} -.signup-button:hover { - background-color: #ffd198; - color: #f78900; + margin-bottom: 20px; + text-shadow: 2px 2px 2px rgb(91, 57, 57); } -.links { - margin-top: 18px; -} - -.links a { - color: #fb5283; - text-decoration: none; - transition: color 0.3s; - font-size: 18px; -} - -.links a:hover { - color: #ff80ab; - text-decoration: underline; +.input-field { + position: relative; + margin-bottom: 20px; } -.linksHome { +.input-field i { position: absolute; - top: 20px; - left: 20px; - cursor: pointer; - padding: 10px; - font-size: large; - text-decoration: none; - border-radius: 15px; - border: none; - background: linear-gradient( - 0deg, - rgba(255, 193, 219, 1) 0%, - rgba(245, 131, 202, 1) 100% - ); + top: 12px; + left: 10px; color: #fff; - overflow: hidden; } -.linksHome:hover { - text-decoration: none; - background: linear-gradient( - 0deg, - rgba(245, 131, 202, 1) 0%, - rgba(255, 193, 219, 1) 100% - ); - color: #fff; +.input-field input { + width: 100%; + padding: 12px 40px; + border: none; + border-radius: 5px; + background-color: rgba(255, 255, 255, 0.2); + color: rgb(255, 255, 255); + font-size: 16px; } -.linksHome:before { - position: absolute; - content: ""; - display: inline-block; - top: -180px; - left: 0; - width: 30px; - height: 100%; +.input-field input:focus { background-color: rgba(255, 255, 255, 0.3); - animation: shiny-btn1 3s ease-in-out infinite; -} - -.linksHome:active { - box-shadow: 4px 4px 6px 0 rgba(255, 193, 219, 0.3), - -4px -4px 6px 0 rgba(245, 131, 202, 0.3), - inset -4px -4px 6px 0 rgba(255, 193, 219, 0.3), - inset 4px 4px 6px 0 rgba(245, 131, 202, 0.3); -} - -@keyframes shiny-btn1 { - 0% { - transform: scale(0) rotate(45deg); - opacity: 0; - } - 80% { - transform: scale(0) rotate(45deg); - opacity: 0.5; - } - 81% { - transform: scale(4) rotate(45deg); - opacity: 1; - } - 100% { - transform: scale(50) rotate(45deg); - opacity: 0; - } -} - -.linksHome a { - color: #ffe4e9; -} - -a { - text-decoration: none; -} - -#link-home{ - border: 1px solid rgb(255, 255, 255); - box-shadow: 0 0 5px white; - border-radius: 15px; - padding: 8px 15px; - - margin-left: 1rem; - margin-top: 1rem; - -} - -#link-home:hover{ - border: 1px solid rgb(202, 202, 202); - box-shadow: 0 0 5px #424242; - background-color: #42424222; - border-radius: 15px; - padding: 8px 15px; - - margin-left: 1rem; - margin-top: 1rem; -} - -#link-home a{ - text-decoration: none; - color: #fff; - font-size: 1.4rem; - text-shadow: none; - font-family: 'Trebuchet MS', Arial, sans-serif; - + outline: none; + border:2px solid rgb(7, 231, 7); } -/* ... existing styles ... */ - -.signup-button, .google-signup-button { +.btn { width: 100%; padding: 10px; - margin: 10px 0; + background-color: #28a745; border: none; border-radius: 5px; - cursor: pointer; + color: white; font-size: 16px; - transition: background-color 0.3s ease; + cursor: pointer; + transition: background-color 0.3s; } -.signup-button { - background-color: #f4a261; - color: white; +.btn:hover { + background-color: #218838; } -.signup-button:hover { - background-color: #e76f51; +.alternative-signup { + text-align: center; + color: white; + margin-top: 20px; } -.google-signup-button { +.google-signup { background-color: white; - color: #757575; - border: 1px solid #dadce0; + color: black; + width: 100%; + padding: 10px; + border-radius: 10px; display: flex; - align-items: center; justify-content: center; + align-items: center; + cursor: pointer; + border:1px d; + font-size: 16px; + margin-top: 5px; } -.google-signup-button:hover { - background-color: #f8f9fa; +.google-signup:hover{ + background-color: #f2f2f2; } -.google-signup-button img { - width: 18px; - height: 18px; +.google-signup img { + width: 40px; margin-right: 10px; } - -.or-divider { - text-align: center; - margin: 20px 0; - color: #757575; - position: relative; - overflow: hidden; -} - -.or-divider::before, -.or-divider::after { - content: ""; - position: absolute; - top: 50%; - width: 45%; - height: 1px; - background-color: #dadce0; -} - -.or-divider::before { - left: 0; -} - -.or-divider::after { - right: 0; -} - -.or-divider span { - display: inline-block; - position: relative; - padding: 0 10px; - background-color: #000; /* Match this with your form background color */ -} - -.links { - text-align: center; - margin-top: 20px; -} - -.links a { - color: #e76f51; - text-decoration: none; -} - -.links a:hover { - text-decoration: underline; -} -::placeholder { - color: white; -} diff --git a/SignUp/signup.html b/SignUp/signup.html index 723c3b67..ecf94006 100644 --- a/SignUp/signup.html +++ b/SignUp/signup.html @@ -3,76 +3,47 @@ - Sign Up for GamingTools + + - - + Register - - - Home - - -
-

Create Your Account

-
-
- - +
+ +

Welcome to Registration!

+
+ +
+ vraccessories +
+ + +
+ main
-
- - +
+ +
- - -
-

At least 8 characters

-

Contains uppercase letters

-

Contains lowercase letters

-

Contains numbers

-

Contains special characters

- - -
- - +
+ + +
+ + -
- -
- OR -
- -
- - - + diff --git a/SignUp/signup.js b/SignUp/signup.js index bd139f02..283e7738 100644 --- a/SignUp/signup.js +++ b/SignUp/signup.js @@ -1,96 +1,21 @@ -document.addEventListener("DOMContentLoaded", () => { - const signupButton = document.querySelector(".signup-button"); - - // List of trusted email domains - const trustedDomains = ["gmail.com", "outlook.com", "yahoo.com", "hotmail.com" , "protonmail.com" , "icloud.com" , "tutanota.com"]; - - signupButton.addEventListener("click", (e) => { - e.preventDefault(); - - const name = document.querySelector("#username").value; - const email = document.querySelector("#email").value; - const password = document.querySelector("#password").value; - const confirmPassword = document.querySelector("#confirm-password").value; - const emailError = document.querySelector("#email-error"); // Reference to email error div - const passwordError = document.querySelector("#password-error"); // Reference to password error div - - // Clear any previous error messages - emailError.textContent = ""; - emailError.style.display = "none"; // Hide the error message by default - passwordError.textContent = ""; - passwordError.style.display = "none"; // Hide the error message by default - - if (!name || !email || !password || !confirmPassword) { - emailError.textContent = "Every field is required."; - emailError.style.display = "block"; - return; - } - - // Email domain validation - const emailDomain = email.split("@")[1]; // Get the domain from the email - if (!trustedDomains.includes(emailDomain)) { - emailError.textContent = "Please use an email address from a trusted provider (e.g., Gmail, Outlook, Yahoo) etc."; - emailError.style.display = "block"; - return; - } - - // Password matching validation - if (password !== confirmPassword) { - passwordError.textContent = "Passwords do not match."; - passwordError.style.display = "block"; - return; - } - - const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; - if (!emailPattern.test(email)) { - alert("Please enter a valid email address."); - return; // Stop the function if the email is not in the right format - } - - const userdata = { - name, - email, - password, - confirmPassword - }; - - registerUser(userdata); - }); - - const registerUser = async (user) => { - try { - const res = await fetch("http://localhost:5000/auth/signup", { - method: "POST", - headers: { "content-type": "application/json" }, - body: JSON.stringify(user) - }); - - const data = await res.json(); - console.log(data); - window.location.href = "http://127.0.0.1:5500/Collect-your-GamingTools/login/login.html"; - } catch (err) { - console.log(err.message); - } - }; - - // Password Strength Check - const passwordInput = document.querySelector("#password"); - const conditions = { - length: document.getElementById("length"), - uppercase: document.getElementById("uppercase"), - lowercase: document.getElementById("lowercase"), - number: document.getElementById("number"), - special: document.getElementById("special") - }; - - passwordInput.addEventListener("input", () => { - const password = passwordInput.value; - - // Check each condition and toggle the "met" class - conditions.length.classList.toggle("met", password.length >= 8); - conditions.uppercase.classList.toggle("met", /[A-Z]/.test(password)); - conditions.lowercase.classList.toggle("met", /[a-z]/.test(password)); - conditions.number.classList.toggle("met", /\d/.test(password)); - conditions.special.classList.toggle("met", /[!@#$%^&*(),.?":{}|<>]/.test(password)); - }); +document.getElementById('registerForm').addEventListener('submit', function(event) { + event.preventDefault(); + + const username = document.getElementById('username').value; + const email = document.getElementById('email').value; + const password = document.getElementById('password').value; + const confirmPassword = document.getElementById('confirmPassword').value; + + if (password !== confirmPassword) { + alert('Passwords do not match!'); + return; + } + + if (password.length < 8) { + alert('Password must be at least 8 characters long!'); + return; + } + + alert('Registration successful!'); + // You can add further code to submit the form data to the server. }); diff --git a/index.html b/index.html index 650f7c40..6a597cb4 100644 --- a/index.html +++ b/index.html @@ -55,16 +55,56 @@ + vraccessories +
  • + + Cart Icon 0 + +
  • + + Cart Icon 0 + main
    + vraccessories + + + + +
    +
    +
    + + +
    +

    Welcome to GamingTools

    @@ -534,8 +575,11 @@

    Emily Davismore

    + vraccessories + main +
    @@ -545,6 +589,17 @@

    Contact Our Customer Support Team

    We're here to assist you with any questions or concerns you may have.

    + vraccessories + +
    +
    +
    +

    Contact Our Customer Support Team

    +

    + We're here to assist you with any questions or concerns you may have. +

    + + main
    @@ -652,18 +707,27 @@

    Quick Links

  • Privacy Policy
  • + + + +