Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated spacing and added hand tone for votesign #11

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 68 additions & 48 deletions src/components/Background.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import styled from "styled-components";
import FlagRight from "../images/FlagRight.svg";
import FlagLeft from "../images/FlagRight.svg";
import FlagLeft from "../images/FlagLeft.svg";
import VoteSignRight from "../images/VoteSignRight.svg";
import VoteSignLeft from "../images/VoteSignLeft.svg";
import VoteSignLeft1 from "../images/VoteSignLeft1.svg";
import VoteSignLeft2 from "../images/VoteSignLeft2.svg";
import FlagHighLow from "../images/FlagHighLow.svg";
import FlagLowHigh from "../images/FlagLowHigh.svg";

Expand All @@ -22,10 +23,11 @@ const LeftFlag = styled.div`
left: 0;
width: 21vw;
height: 100%;
background-image: url(${FlagLeft});
background-repeat: repeat-y;
background-size: 100% 150em;
background-position: left 0;
background-image: url(${FlagLeft}), url(${FlagLeft}); /* Two instances */
background-repeat: no-repeat, no-repeat;
background-size: 100% 55vh, 100% 55vh; /* Adjusts each flag's size */
background-position: left 10vh, left 700vh; /* Creates spacing for zig-zag pattern */
z-index: 20;
`;

// Right Flag
Expand All @@ -35,104 +37,122 @@ const RightFlag = styled.div`
right: 0;
width: 21vw;
height: 100%;
background-image: url(${FlagRight});
background-repeat: repeat-y;
background-size: 100% 150em;
background-position: right 10vh;
background-image: url(${FlagRight}), url(${FlagRight}); /* Two instances */
background-repeat: no-repeat, no-repeat;
background-size: 100% 55vh, 100% 55vh; /* Adjusts each flag's size */
background-position: right 50vh, right 850vh; /* Creates spacing for zig-zag pattern */
transform: scaleX(-1);
z-index: 20;
`;

// Left Vote Sign
const LeftVoteSign = styled.div`
const LeftVoteSign1 = styled.div`
position: absolute;
top: 0;
top: 400vh; /* Adjusted to provide spacing and ensure visibility */
left: 0;
width: 20vw;
height: 100%;
background-image: url(${VoteSignLeft});
width: 20vw;
height: auto;
min-height: 160vh;
background-image: url(${VoteSignLeft1});
background-repeat: repeat-y;
background-size: 100% 160em;
background-position: left 100em;
z-index: 3; /* Set to 3 to be on top of everything */
background-size: 100% 160vh; /* Scales to maintain spacing */
background-position: left 10vh;
z-index: 20; /* Above background flags and below article cards */
`;

const LeftVoteSign2 = styled.div`
position: absolute;
top: 20vh; /* Adjusted to provide spacing and ensure visibility */
left: -20vh;
width: 30vw;
height: auto;
min-height: 160vh;
background-image: url(${VoteSignLeft2});
background-repeat: repeat-y;
background-size: 100% 160vh; /* Scales to maintain spacing */
background-position: left 10vh;
z-index: 20; /* Above background flags and below article cards */
`;

// Right Vote Sign
const RightVoteSign = styled.div`
position: absolute;
top: 0;
top: 150vh;
right: 0;
width: 20vw;
height: 100%;
height: auto;
min-height: 160vh;
background-image: url(${VoteSignRight});
background-repeat: repeat-y;
background-size: 100% 150em;
background-position: right 200em;
background-size: 100% 160vh;
background-position: right 20vh;
z-index: 20;
`;

// Horizontal Flag Strings
// Horizontal Flag Strings (Background layer)
const HighLowFlag1 = styled.div`
position: absolute;
top: 100em; /* Adjust based on desired layout placement */
top: 200vh;
left: 0;
width: 100%;
height: 150vh; /* Adjust to control flag height */
height: 150vh;
background-image: url(${FlagHighLow});
background-repeat: repeat-y;
background-size: cover;
background-position: center;
z-index: 0; /* Set to 1 to be above the background */
background-size: cover;
background-position: center;
z-index: 0;
`;

const HighLowFlag2 = styled.div`
position: absolute;
bottom: -20em; /* Adjust based on desired layout placement */
bottom: -20vh;
left: 0;
width: 100%;
height: 150vh; /* Adjust to control flag height */
height: 150vh;
background-image: url(${FlagHighLow});
background-repeat: repeat-y;
background-size: cover;
background-position: center;
z-index: 0; /* Set to 1 to be above the background */

background-size: cover;
background-position: center;
z-index: 0;
`;

const LowHighFlag1 = styled.div`
position: absolute;
top: -5%;
top: -5vh;
left: 0;
width: 100%;
height: 150vh; /* Adjust to control flag height */
height: calc(200vh + 300px);
background-image: url(${FlagLowHigh});
background-repeat: repeat-y;
background-size: cover;
background-position: center;
z-index: 0; /* Set to 0 to be at the back */
background-size: cover;
background-position: center;
z-index: 0;
`;

const LowHighFlag2 = styled.div`
position: absolute;
top: 340em; /* Adjust based on desired layout placement */
top: 400vh;
left: 0;
width: 100%;
height: 150vh; /* Adjust to control flag height */
height: calc(200vh + 300px);
background-image: url(${FlagLowHigh});
background-repeat: repeat-y;
background-size: cover;
background-position: center;
z-index: 0; /* Set to 1 to be above the background */
background-size: cover;
background-position: center;
z-index: 0;
`;

const Background = () => {
return (
<FlagsContainer>
<LeftFlag />
<RightFlag />
<HighLowFlag1 />
<HighLowFlag2 />
<HighLowFlag1 />
<HighLowFlag2 />
<LowHighFlag1 />
<LowHighFlag2 />
<LeftVoteSign />
<LowHighFlag2 />
<LeftVoteSign1 />
<LeftVoteSign2 />
<RightVoteSign />
</FlagsContainer>
);
Expand Down
90 changes: 90 additions & 0 deletions src/images/VoteSignLeft1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading