From 8f187ad775a7c5f18f47b4bc60a7ef3ca41d46ba Mon Sep 17 00:00:00 2001 From: Danny Skubak Date: Wed, 20 Nov 2019 16:44:45 -0500 Subject: [PATCH] add explainer to proposals (#76) --- .../client/components/Proposals/index.tsx | 100 +++++++++++------- .../client/components/Proposals/style.less | 53 +++++++++- 2 files changed, 112 insertions(+), 41 deletions(-) diff --git a/frontend/client/components/Proposals/index.tsx b/frontend/client/components/Proposals/index.tsx index e8e66938..5d2c9abb 100644 --- a/frontend/client/components/Proposals/index.tsx +++ b/frontend/client/components/Proposals/index.tsx @@ -8,6 +8,7 @@ import { Input, Divider, Drawer, Icon, Button } from 'antd'; import ProposalResults from './Results'; import ProposalFilters from './Filters'; import { PROPOSAL_SORT } from 'api/constants'; +import ZCFLogo from 'static/images/zcf.svg'; import './style.less'; interface StateProps { @@ -60,47 +61,66 @@ class Proposals extends React.Component { ); return (
- {isFiltersDrawered ? ( - - {filtersComponent} - - - ) : ( -
{filtersComponent}
- )} - -
-
- - +
+
+ +
+
+

Zcash Foundation Proposals

+

+ The Zcash Foundation accepts proposals from community members to improve the + Zcash ecosystem. Proposals are either accepted with or without funding, + should they be approved by the Zcash Foundation. +

+
+
+ +
+ {isFiltersDrawered ? ( + + {filtersComponent} + + + ) : ( +
{filtersComponent}
+ )} + +
+
+ + +
+ +
- -
); diff --git a/frontend/client/components/Proposals/style.less b/frontend/client/components/Proposals/style.less index fb17174d..9cae2952 100644 --- a/frontend/client/components/Proposals/style.less +++ b/frontend/client/components/Proposals/style.less @@ -2,7 +2,58 @@ .Proposals { display: flex; - flex-direction: row; + flex-direction: column; + + &-content { + display: flex; + flex-direction: row; + } + + &-about { + display: flex; + align-content: center; + + &-logo { + flex-shrink: 0; + width: 140px; + padding-right: 1.5rem; + + margin-left: 3.5rem; + margin-right: 4.5rem; + + @media (max-width: 900px) { + margin-left: 3.5rem; + margin-right: 5.5rem; + } + + @media @small-query { + margin-left: 1rem; + margin-right: 1.5rem; + } + + svg { + width: 100%; + height: auto; + } + } + + &-text { + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + + &-title { + font-size: 1.4rem; + font-weight: 600; + margin-bottom: 0.5rem; + } + + &-desc { + font-size: 1rem; + } + } + } &-filters { width: 220px;