Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
fix: fixed responsiveness on smaller and biggers screens
Browse files Browse the repository at this point in the history
  • Loading branch information
vycdev committed Apr 9, 2020
1 parent 2a8e16d commit a1ac2e1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
1 change: 0 additions & 1 deletion packages/web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
rel="shortcut icon"
href="https://i.ibb.co/vzWDHft/favicon-ico.png"
/>
<meta name="viewport" content="width=device-width initial-scale=1.0" />
<meta charset="utf-8" />
</head>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ export const Pannel1 = () => {
fill="none"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1920 303"
style={{ maxHeight: "320px" }}
width="100%"
preserveAspectRatio="none"
>
<path
d="M1921.5 313.056H-1v-153c50.808 20.339 585.5-12 998-114.5s924.5 0 924.5 0v267.5z"
Expand Down
22 changes: 12 additions & 10 deletions packages/web/src/components/frontPage/components/pannel1/style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,28 @@ import styled from "@emotion/styled";
export const StyledPannel1 = styled.div`
position: relative;
background-color: #198cf6;
height: 100vh;
min-height: 930px;
display: flex;
flex-wrap: wrap;
flex-direction: row;
align-items: center;
min-height: 900px;
padding-top: 10px;
align-content: center;
& > * {
flex: 1 1 450px;
flex: 1 0 450px;
}
`;
//// CROWN SVG 1
export const SvgCrown = styled.div`
width: 480px;
min-width: 480px;
`;
export const FixCrown = styled.div`
position: relative;
flex: 1 1 500px;
flex: 1 0 500px;
min-height: 500px;
`;

export const VerticallyCenteredDiv = styled.div`
margin: 0;
position: absolute;
top: 35%;
left: 50%;
Expand All @@ -33,18 +35,18 @@ export const VerticallyCenteredDiv = styled.div`
//// TEXT ON THE RIGHT 1
export const FixText = styled.div`
position: relative;
flex: 2 2 750px;
margin-top: -100px;
flex: 2 0 750px;
min-height: 600px;
`;

export const TitleTextButton = styled.div`
font-family: "Verdana";
color: white;
font-weight: bold;
text-align: center;
height: auto;
`;
export const VerticallyCenteredText = styled.div`
margin: 0;
position: absolute;
top: 40%;
left: 50%;
Expand All @@ -55,7 +57,7 @@ export const VerticallyCenteredText = styled.div`

export const Title = styled.div`
font-size: 110px;
width: auto;
text-align: center;
`;

export const RandomText = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import styled from "@emotion/styled";

export const StyledPannel2 = styled.div`
background: white;
height: 80vh;
height: 700px;
display: flex;
position: relative;
align-content: center;
align-items: center;
flex-wrap: wrap;
flex-direction: row;
& > * {
flex: 1 1 450px;
flex: 1 0 450px;
}
`;
export const VerticallyCenteredDiv = styled.div`
Expand All @@ -22,9 +23,8 @@ export const VerticallyCenteredDiv = styled.div`
`;

export const Text = styled.div`
margin: 0;
position: absolute;
top: 40%;
top: 55%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
Expand All @@ -39,10 +39,11 @@ export const TextStyling = styled.div`
`;
export const FixText = styled.div`
position: relative;
flex: 2 2 750px;
flex: 2 0 850px;
min-height: 500px;
`;
export const FixChart = styled.div`
position: relative;
flex: 1 1 500px;
height: 500px;
flex: 1 0 600px;
min-height: 600px;
`;

0 comments on commit a1ac2e1

Please sign in to comment.