aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/Login.js
blob: 700de0d7b12e810b6a7b8ae5d13a6eaa9274d25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React from "react";
import FlexibleForm from "../components/FlexibleForm";
import benefitTwoImg from "../assets/img/benefit-two.png";
const Login = () => {
    return (
        <>
            <FlexibleForm
                onSuccess={''}
                data={{
                    image: benefitTwoImg,
                    title: "Sign in to your account",
                    subtitle: "Sign in please",
                    formAction: "/login",
                    formMethod: "POST",
                    formFields: [
                        { label: "Email address", name: "email", type: "email", autoComplete: "email", required: true },
                        { label: "Password", name: "password", type: "password", autoComplete: "current-password", required: true },
                    ],
                    ctaText: "Login",
                    ctaLink: { text: "Don't have an account?", linkText: "Create an account instead!", url: "/sign-up" },
                    underneathButton: { url: "/forgot-password", text: "Forgot Password?" }
                }}
            />
        </>
    );
};

export default Login;