Locaft/src/components/PricingPlan.js

243 lines
5.9 KiB
JavaScript
Raw Normal View History

2020-11-16 08:48:20 -08:00
import React, { Component } from 'react';
2020-11-21 09:27:17 -08:00
import NavBar from './NavBar';
2020-12-16 07:31:17 -08:00
import Footer from './Footer';
2021-03-01 09:23:13 -08:00
import styled from 'styled-components';
2021-02-27 09:25:16 -08:00
const WhiteContainer = styled.div`
background: white;
`;
const PricingPlanContainer = styled.div`
display:flex;
align-items: center;
justify-content: center;
padding: 10px;
2021-03-03 09:26:17 -08:00
flex-direction: row;
2021-02-27 09:25:16 -08:00
`;
2021-03-01 09:23:13 -08:00
const Pricing = styled.section`
2021-02-27 09:25:16 -08:00
background: white;
width:300px;
border-radius: 25px;
box-shadow: 0 0 5px rgba(0,0,0,0.2);
overflow: hidden;
font-family: sans-serif;
font-size: 16px;
line-height: 1.5;
color: #555555;
margin: 15px;
&:hover &:active {
box-shadow: 0 0 15px rgba(0,0,0,0.4);
transform: scale(1.05);
}
`;
const Text = styled.p`
font-size: 0.9em;
text-align: center;
margin: 0 0 10px 0;
`;
const Currency = styled.p`
margin: 0;
text-align: center;
font-size: 2em;
color:#000000;
`;
2021-03-03 09:26:17 -08:00
2021-02-27 09:25:16 -08:00
const Title = styled.h1`
font-size:1.5em;
font-weight: 400;
`;
const Header = styled.div`
padding:25px;
background: #009578;
color: #ffffff;
`;
2021-02-28 09:51:28 -08:00
const Summary = styled.h2`
2021-02-27 09:25:16 -08:00
2021-02-28 09:51:28 -08:00
font-size: 1em;
font-weight: 300;
`;
2021-03-01 09:23:13 -08:00
const SpecialText = styled.div`
2021-02-27 09:25:16 -08:00
padding: 10px;
text-align: center;
font-weight: bold;
color: #ffffff;
background: #007c64;
box-shadow: 0 0 10px rgba(0,0,0,0.2) inset;
2021-02-28 09:51:28 -08:00
&, ${Title}{
margin: 0;
text-align: center;
font-family: sans-serif;
}
`;
2021-02-28 23:44:52 -08:00
const Description = styled.div`
2021-03-03 09:26:17 -08:00
display:block;
2021-02-28 09:51:28 -08:00
padding: 25px;
2021-03-01 09:23:13 -08:00
`;
const List = styled.ul`
2021-02-28 09:51:28 -08:00
padding: 0;
margin: 0;
text-align: left;
2021-02-27 09:25:16 -08:00
`;
2021-02-28 23:44:52 -08:00
const Feature = styled.li`
2021-03-03 09:26:17 -08:00
margin: 0 0 25px 0;
2021-02-28 23:44:52 -08:00
padding-left: 25px;
position: relative;
2021-03-03 09:26:17 -08:00
font-size: 0.9 em;
2021-02-28 23:44:52 -08:00
&:not(:last-child) {
margin-bottom: 2em;
}
&::before {
2021-03-03 09:26:17 -08:00
content: "✓ ";
color: green;
2021-02-28 23:44:52 -08:00
}
`;
2021-03-01 09:23:13 -08:00
const Actions = styled.div`
2021-02-28 23:44:52 -08:00
padding: 25px;
border-top: 1px solid #eeeeee;
display: flex;
flex-direction: column;
`;
const Button = styled.a`
display: inline-block;
margin: 15px auto;
padding: 8px 20px;
color: #009578;
background: #ffffff;
border-radius: 5px;
border: 1px solid #009578;
text-transform: uppercase;
letter-spacing: 0.02em;
font-weight: bold;
text-align: center;
&:hover {
background: #009578;
2021-03-03 09:26:17 -08:00
color: white !important;
2021-02-28 23:44:52 -08:00
}
2021-02-27 09:25:16 -08:00
2021-02-28 23:44:52 -08:00
`;
2021-03-01 09:23:13 -08:00
2020-11-16 08:48:20 -08:00
class PricingPlan extends Component {
2021-03-01 09:23:13 -08:00
render() {
return (
2020-11-16 08:48:20 -08:00
<div className="body">
2020-11-21 09:27:17 -08:00
<NavBar />
2020-11-23 08:49:49 -08:00
<br />
<br />
<br />
2021-03-01 09:23:13 -08:00
<h1 style={{ 'color': '#66bfbf', 'margin-left': '20px' }}>Pricing Plan</h1>
<PricingPlanContainer>
<Pricing>
<Header>
<Title>Basic Package</Title>
<Summary>For those getting started</Summary>
</Header>
<Description>
<List>
<Feature>Feature #1</Feature>
<Feature>Feature #2</Feature>
<Feature>Feature #3</Feature>
<Feature>Feature #4</Feature>
</List>
</Description>
<Actions>
<Currency>$10</Currency>
<Text>per month</Text>
<Text>Minimum sped over 12 months</Text>
</Actions>
</Pricing>
<Pricing>
<SpecialText>Recommended</SpecialText>
<Header>
<Title>Intermediate Package</Title>
<Summary>For those getting started</Summary>
</Header>
<Description>
<List>
<Feature>Feature #1</Feature>
<Feature>Feature #2</Feature>
<Feature>Feature #3</Feature>
<Feature>Feature #4</Feature>
</List>
</Description>
<Actions>
<Currency>$50</Currency>
<Text>per month</Text>
<Text>Minimum spend over 12 months</Text>
</Actions>
</Pricing>
<Pricing>
<Header>
<Title>Luxury Package</Title>
<Summary>For those getting started</Summary>
</Header>
<Description>
<List>
<Feature>Feature #1</Feature>
<Feature>Feature #2</Feature>
<Feature>Feature #3</Feature>
<Feature>Feature #4</Feature>
</List>
</Description>
<Actions>
<Currency>$100</Currency>
<Text>per month</Text>
<Text>Minimum spend over 12 months</Text>
</Actions>
</Pricing>
</PricingPlanContainer>
2021-03-03 09:26:17 -08:00
<PricingPlanContainer>
2021-03-01 09:23:13 -08:00
<Button>Purchase</Button>
2021-03-03 09:26:17 -08:00
</PricingPlanContainer>
2021-03-01 09:23:13 -08:00
<Footer />
2020-11-17 06:21:06 -08:00
2020-11-16 08:48:20 -08:00
</div>
)
}
}
export default PricingPlan;