Skip to content

Commit 44e8ca5

Browse files
mattwr18joaopapereira
authored andcommitted
landing page (AgileVentures#196)
* Restyling the homepage * Get background image working, remove footer
1 parent 8a85718 commit 44e8ca5

File tree

13 files changed

+110
-142
lines changed

13 files changed

+110
-142
lines changed

src/assets/Footer.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.footer {
22
width: 100%;
3-
margin-top: 3rem;
43
background-color: #2c3e50;
54
}
65

src/assets/Homepage.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.landing-page-background {
2+
margin: 0px 0px -15px 0px;
3+
padding: 0;
4+
background-color: rgba(238, 238, 238, 0.4) !important;
5+
background: url("../images/landing-page-background.png");
6+
background-blend-mode: color;
7+
background-size: cover;
8+
background-position: center;
9+
}

src/assets/HomepageModal.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#landing-page-cards {
2+
display: flex;
3+
flex: 0 0 auto;
4+
background: white;
5+
text-align: center;
6+
width: 100%;
7+
margin-bottom: 35px;
8+
margin-top: 35px;
9+
border-radius: 5px;
10+
box-shadow: 0 10px 35px rgba(50,50,93,.1),0 2px 15px rgba(0,0,0,.07);
11+
}
12+
13+
.card-pic-wrap {
14+
border-radius: 5px 0 0 5px;
15+
flex: 0 0 auto;
16+
position: relative;
17+
img {
18+
padding: 25px;
19+
}
20+
}
21+
22+
.card-content {
23+
padding: 3em 4em 2em;
24+
}
25+
26+
.card-content p {
27+
font-size: 1.3em;
28+
}

src/components/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import UserProfile from '../containers/UserProfile'
44
import { Route, Switch } from 'react-router-dom'
55
import ProjectsList from '../containers/ProjectsList'
66
import ProjectInfo from '../containers/ProjectInfo'
7-
import Homepage from '../components/homepage/Homepage'
7+
import Homepage from '../components/Homepage'
88
import Footer from '../components/Footer'
99
import Navbar from './navbar/Navbar'
1010
import About from '../containers/About'

src/components/Homepage.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import React, { Component } from 'react'
2+
import { Grid, Container } from 'semantic-ui-react'
3+
import Modal from './HomepageModal'
4+
import modalContent from '../helpers/modals'
5+
6+
import '../assets/Homepage.css'
7+
8+
export class Homepage extends Component {
9+
modals = modalContent.map(item => <Modal key={item.reactId} content={item} />);
10+
render () {
11+
return (
12+
<div className='landing-page-background'>
13+
<Container>
14+
<Grid columns={2} stackable>
15+
<Grid.Column width={12}>
16+
{this.modals[0]}
17+
</Grid.Column>
18+
<Grid.Column width={12} floated='right'>
19+
{this.modals[1]}
20+
</Grid.Column>
21+
<Grid.Column width={12}>
22+
{this.modals[2]}
23+
</Grid.Column>
24+
<Grid.Column width={12} floated='right'>
25+
{this.modals[3]}
26+
</Grid.Column>
27+
<Grid.Column width={12}>
28+
{this.modals[4]}
29+
</Grid.Column>
30+
</Grid>
31+
</Container>
32+
</div>
33+
)
34+
}
35+
}
36+
37+
export default Homepage

src/components/HomepageModal.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import React from 'react'
2+
import { Container, Grid, Header } from 'semantic-ui-react'
3+
import '../assets/HomepageModal.css'
4+
5+
export default ({ content }) => (
6+
<Container>
7+
<Grid columns={3} id='landing-page-cards' stackable>
8+
<Grid.Row>
9+
<Grid.Column width={6} className='card-pic-wrap'>
10+
<img src={content.image} alt={content.imageAltText} />
11+
</Grid.Column>
12+
<Grid.Column width={2} />
13+
<Grid.Column width={6} className='card-content'>
14+
<Header as='h2'>{content.title}</Header>
15+
<p>
16+
{content.modalText}
17+
</p>
18+
</Grid.Column>
19+
</Grid.Row>
20+
</Grid>
21+
</Container>
22+
)

src/components/homepage/Homepage.css

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/homepage/Homepage.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/components/homepage/HomepageModal.js

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import codingWithCat from '../../images/coding-with-cat.svg'
2-
import realprojects from '../../images/real-projects.svg'
3-
import runners from '../../images/runners.svg'
4-
import jobs from '../../images/jobs.svg'
5-
import scrum from '../../images/scrum.svg'
1+
import codingWithCat from '../images/coding-with-cat.svg'
2+
import realprojects from '../images/real-projects.svg'
3+
import runners from '../images/runners.svg'
4+
import jobs from '../images/jobs.svg'
5+
import scrum from '../images/scrum.svg'
66

77
const modals = [
88
{
9-
buttonText: 'You are here!',
9+
title: 'Are you ...',
1010
xsOffset: 1,
1111
height: '150px',
1212
reactId: 'here',
@@ -16,7 +16,7 @@ const modals = [
1616
modalText: 'Tired of toy projects, tutorials and online courses?'
1717
},
1818
{
19-
buttonText: 'Scrums',
19+
title: 'Scrums',
2020
xsOffset: 10,
2121
height: '250px',
2222
reactId: 'scrums',
@@ -27,7 +27,7 @@ const modals = [
2727
modalText: 'Meet others and plan your work in online hangouts.'
2828
},
2929
{
30-
buttonText: 'Real Projects',
30+
title: 'Real Projects',
3131
xsOffset: 4,
3232
height: '250px',
3333
reactId: 'projects',
@@ -37,7 +37,7 @@ const modals = [
3737
modalText: 'Satisfy real charity clients around the world.'
3838
},
3939
{
40-
buttonText: 'Sprints',
40+
title: 'Sprints',
4141
xsOffset: 6,
4242
height: '600px',
4343
reactId: 'sprints',
@@ -47,7 +47,7 @@ const modals = [
4747
modalText: 'Commit to a week long sprint to accelerate your learning.'
4848
},
4949
{
50-
buttonText: 'Jobs',
50+
title: 'Jobs',
5151
xsOffset: 8,
5252
height: '920px',
5353
reactId: 'jobs',

0 commit comments

Comments
 (0)