Skip to content

Commit

Permalink
feat: 🎸 add form page with recap header. needs form component (#133)
Browse files Browse the repository at this point in the history
* feat: 🎸 add form page with recap header. needs form component

* feat(form-page.js): adds conditinal render to form-page and markdown/path for get-resilience

closes #116 and closes #117

* Update _featureList.scss
  • Loading branch information
jessdwitch authored Aug 27, 2020
1 parent d212351 commit d1c3b3b
Show file tree
Hide file tree
Showing 7 changed files with 383 additions and 1 deletion.
212 changes: 212 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"version": "1.1.3",
"author": "Mutual Aid",
"dependencies": {
"@material-ui/core": "^4.11.0",
"gatsby": "^2.13.31",
"gatsby-image": "^2.0.23",
"gatsby-plugin-netlify-identity-widget": "1.1.1",
"gatsby-plugin-netlify": "2.2.1",
"gatsby-plugin-netlify-cms": "4.2.2",
"gatsby-plugin-netlify-identity-widget": "1.1.1",
"gatsby-plugin-purgecss": "^4.0.0",
"gatsby-plugin-react-helmet": "^3.0.4",
"gatsby-plugin-sass": "^2.0.7",
Expand Down
19 changes: 19 additions & 0 deletions src/components/FeatureList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';
import PropTypes from 'prop-types';


const FeatureList = ({ items }) => (
<div className="featureList_container">
<ul>
{items.map((item, i) => (
<li className="featureList_item" key={i}>{item}</li>
))}
</ul>
</div>
);

FeatureList.propTypes = {
items: PropTypes.arrayOf(PropTypes.string).isRequired,
};

export default FeatureList;
29 changes: 29 additions & 0 deletions src/components/scss/_featureList.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
.featureList_container {
border: 1px solid $color-grey;
border-radius: 4px;
padding: 1.5em;
height: 100%;

ul {
display: flex;
flex-direction: column;
justify-content: space-around;
height: 100%;
width: 90%;
list-style: none;
margin: auto;
padding: 0px;

li::before {
content: "\2713";
color: $bg-primary;
margin: 0 0.5em;
}
}
}

.featureList_item {
font-weight: 600;
text-transform: uppercase;
height: 40px;
}
1 change: 1 addition & 0 deletions src/components/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import "./card";
@import "./contact";
@import "./custom_mixins";
@import "./featureList";
@import "./footer";
@import "./grid";
@import "./header";
Expand Down
13 changes: 13 additions & 0 deletions src/pages/get-resilience/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
templateKey: form-page
path: /get-resilience
title: Easy to use, adaptable, open-source system made for mutual aid groups
features:
- REQUESTS MANAGEMENT
- ONLINE PAYMENT
- SCHEDULING
- DELIVERY ROUTING
---
We want to be able to help as many mutual aid groups as we can and we want to hear from you what your needs are and how our app can help!

[How our partners use it](/partners)
Loading

0 comments on commit d1c3b3b

Please # to comment.