diff --git a/src/Components/All Routes/AllRoutes.jsx b/src/Components/All Routes/AllRoutes.jsx index 681d4c5..9e17e40 100644 --- a/src/Components/All Routes/AllRoutes.jsx +++ b/src/Components/All Routes/AllRoutes.jsx @@ -13,7 +13,7 @@ import Profile from "../Profile/Profile"; import Login from "../Profile/Login"; import Supplier from "../Supplier/Supplier"; import Footer from "../Footer/Footer"; - +import StartSellingLogin from "../Supplier/StartSelling_LoginPage"; export default function AllRoutes() { return ( <> @@ -26,6 +26,7 @@ export default function AllRoutes() { } /> } /> } /> + } /> } /> diff --git a/src/Components/Supplier/StartSelling_LoginPage.css b/src/Components/Supplier/StartSelling_LoginPage.css new file mode 100644 index 0000000..84c098e --- /dev/null +++ b/src/Components/Supplier/StartSelling_LoginPage.css @@ -0,0 +1,46 @@ +.StartSelling_Main_Division { + display: flex; + justify-content: flex-start; + width: 100vw; + height: 100vh; + border: 2px solid red; +} +.StartSelling_Login_First_Div_Meesho_Background { + height: 100%; + width: 50%; +} +.StartSelling_Login_First_Div_image { + height: 100%; + width: 100%; +} +.StartSellingLoginForm { + display: flex; + justify-content: center; + width: 50%; +} +.StartSellingLoginForm_Box { + text-align: center; + border: 2px solid whitesmoke; + width: 80%; + height: 70%; + margin-top: 10%; +} +.StartSellingLoginForm_Email { + text-align: center; + min-width: 80%; + min-height: 3rem; + margin-bottom: 10%; +} +.LoginForm_Submission { + display: flex; + justify-content: space-evenly; +} +.Blue-colour-text { + color: rgb(55, 43, 226); +} +.Login_FormSubmit { + background-color: rgb(75, 75, 134); + color: white; + min-width: 5rem; + min-height: 2.2rem; +} diff --git a/src/Components/Supplier/StartSelling_LoginPage.jsx b/src/Components/Supplier/StartSelling_LoginPage.jsx new file mode 100644 index 0000000..6891d60 --- /dev/null +++ b/src/Components/Supplier/StartSelling_LoginPage.jsx @@ -0,0 +1,70 @@ +import React from "react"; +import meesho from "./meesho_full_background.jpg"; +import "./StartSelling_LoginPage.css"; +import { useState } from "react"; +const StartSellingLogin = () => { + let success = "Login Successful!"; + let fail = "Login Failed Please Enter the Correct Details"; + const [email, setEmail] = useState(""); + const [pass, setPass] = useState(""); + const myFunction = () => { + var x = document.getElementById("myInput"); + if (x.type === "password") { + x.type = "text"; + } else { + x.type = "password"; + } + }; + const handleSubmit = e => { + e.preventDefault(); + let mail = localStorage.getItem("Email").replace(/"/g, ""); + let pa = localStorage.getItem("Password").replace(/"/g, ""); + alert(pass == pa && mail == email ? success : fail); + }; + return ( +
+
+ +
+
+
+
+

Login to your supplier panel

+
+ setEmail(event.target.value)} + /> +
+ setPass(event.target.value)} + /> +
+ + Show Password +
+
+
+
+
Forgot Password ?
+ +
+
+
+
+
+ ); +}; +export default StartSellingLogin; diff --git a/src/Components/Supplier/Supplier.jsx b/src/Components/Supplier/Supplier.jsx index e9e52a2..7f23d77 100644 --- a/src/Components/Supplier/Supplier.jsx +++ b/src/Components/Supplier/Supplier.jsx @@ -6,6 +6,8 @@ import img3 from "./main-img-3.png"; import img4 from "./main-img-4.png"; import img5 from "./main-img-5.png"; import numimg from "./numbers.png"; +import SupplierForm from "./SupplierForm"; + import "./supplier.css"; let images = [img1, img1, img2, img3, img4, img5]; let data = [ @@ -42,6 +44,7 @@ let data = [ ]; export default function Supplier() { let [ind, setInd] = React.useState(0); + let [show, setShow] = React.useState(true); return ( <>
@@ -70,26 +73,36 @@ export default function Supplier() {

setInd(4)}> Shipping & Returns

setInd(5)}>Grow Business

- - + + + +

Meesho Supplier Page

-
-
- {" "} -

- {data[ind][0]} {data[ind][1]} -

-

{data[ind][2]}

-

- +91 {" "} - -

-
- -
- + {show ? ( + <> +
+
+ {" "} +

+ {data[ind][0]} {data[ind][1]} +

+

+ {data[ind][2]} +

+

+ +91 {" "} + +

+
+ +
+ {" "} + + ) : ( + + )} ); } diff --git a/src/Components/Supplier/SupplierForm.jsx b/src/Components/Supplier/SupplierForm.jsx new file mode 100644 index 0000000..ec2186a --- /dev/null +++ b/src/Components/Supplier/SupplierForm.jsx @@ -0,0 +1,208 @@ +import React from "react"; +import { FaLock } from "react-icons/fa"; +import styled from "styled-components"; +import img from "./form-img.png"; + +export default function SupplierForm() { + let [inp, setInp] = React.useState(""); + const inpHandler = e => { + if (inp === "") { + setInp("+91 - " + e.target.value); + return; + } + setInp(e.target.value); + }; + console.log(inp.length); + return ( + <> +
+
+
+

Welcome to Meesho

+

Create your account to start selling

+
+ + +
+ + +
+ + +
+
    +
  • Minimum 8 Characters
  • +
  • 1 Special Characters (@#$%!^&*)
  • +
  • 1 Capital letter
  • +
  • 1 Number
  • +
+ {" "} + + +

+ By clicking you agree to our Terms & Conditions{" "} + and Privacy Policy +

+
+
+
+

Grow your business faster by selling on Meesho

+ +

All you need to sell on Meesho is

+

+ + + + GSTIN +

+

+ {" "} + + + + Bank Account +

+
+
+ + + ); +} + +let Section = styled.section` + display: flex; + position: relative; + justify-content: space-evenly; + padding: 50px; + flex-wrap: wrap; + + #footer-image { + height: 150px; + width: 99vw; + } + article { + width: 420px; + padding: 10px; + margin: 0 50px; + #selling-form-h1 { + font-size: 28px; + + p { + font-size: 14.5px; + margin: 8px 0 15px; + } + } + #selling-form-inp { + display: flex; + margin: 12px 0; + button { + color: #f43397; + background-color: #fff; + border: 1px solid #f43397; + padding: 7px 10px; + } + } + #selling-form-inp input { + flex-grow: 1; + margin-right: 15px; + padding: 7px 9px; + } + .input-text { + width: 94.6%; + padding: 7px 9px; + margin: 12px 0; + } + #selling-form-password { + border: 1px solid #000; + /* width: 79.2%; */ + padding: 8px 9px; + margin: 12px 0; + display: flex; + input { + border: none; + flex-grow: 1; + &:focus { + outline: none; + } + } + } + } + ul { + font-size: 13px; + padding-left: 20px; + margin-bottom: 12px; + li { + margin: 7px 0; + } + } + + #box + label { + font-size: 14px; + span { + color: #f43397; + font-weight: bold; + } + } + label + button { + margin: 50px 0 15px; + width: 100%; + font-weight: 500; + padding: 13px 0; + color: white; + background-color: #f43397; + border: none; + + p { + font-size: 10px; + text-align: center; + span { + color: #f43397; + font-weight: 500; + } + } + } + .active { + background-color: #f43397 !important; + color: white !important; + } + img { + width: 140%; + margin: 50px 0; + } + h4 { + margin: 15px 0; + } + p > svg { + margin-right: 10px; + transform: translateY(4px); + } +`; diff --git a/src/Components/Supplier/form-img.png b/src/Components/Supplier/form-img.png new file mode 100644 index 0000000..285ff05 Binary files /dev/null and b/src/Components/Supplier/form-img.png differ diff --git a/src/Components/Supplier/meesho_full_background.jpg b/src/Components/Supplier/meesho_full_background.jpg new file mode 100644 index 0000000..c7a1d83 Binary files /dev/null and b/src/Components/Supplier/meesho_full_background.jpg differ