Skip to content

Commit

Permalink
Refactored container of components
Browse files Browse the repository at this point in the history
  • Loading branch information
3milyfz committed Oct 31, 2023
1 parent 13cf9da commit 0ebdb48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
14 changes: 2 additions & 12 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,12 @@ const GlobalStyle = createGlobalStyle`
font-family: 'League Spartan', sans-serif;
}`

const Container = styled.div`
background-image: linear-gradient(to bottom right, #0a8e3d, #9fdb3f);
background-size: contain;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
`;

function App() {
return (
<Container>
<div>
<GlobalStyle />
<EnterCode />
</Container>
</div>
);
}

Expand Down
4 changes: 3 additions & 1 deletion src/components/EndSession.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import styled from 'styled-components'

const Container = styled.div`
height: 100vh;
background-image: linear-gradient(to bottom right, #0a8e3d, #9fdb3f);
background-size: contain;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
`;

const Logo = styled.img`
Expand Down
4 changes: 3 additions & 1 deletion src/components/EnterCode.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import styled from "styled-components";

const Container = styled.div`
height: 100vh;
background-image: linear-gradient(to bottom right, #0a8e3d, #9fdb3f);
background-size: contain;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
@media (max-width: 768px) {
/* Add styles for smaller screens here */
Expand Down

0 comments on commit 0ebdb48

Please sign in to comment.