media query start

This commit is contained in:
Priyatham Sai Chand 2021-03-03 23:27:19 +05:30
parent 2a2a92beac
commit a70f9db8bc
2 changed files with 25 additions and 4 deletions

View File

@ -10,7 +10,6 @@ import Stepper from './components/Stepper';
import NavBar from "./components/NavBar"; import NavBar from "./components/NavBar";
import FillingDetails from "./components/FillingDetails"; import FillingDetails from "./components/FillingDetails";
import Error404 from './components/Error404'; import Error404 from './components/Error404';
export default function App() { export default function App() {
const [userData, setUserData ] = useState({ const [userData, setUserData ] = useState({
token: undefined, token: undefined,

View File

@ -2,7 +2,25 @@ import React, { Component } from 'react';
import NavBar from './NavBar'; import NavBar from './NavBar';
import Footer from './Footer'; import Footer from './Footer';
import styled from 'styled-components'; import styled from 'styled-components';
const size = {
mobileS: '320px',
mobileM: '375px',
mobileL: '425px',
tablet: '768px',
laptop: '1024px',
laptopL: '1440px',
desktop: '2560px'
}
export const Device = {
mobileS: `(min-width: ${size.mobileS})`,
mobileM: `(min-width: ${size.mobileM})`,
mobileL: `(min-width: ${size.mobileL})`,
tablet: `(min-width: ${size.tablet})`,
laptop: `(min-width: ${size.laptop})`,
laptopL: `(min-width: ${size.laptopL})`,
desktop: `(min-width: ${size.desktop})`,
desktopL: `(min-width: ${size.desktop})`
};
const WhiteContainer = styled.div` const WhiteContainer = styled.div`
background: white; background: white;
@ -13,7 +31,11 @@ const PricingPlanContainer = styled.div`
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 10px; padding: 10px;
flex-direction: row; flex-direction: column;
@media ${Device.laptop} {
flex-direction: row;
}
@ -31,7 +53,7 @@ const Pricing = styled.section`
color: #555555; color: #555555;
margin: 15px; margin: 15px;
&:hover &:active { &:hover {
box-shadow: 0 0 15px rgba(0,0,0,0.4); box-shadow: 0 0 15px rgba(0,0,0,0.4);
transform: scale(1.05); transform: scale(1.05);