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
29
|
import React from "react";
import FlexibleForm from "../components/flexibleForm";
import benefitTwoImg from "../public/img/benefit-two.png";
const Login = () => {
return (
<>
<FlexibleForm
imgPos="right"
route="/profile"
data={{
image: benefitTwoImg,
title: "Sign in to your account",
subtitle: "sign in pls",
formAction: process.env.API_URL,
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;
|