Skip to content

Commit

Permalink
Added footer and shadow drops
Browse files Browse the repository at this point in the history
  • Loading branch information
luaporto committed Oct 14, 2021
1 parent be67af4 commit 283f963
Show file tree
Hide file tree
Showing 3 changed files with 289 additions and 250 deletions.
56 changes: 31 additions & 25 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const ContainedButton = styled(Button)({
width: '188px',
height: '55px',
textTransform: 'none',
filter: 'drop-shadow(11px 14px 17px rgba(37, 56, 92, 0.2))',
});

const CardBox = styled(Box)({
Expand All @@ -29,12 +30,13 @@ const CardBox = styled(Box)({
justifyContent: 'center',
// padding: '78px',
width: '330px',
height: '311px',
height: '340px',

// zIndex: '30',

backgroundColor: '#F4C2C9',
borderRadius: '40px 40px 0px 0px',
filter: 'drop-shadow(11px 14px 17px rgba(37, 56, 92, 0.29))',
});

const ButtonTypography = styled(Typography)({
Expand All @@ -44,6 +46,7 @@ const ButtonTypography = styled(Typography)({
fontSize: '20px',
lineHeight: '27px',
letterSpacing: '0.025em',
filter: 'drop-shadow(11px 14px 17px rgba(37, 56, 92, 0.29))',
});

const SubtitleTypography = styled(Typography)({
Expand Down Expand Up @@ -112,6 +115,24 @@ const PriceListStack = styled(Stack)({
alignItems: 'center',
});

const FooterBottomWave = styled(Box)({
position: 'relative',
height: '150px',
width: '100%',
background: '#00ACC1',
});

const FooterTopWave = styled(Box)({
position: 'absolute',
borderRadius: '100%',
width: '100%',
height: '75px',
backgroundColor: '#fff',
right: '0px',
top: '-40px',
filter: 'drop-shadow(11px 14px 17px rgba(37, 56, 92, 0.15))',
});

const theme = createTheme({
palette: {
primary: {
Expand Down Expand Up @@ -167,41 +188,25 @@ function App() {
CardBox={CardBox}
/>
</Container>
<Box
sx={{
zIndex: 100,
fontStyle: 'normal',
fontSize: '20px',
letterSpacing: '0.025em',
position: 'sticky',
top: 0,
backgroundColor: '#00ACC1',
height: '90px',
transform: 'matrix(1, 0, 0, 1, 0, 0)',
}}
>

<FooterBottomWave>
<FooterTopWave />
<Stack
direction="row"
justifyContent="space-around"
alignItems="center"
sx={{
paddingTop: '10px',
height: '75px',
color: '#fff',
paddingTop: '40px',
}}
>
<Stack direction="row">
<img
style={{
width: 75,
height: 75,
}}
src={whiteIcon}
alt=""
/>
<img style={{ width: 75, height: 75 }} src={whiteIcon} alt="" />

<Typography
sx={{
zIndex: 2000,

fontSize: '36px',
fontFamily: 'Mada',
fontWeight: '400',
Expand All @@ -224,6 +229,7 @@ function App() {
<TextTypography
sx={{
marginTop: 'auto',
fontSize: '15px',

color: '#bdbdbd',
}}
Expand All @@ -243,7 +249,7 @@ function App() {
</IconButton>
</Stack>
</Stack>
</Box>
</FooterBottomWave>
</ThemeProvider>
</>
);
Expand Down
35 changes: 18 additions & 17 deletions src/Components/TopBar.js
Original file line number Diff line number Diff line change
@@ -1,49 +1,50 @@
import { Box, Button, Stack, Typography } from "@mui/material";
import { Box, Button, Stack, Typography } from '@mui/material';

import icon from "../assets/icon.png";
import icon from '../assets/icon.png';

const TopBar = ({ ContainedButton, ButtonTypography }) => {
return (
<>
<Box
sx={{
zIndex: 100,
fontStyle: "normal",
fontSize: "20px",
letterSpacing: "0.025em",
position: "sticky",
fontStyle: 'normal',
fontSize: '20px',
letterSpacing: '0.025em',
position: 'sticky',
top: 0,
backgroundColor: "#fff",
height: "90px",
backgroundColor: '#fff',
height: '90px',
filter: 'drop-shadow(11px 14px 17px rgba(37, 56, 92, 0.10))',
}}
>
<Stack
direction="row"
justifyContent="space-around"
alignItems="center"
sx={{
paddingTop: "10px",
height: "75px",
paddingTop: '10px',
height: '75px',
}}
>
<Stack direction="row">
<img
style={{
width: 75,
height: 75,
marginTop: "-15px",
marginTop: '-15px',
}}
src={icon}
alt=""
/>

<Typography
sx={{ fontSize: "36px", fontFamily: "Mada", fontWeight: "400" }}
sx={{ fontSize: '36px', fontFamily: 'Mada', fontWeight: '400' }}
>
Wha
</Typography>
<Typography
sx={{ fontSize: "36px", fontFamily: "Mada", fontWeight: "700" }}
sx={{ fontSize: '36px', fontFamily: 'Mada', fontWeight: '700' }}
>
ticket
</Typography>
Expand All @@ -53,10 +54,10 @@ const TopBar = ({ ContainedButton, ButtonTypography }) => {
<Button
href="https://app.whaticket.com/login"
sx={{
borderRadius: "10px",
width: "100px",
height: "55px",
textTransform: "none",
borderRadius: '10px',
width: '100px',
height: '55px',
textTransform: 'none',
}}
color="secondary"
>
Expand Down
Loading

0 comments on commit 283f963

Please sign in to comment.