-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop-landing-page' into 132-update-landing-page-feat…
…ures
- Loading branch information
Showing
5 changed files
with
300 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
<!-- | ||
@license | ||
Copyright (c) 2017 Foundation For an Innovative Future (InnovativeFuture.org) | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or any | ||
later version. | ||
Foundation For an Innovative Future reserves the right to release the | ||
covered work, in part or in whole, under a different open source | ||
license and/or with specific copyleft exclusions. Such a release | ||
would not invalidate the license for this project, although the | ||
project released with a modified license would not be considered | ||
part of this covered work or subject to the copyleft portions of this | ||
license even if the projects are identical. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
Please email contact@innovativeFuture.org for inquiries related to | ||
this license. | ||
--> | ||
|
||
<link rel="import" href="../../bower_components/polymer/polymer.html"> | ||
<link rel="import" href="../../bower_components/paper-card/paper-card.html"> | ||
<link rel="import" href="../../bower_components/iron-list/iron-list.html"> | ||
<link rel="import" href="./ctree-testimony.html"> | ||
|
||
|
||
<dom-module id="ctree-testimonials"> | ||
|
||
<template> | ||
<style> | ||
/* Feedback cards styles */ | ||
.feedback-container { | ||
width: 77%; | ||
text-align: center; | ||
justify-content: center; | ||
background-color: #FFFFFF; | ||
margin-top: 78px; | ||
margin-bottom: 88px; | ||
padding-top: 56px; | ||
padding-bottom: 34px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
-webkit-box-shadow: 3px 3px 4px 0px #696969; | ||
-moz-box-shadow: 3px 3px 4px 0px #696969; | ||
box-shadow: 3px 3px 4px 0px #696969; | ||
} | ||
.feedback-cards-header { | ||
font-size: 5.1vh; | ||
margin-bottom: 86px; | ||
font-weight: bold; | ||
} | ||
.feedback-cards { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-around; | ||
width: 81%; | ||
margin: 0 auto; | ||
} | ||
@media (max-width: 500px) { | ||
.feedback-container { | ||
margin-top: 34px; | ||
margin-bottom: 0px; | ||
padding-top: 0px; | ||
padding-bottom: 0px; | ||
background-color: #DBE8DE; | ||
box-shadow: none; | ||
width: 100%; | ||
} | ||
.feedback-cards-header { | ||
font-size: 5.65vh; | ||
margin-bottom: 78px; | ||
} | ||
.feedback-cards { | ||
width: 85%; | ||
} | ||
} | ||
</style> | ||
|
||
<div class="feedback-container"> | ||
<div class="feedback-cards-header">Feedback</div> | ||
<div class="feedback-cards"> | ||
<template is="dom-repeat" items="{{testimonies}}"> | ||
<ctree-testimonial image={{item.image}} | ||
handle={{item.handle}} | ||
quote={{item.quote}} | ||
ctree={{item.ctree}}> | ||
</ctree-testimonial> | ||
</template> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
class CTreeTestimonials extends Polymer.Element { | ||
static get is() { return 'ctree-testimonials' } | ||
static get properties() { | ||
return { | ||
ctreeKey: String, | ||
testimonies: { | ||
type: Array, | ||
value: [ | ||
{ | ||
id: "1", | ||
image: [[rootPath]] + "/images/avatar01.jpg", | ||
handle: "@ecojess", | ||
quote: "Collaboration Tree allowed us to evolve our beach cleanups through evolving the idea with our community!", | ||
ctree: "" | ||
}, | ||
{ | ||
id: "2", | ||
image: [[rootPath]] + "/images/avatar02.jpg", | ||
handle: "@RyanW", | ||
quote: "CTree is great since my voice can reach people working directly on causes I am interested and make a difference", | ||
ctree: "" | ||
}, | ||
{ | ||
id: "3", | ||
image: [[rootPath]] + "/images/avatar03.jpg", | ||
handle: "@hackforla", | ||
quote: "Collaboration Tree helped us connect to our volunteers which led to better turn out at our local hack-nights!", | ||
ctree: "" | ||
}, | ||
{ | ||
id: "4", | ||
image: [[rootPath]] + "/images/avatar04.jpg", | ||
handle: "@Nick", | ||
quote: "This is a test", | ||
ctree: "" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
customElements.define(CTreeTestimonials.is, CTreeTestimonials); | ||
</script> | ||
|
||
</dom-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<!-- | ||
@license | ||
Copyright (c) 2017 Foundation For an Innovative Future (InnovativeFuture.org) | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or any | ||
later version. | ||
Foundation For an Innovative Future reserves the right to release the | ||
covered work, in part or in whole, under a different open source | ||
license and/or with specific copyleft exclusions. Such a release | ||
would not invalidate the license for this project, although the | ||
project released with a modified license would not be considered | ||
part of this covered work or subject to the copyleft portions of this | ||
license even if the projects are identical. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
Please email contact@innovativeFuture.org for inquiries related to | ||
this license. | ||
--> | ||
|
||
<link rel="import" href="../../bower_components/polymer/polymer.html"> | ||
<link rel="import" href="../../bower_components/paper-card/paper-card.html"> | ||
<link rel="import" href="../../bower_components/paper-button/paper-button.html"> | ||
<link rel="import" href="../../bower_components/iron-image/iron-image.html"> | ||
|
||
<dom-module id="ctree-testimonial"> | ||
<template> | ||
<style> | ||
:host { | ||
width: 271px; /* must be a specific size for flex wrapping */ | ||
} | ||
.feedback-card { | ||
margin-left: 3%; | ||
margin-right: 3%; | ||
flex-basis: 0; | ||
flex-grow: 1; | ||
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.5); | ||
transition: 0.3s; | ||
margin-bottom: 90px; | ||
} | ||
.feedback-avatar { | ||
margin-top: -45px; | ||
border-radius: 50%; | ||
box-shadow: 0 2px 4px 0 rgba(0,0,0,0.5); | ||
width: 90px; | ||
height: 90px; | ||
} | ||
.feedback-card-content { | ||
width: 100%; | ||
text-align: center; | ||
justify-content: center; | ||
} | ||
.feedback-user { | ||
font-size: 1.15em; | ||
font-weight: 450; | ||
color: #000000; | ||
margin-top: 12px; | ||
margin-bottom: 12px; | ||
} | ||
.user-horizontial-line { | ||
width: 50%; | ||
} | ||
.feedback-user-content { | ||
font-size: 0.85em; | ||
font-weight: 500; | ||
color: #000000; | ||
min-height: 114px; | ||
padding-bottom: 2px; | ||
} | ||
.feedback-card-button-view-ctree { | ||
color: #FFFFFF; | ||
font-family: Roboto; | ||
font-size: 1.15em; | ||
font-weight: lighter; | ||
border-radius: 7px; | ||
background-color: #63A375; | ||
box-shadow: 2px 2px 3px 0 rgba(0,0,0,0.5); | ||
padding-top: 9px; | ||
padding-bottom: 7px; | ||
margin-bottom: 27px; | ||
width: 63%; | ||
} | ||
/* Mobile Styles */ | ||
@media (max-width: 500px) { | ||
.feedback-card { | ||
background-color: #FFFFFF; | ||
} | ||
.feedback-user { | ||
font-size: 1.6em; | ||
} | ||
.feedback-user-content { | ||
font-size: 1.15em; | ||
} | ||
.feedback-card-button-view-ctree { | ||
font-size: 1.54em; | ||
} | ||
} | ||
</style> | ||
<div class=feedback-card> | ||
<img src="[[image]]" alt="avatar" class="feedback-avatar"/> | ||
<div class="feedback-card-content"> | ||
<div class="feedback-user">{{handle}}</div> | ||
<hr class="user-horizontial-line" /> | ||
<div class="feedback-user-content"> | ||
<blockquote> | ||
<p> | ||
"{{quote}}" | ||
</p> | ||
</blockquote> | ||
</div> | ||
<div class="feedback-card-button-container"> | ||
<!-- TODO: add button click event to link back to ctree --> | ||
<button class="feedback-card-button-view-ctree">View CTree</button> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<script> | ||
class CTreeTestimonial extends Polymer.Element { | ||
static get is() { return 'ctree-testimonial' } | ||
static get properties() { | ||
return { | ||
image: String, | ||
handle: String, | ||
quote: String, | ||
ctree: String | ||
} | ||
} | ||
} | ||
customElements.define(CTreeTestimonial.is, CTreeTestimonial); | ||
</script> | ||
|
||
</dom-module> |