Skip to content

Commit

Permalink
Added Background'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsakshi011 committed Sep 16, 2024
2 parents 5b3a69d + 7331b7d commit 829035e
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 17 deletions.
43 changes: 34 additions & 9 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ import Multimedia from './components/Multimedia';
import Prime from './components/Prime';
import Landing from './components/Landing';
import Issue from './components/Issue';
import NavBar from './components/NavBar';
import Interactive from './components/Interactive';
import About from './components/About';
import Layout from './components/Layout';

import styled from 'styled-components';
import background from './images/background.png';
import lights from './images/lights.png';

function App() {
const [ data, setData ] = useState(null);
Expand All @@ -30,22 +33,44 @@ function App() {



const GradientBackground = styled.div`
position: relative;
width: 100%;
height: auto;
background: #4C6953;
z-index: -1;
`

const Background = styled.div`
position: relative;
width: 100%;
height: 8295.32px; /* Change to auto or fit-content if you build cards to expand down */
background:
url(${background}), /* top layer background */
url(${lights}); /* bottom layer background */
background-repeat: no-repeat;
`;
return data && (
<div className="App">
<Header/>
{/*<NavBar/>*/}
<Landing landing={data.landing}/>
<Layout>
<Issue/>
<EditorLetter editor_letter={data.editor_letter}/>
<Interactive interactive={data.interactive}/>
<div><News articles={data.news}/></div>
<div><Sports articles={data.sports}/></div>
<div><Arts articles={data.arts}/></div>
<div><Opinion articles={data.opinion}/></div>
<div><Quad articles={data.quad}/></div>
<div><Multimedia articles={data.multimedia}/></div>
<div><Prime articles={data.prime}/></div>
<GradientBackground>
<Background>
<div><News articles={data.news}/></div>
<div><Sports articles={data.sports}/></div>
<div><Arts articles={data.arts}/></div>
<div><Opinion articles={data.opinion}/></div>
<div><Quad articles={data.quad}/></div>
<div><Multimedia articles={data.multimedia}/></div>
<div><Prime articles={data.prime}/></div>
</Background>
</GradientBackground>
<div><About about={data.about}/></div>
</Layout>
<Footer/>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Arts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components';
import ArticleCard from './ArticleCard.js';

const Container = styled.div`
background: #4C6953;
background: transparent;
padding-top: 8em;
`

Expand Down
2 changes: 1 addition & 1 deletion src/components/Multimedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components';
import ArticleCard from './ArticleCard.js';

const Container = styled.div`
background: #4C6953;
background: transparent;
padding-top: 8em;
`

Expand Down
10 changes: 8 additions & 2 deletions src/components/News.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { mediaQueries } from '../shared/config';


const Container = styled.div`
background: #4C6953;
background: transparent;
padding-top: 8em;
`

Expand All @@ -30,8 +30,14 @@ const Title = styled.div`
line-height: 1.2;
text-align: center;
color: #F6E4E1;
border: 15px solid #4C6953;
margin-bottom: 0.4em;
text-shadow:
0px 0px 10px black, /* Base shadow for slight outline effect */
0px 0px 20px red, /* Expand shadow to create a thicker outline */
0px 0px 30px blue, /* Increase the blur for a more pronounced outline */
0px 0px 40px green, /* Further thickening the outline */
0px 0px 50px #4C6953;
`;

const Center = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Opinion.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components';
import ArticleCard from './ArticleCard.js';

const Container = styled.div`
background: #4C6953;
background: transparent;
padding-top: 8em;
`

Expand Down
2 changes: 1 addition & 1 deletion src/components/Prime.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components';
import ArticleCard from './ArticleCard.js';

const Container = styled.div`
background: #4C6953;
background: transparent;
padding-top: 8em;
`

Expand Down
2 changes: 1 addition & 1 deletion src/components/Quad.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components';
import ArticleCard from './ArticleCard.js';

const Container = styled.div`
background: #4C6953;
background: transparent;
padding-top: 8em;
`

Expand Down
2 changes: 1 addition & 1 deletion src/components/Sports.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from 'styled-components';
import ArticleCard from './ArticleCard.js';

const Container = styled.div`
background: #4C6953;
background: transparent;
padding-top: 8em;
`

Expand Down
Binary file added src/images/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/lights.png
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 829035e

Please sign in to comment.