Skip to content

Commit

Permalink
static insights folder removed
Browse files Browse the repository at this point in the history
  • Loading branch information
pablopareja committed Nov 28, 2019
1 parent 5a59f2e commit fb840f6
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 2,314 deletions.
11 changes: 1 addition & 10 deletions css/components/app/common/card_static.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
flex-direction: column;
justify-content: space-between;
width: 100%;
height: 100%;
padding: $margin-size-small;
border-radius: 4px;
background-repeat: no-repeat;
Expand All @@ -30,16 +31,6 @@
margin-bottom: 15px;
}

// .card-title,
// .title {
// margin: 0;
// margin-bottom: 15px;

// a {
// text-decoration: none;
// }
// }

.footer {
display: flex;
justify-content: space-between;
Expand Down
7 changes: 3 additions & 4 deletions layout/get-involved-detail/get-involved-detail-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,15 @@ import AppsPostContent from 'components/app/static-pages/get-involved/post-conte
class GetInvolvedDetail extends PureComponent {
static propTypes = {
routes: PropTypes.object.isRequired,
data: PropTypes.object.isRequired,
insights: PropTypes.array.isRequired
breadCrumb: PropTypes.array.isRequired,
getInvolvedDetail: PropTypes.object.isRequired
};

getPostContent(id, props = {}) {
const { getInvolvedDetail } = this.props;
const pageNotFound = () => null;
const pages = {
'suggest-a-story': () => (
<SuggestStoryPost {...props} insights={getInvolvedDetail.insights} />
<SuggestStoryPost {...props} />
),
'contribute-data': () => <ContributeDataPostContent {...props} />,
'join-the-community': () => <JoinCommunityPostContent {...props} />,
Expand Down
33 changes: 1 addition & 32 deletions layout/get-involved-detail/get-involved-detail-default-state.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,5 @@
export default {
staticData: {},
loading: false,
error: null,
// Once insights fetch working need to add to component actions
insights: [
{
tag: 'Spotlight',
date: 'Spotlight',
title: 'Welcome to Resource Watch',
slug: 'welcome-to-resource-watch',
source: { name: 'Resource Watch', path: 'http://www.resourcewatch.org/', img: '/static/images/logo-no-text.svg' },
background: 'url(/static/tempImages/backgrounds/rw_welcome.jpg) top',
body: ''
},
{
tag: 'April 11, 2018',
date: 'April 11, 2018',
title: 'Experience a bleached coral reef in 360°',
slug: 'experience-a-bleached-coral-reef-in-360',
link: '/splash/coral',
source: { name: 'Resource Watch', path: 'http://www.resourcewatch.org/', img: '/static/images/logo-no-text.svg' },
background: 'url(/static/tempImages/backgrounds/BLEACHED-American-Samoa-2-February-2015.jpg)',
body: ''
},
{
tag: 'April 11, 2018',
date: 'April 11, 2018',
title: "We mapped the world's power plants. Here's what we learned.",
slug: 'we-mapped-the-worlds-power-plants-heres-what-we-learned',
source: { name: 'Resource Watch', path: 'http://www.resourcewatch.org/', img: '/static/images/logo-no-text.svg' },
background: 'url(/static/tempImages/backgrounds/rw_powerwatch.jpg)',
body: ''
}
]
error: null
};
4 changes: 1 addition & 3 deletions layout/static-content/static-content-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ const StaticContentComponent = ({ content = '' }) => {
);
};

StaticContentComponent.propTypes = {
content: PropTypes.string
};
StaticContentComponent.propTypes = { content: PropTypes.string.isRequired };

export default StaticContentComponent;
1,186 changes: 0 additions & 1,186 deletions public/static/insights/interactive-edi.html

This file was deleted.

416 changes: 0 additions & 416 deletions public/static/insights/interactive-map.html

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
102 changes: 0 additions & 102 deletions public/static/insights/puget-sound.html

This file was deleted.

Loading

0 comments on commit fb840f6

Please sign in to comment.