{"id":580,"date":"2024-12-25T15:14:36","date_gmt":"2024-12-25T15:14:36","guid":{"rendered":"https:\/\/marketplace-marketplace.com\/?page_id=580"},"modified":"2024-12-26T17:09:23","modified_gmt":"2024-12-26T17:09:23","slug":"sing","status":"publish","type":"page","link":"https:\/\/marketplace-marketplace.com\/index.php\/sing\/","title":{"rendered":""},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"580\" class=\"elementor elementor-580\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-27d7247 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"27d7247\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-677c1f8\" data-id=\"677c1f8\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3288dee elementor-widget elementor-widget-heading\" data-id=\"3288dee\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Sign Up<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-134b2de elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"134b2de\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-086bf3c\" data-id=\"086bf3c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-f19235d elementor-widget elementor-widget-html\" data-id=\"f19235d\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    <title>Marketplace Signup<\/title>\r\n    <style>\r\n        body {\r\n            font-family: Arial, sans-serif;\r\n            display: flex;\r\n            justify-content: center;\r\n            align-items: center;\r\n            min-height: 100vh;\r\n            margin: 0;\r\n            background-color: #f8f8f8;\r\n        }\r\n\r\n        .container {\r\n            display: flex;\r\n            justify-content: space-between;\r\n            align-items: stretch;\r\n            max-width: 1000px;\r\n            width: 100%;\r\n            background: #ffffff;\r\n            border-radius: 10px;\r\n            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\r\n            overflow: hidden;\r\n        }\r\n        .social-login button {\r\n            display: flex;\r\n            align-items: center;\r\n            justify-content: center;\r\n        }\r\n\r\n        .social-login button img {\r\n            margin-right: 10px;\r\n            width: 20px;\r\n            height: 20px;\r\n        }\r\n\r\n        .google-btn {\r\n            background-color: #ffffff;\r\n            color: #333;\r\n        }\r\n\r\n        .google-btn:hover {\r\n            background-color: #f1f1f1;\r\n            border-color: #ccc;\r\n        }\r\n\r\n        .left-content {\r\n            text-align: center;\r\n            flex: 1;\r\n            padding: 40px 20px;\r\n            box-sizing: border-box;\r\n        }\r\n\r\n        h1 {\r\n            font-size: 24px;\r\n            font-weight: 600;\r\n            margin-bottom: 10px;\r\n        }\r\n\r\n        p {\r\n            color: #888;\r\n            font-size: 14px;\r\n        }\r\n\r\n        input {\r\n            font-size: 14px;\r\n            width: 100%;\r\n            padding: 12px;\r\n            margin-top: 10px;\r\n            border-radius: 5px;\r\n            border: 1px solid #ddd;\r\n            transition: all 0.3s ease;\r\n        }\r\n\r\n        button {\r\n            font-size: 14px;\r\n            width: 100%;\r\n            padding: 12px;\r\n            margin-top: 10px;\r\n            border-radius: 5px;\r\n            border: 1px solid #ddd;\r\n            transition: all 0.3s ease;\r\n            cursor: pointer;\r\n        }\r\n\r\n        .btn-primary {\r\n            background-color: #6d4aff;\r\n            color: white;\r\n            font-weight: bold;\r\n            border: none;\r\n        }\r\n\r\n        .btn-primary:hover {\r\n            background-color: #5b3ecc;\r\n        }\r\n\r\n        .terms {\r\n            margin-top: 20px;\r\n            font-size: 12px;\r\n            color: #888;\r\n            line-height: 1.5;\r\n        }\r\n\r\n        .terms a {\r\n            color: #6d4aff;\r\n            text-decoration: none;\r\n        }\r\n\r\n        .right-image {\r\n            background: url('https:\/\/marketplace-marketplace.com\/wp-content\/uploads\/2024\/12\/462577848_3511787622464323_3959505101344767654_n.jpg') no-repeat center center;\r\n            background-size: cover;\r\n            width: 700px;\r\n        }\r\n\r\n        @media (max-width: 768px) {\r\n            .container {\r\n                flex-direction: column;\r\n            }\r\n\r\n            .right-image {\r\n                height: 300px;\r\n            }\r\n        }\r\n    <\/style>\r\n<\/head>\r\n<body>\r\n    <div class=\"container\">\r\n        <div class=\"left-content\">\r\n            <h1>Get started with Marketplace Platform<\/h1>\r\n            <p>No credit card required<\/p>\r\n            <div class=\"social-login\">\r\n                <a href=\"https:\/\/marketplace-marketplace.com\/wp-login.php?loginSocial=google\">\r\n                    <button class=\"google-btn\">\r\n                        <img decoding=\"async\" src=\"https:\/\/cdn1.iconfinder.com\/data\/icons\/google-s-logo\/150\/Google_Icons-09-512.png\" alt=\"Google Logo\">\r\n                        Sign up with Google\r\n                    <\/button>\r\n                <\/a>\r\n            <\/div>\r\n\r\n            <input type=\"text\" id=\"fullNameInput\" placeholder=\"Enter your full name here\">\r\n            <input type=\"email\" id=\"emailInput\" placeholder=\"Enter your email\">\r\n            <input type=\"password\" id=\"passwordInput\" placeholder=\"Password\">\r\n            <input type=\"password\" id=\"confirmPasswordInput\" placeholder=\"Confirm password\">\r\n            <button onclick=\"sendConfirmationEmail()\" class=\"btn-primary\">Sign Up<\/button>\r\n\r\n            <p class=\"terms\">\r\n                Already have an account? <a href=\"https:\/\/marketplace-marketplace.com\/index.php\/sign-in\/\">Sign in<\/a>\r\n            <\/p>\r\n        <\/div>\r\n        <div class=\"right-image\"><\/div>\r\n    <\/div>\r\n\r\n    <script>\r\n        async function sendConfirmationEmail() {\r\n            const fullName = document.getElementById(\"fullNameInput\").value;\r\n            const email = document.getElementById(\"emailInput\").value;\r\n            const password = document.getElementById(\"passwordInput\").value;\r\n            const confirmPassword = document.getElementById(\"confirmPasswordInput\").value;\r\n\r\n            if (!fullName || !email || !password || !confirmPassword) {\r\n                alert(\"All fields are required.\");\r\n                return;\r\n            }\r\n\r\n            if (password !== confirmPassword) {\r\n                alert(\"Passwords do not match.\");\r\n                return;\r\n            }\r\n\r\n            try {\r\n                const response = await fetch(window.location.origin + \"\/wp-json\/custom\/v1\/register-pending\", {\r\n                    method: \"POST\",\r\n                    headers: {\r\n                        \"Content-Type\": \"application\/json\",\r\n                    },\r\n                    body: JSON.stringify({\r\n                        name: fullName,\r\n                        email: email,\r\n                        password: password,\r\n                    }),\r\n                });\r\n\r\n                const result = await response.json();\r\n                if (response.ok) {\r\n                    alert(\"Confirmation email sent! Please check your inbox to activate your account.\");\r\n                    \/\/ Redirect to a \"Check your email\" page\r\n                    window.location.href = \"https:\/\/marketplace-marketplace.com\/index.php\/email-sent\/\";\r\n                } else {\r\n                    alert(`Error: ${result.message}`);\r\n                }\r\n            } catch (error) {\r\n                console.error(\"Error during email sending:\", error);\r\n                alert(\"An error occurred while sending the confirmation email.\");\r\n            }\r\n        }\r\n    <\/script>\r\n<\/body>\r\n<\/html>\r\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Sign Up Marketplace Signup Get started with Marketplace Platform No credit card required Sign up with Google Sign Up Already have an account? Sign in<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-580","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/pages\/580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/comments?post=580"}],"version-history":[{"count":26,"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/pages\/580\/revisions"}],"predecessor-version":[{"id":631,"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/pages\/580\/revisions\/631"}],"wp:attachment":[{"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/media?parent=580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}