The AuthLayout
component is used to display a form in a layout with a background image or content.
It is used in the login, register pages and transactional content without much content.
TODO: Write documentation
<AuthLayout backgroundContent={ <BackgroundContent style={{ background: "#007DBC", color: "#fff", padding: "3rem", }} > Image can be placed here or just give a background with content like this </BackgroundContent> } > <div>Forms will be here</div> </AuthLayout>;
<AuthLayout {...args}><FormGroup style={{ width: "80%" }}><Buttonicon={ArrowLeft}iconReversekind="secondary"style={{ marginBottom: "3rem" }}>Back to lorem</Button><TextInputlabelText="The labelText"name="inputname"placeholder="placeholder"/><TextInputlabelText="The labelText"name="inputname"placeholder="placeholder"/><divstyle={{display: "flex",justifyContent: "flex-end",alignItems: "center",}}><Link href="https://www.wfp.org">Another link</Link><Button kind="primary" style={{ marginLeft: "2rem" }}>Register</Button></div></FormGroup></AuthLayout>
<BackgroundContentstyle={{background: "linear-gradient(0.13deg, #357DB6 0.17%, #5DB2C2 99.95%)",color: "#fff",padding: "3rem",}}><WfpLogoStandardBlackEndescription="WFP"fill="#fff"style={{ marginBottom: "4rem" }}/><Text kind="h1">Lorem ipsum dolor sit amet, consetetur sadipscing elitr,diam nonumy eirmod.</Text><p style={{ marginTop: "2rem" }}>- Author</p></BackgroundContent>
export const WithImage = (args) => (<AuthLayout {...args}><FormGroup style={{ width: '80%' }}><Buttonicon={ArrowLeft}iconReversekind="secondary"style={{ marginBottom: '3rem' }}>Back to lorem</Button><TextInputlabelText="The labelText"name="inputname"placeholder="placeholder"/><TextInputlabelText="The labelText"name="inputname"placeholder="placeholder"/><divstyle={{display: 'flex',justifyContent: 'flex-end',alignItems: 'center',}}><Link href="https://www.wfp.org">Another link</Link><Button kind="primary" style={{ marginLeft: '2rem' }}>Register</Button></div></FormGroup></AuthLayout>);WithImage.args = {image: 'http://www1.wfp.org/sites/default/files/images/yemen-hero-min.jpg',};