Skip to content

Commit

Permalink
Merge branch 'kirsten/landing'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsakshi011 committed Nov 3, 2024
2 parents 4d9c59a + 55c2011 commit 5d655f2
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 2 deletions.
5 changes: 4 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">


<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Moul&display=swap" rel="stylesheet">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1S5BF4RKRZ"></script>
<script>
Expand Down
60 changes: 59 additions & 1 deletion src/components/Landing.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import React from "react";
import styled from "styled-components";
import StarIcon from "../images/Star.svg";

const Container = styled.div`
width: 100%;
height: fit-content;
position: relative;
margin: auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #d5e7f2;
Expand All @@ -15,17 +17,73 @@ const Container = styled.div`
z-index: 1;
`;

const TitleContainer = styled.div`
width: 100%;
justify-content: center;
background: #265ca9;
background-position: center;
display: flex;
`;

const Star = styled.div`
background-image: url(${StarIcon});
background-size: contain;
background-repeat: no-repeat;
background-position: center;
z-index: 2;
width: 3em;
margin-bottom: 0.75em;
`;

const Title = styled.div`
width: auto;
font-family: "Moul";
font-size: clamp(40px, 5vw, 75px);
font-weight: 400;
line-height: normal;
text-align: center;
color: #FBFBFB;
margin: 0 1.25em;
`

const WhiteStripe = styled.div`
width: 100%;
height: 1em;
margin: 0 auto;
background: #ffffff;
position: relative;
z-index: 1;
`;

const RedStripe = styled.div`
width: 100%;
height: 1em;
margin: 0 auto;
background: #cd2027;
position: relative;
z-index: 1;
`;


const Landing = () => {

return (
<>
<Container>
<TitleContainer>
<Star />
<Title>POLLING AVERAGES</Title>
<Star />
</TitleContainer>
<WhiteStripe />
<RedStripe />
<iframe src="https://public.flourish.studio/visualisation/20011174/embed"
width="100%"
height="600px"
frameborder="0"
scrolling="no"
allowfullscreen>
allowfullscreen
title="polling averages">
</iframe>
</Container>
</>
Expand Down
3 changes: 3 additions & 0 deletions src/images/Star.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5d655f2

Please sign in to comment.