diff --git a/src/components/PricingPlan.js b/src/components/PricingPlan.js index e3d74fa..47f860e 100644 --- a/src/components/PricingPlan.js +++ b/src/components/PricingPlan.js @@ -1,7 +1,7 @@ import React, { useState,Component } from 'react'; import NavBar from './NavBar'; import Footer from './Footer'; -import styled from 'styled-components'; +import styled,{css} from 'styled-components'; const size = { mobileS: '320px', @@ -34,30 +34,11 @@ const PricingPlanContainer = styled.div` flex-direction: row; } + `; -const Pricing = styled.section` - 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 { - box-shadow: 0 0 15px rgba(0,0,0,0.4); - transform: scale(1.05); - cursor: pointer; - - - } -`; const Radio = styled.input` display:none; @@ -68,6 +49,34 @@ const Label = styled.label` `; +const Pricing = styled.section` + background: white; + 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 { + cursor: pointer; + box-shadow: 0 0 15px rgba(0,0,0,0.4); + transform: scale(1.05); + + + } + ${props => props.pricing_id == props.pricing_plan ? css` + box-shadow: 0 0 15px rgba(0,0,0,0.4); + transform: scale(1.05); + + + `:css``}; + + +`; + const Text = styled.p` font-size: 0.9em; text-align: center; @@ -191,7 +200,7 @@ const [pricing, setPricing] = useState(); {pricing} setPricing(event.target.value)}> - +