Skip to content

Commit

Permalink
add style for pre login component
Browse files Browse the repository at this point in the history
  • Loading branch information
avinash-mane committed May 22, 2020
1 parent ce80211 commit 3150ec5
Showing 1 changed file with 40 additions and 11 deletions.
51 changes: 40 additions & 11 deletions react-frontend/src/login/PreLoginPanelMobileComponent.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,50 @@
import React from "react";
import { Container, Row } from "react-bootstrap";
import { Container } from "react-bootstrap";
import styled from "styled-components";
import PropTypes from "prop-types";
import LogoComponent from "shared-components/peerly-Logo/LogoComponent";
import LoginTextComponent from "shared-components/login-text-component/LoginTextComponent";
import PreLoginImageComponent from "shared-components/prelogin-image-components/PreLoginImageComponent";

const PreLoginPanelMobileComponent = () => (
<Container className="bg-dark w-100" fluid={true}>
<Row className="h-25 py-5">
<LogoComponent className="text-white" />
</Row>
<Row className="h-50">
const RowText = styled.div`
hight: 33%;
width: 100%;
`;

const RowImage = styled.div`
hight: 34%;
width: 100%;
`;

const PreLoginPanelMobileComponent = ({
classNameContainer,
orgPrimaryCoreValue,
encouragementThought,
}) => (
<Container className={classNameContainer} fluid={true}>
<RowText className="py-5">
<LogoComponent />
</RowText>
<RowImage>
<PreLoginImageComponent className="w-100 img-fluid" />
</Row>
<Row className="h-25 py-5">
<LoginTextComponent />
</Row>
</RowImage>
<RowText className="py-5">
<LoginTextComponent
orgPrimaryCoreValue={orgPrimaryCoreValue}
encouragementThought={encouragementThought}
/>
</RowText>
</Container>
);

PreLoginPanelMobileComponent.defaultProps = {
classNameContainer: "bg-dark w-100",
};

PreLoginPanelMobileComponent.propTypes = {
classNameContainer: PropTypes.string,
orgPrimaryCoreValue: PropTypes.string,
encouragementThought: PropTypes.string,
};

export default PreLoginPanelMobileComponent;

0 comments on commit 3150ec5

Please sign in to comment.