Skip to content

Commit

Permalink
Ui updates + tried to setup another about link
Browse files Browse the repository at this point in the history
  • Loading branch information
marineb committed Jan 10, 2018
1 parent 3fc045b commit dffa301
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 49 deletions.
10 changes: 7 additions & 3 deletions src/js/components/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ const DashboardBox = ({ children, className }) =>
{children}
</div>

const DashboardHeader = ({ locale }) =>
const DashboardHeader = ({ locale, openAbout }) =>
<div className="dashboard-header">
<div className="dashboard-blurb">
<h2>On l&apos;a dit, on le fait</h2>
<p>
La transformation du pays est en marche ! Suivez l&apos;application du programme d&apos;Emmanuel Macron et <strong>votez en faveur des mesures qui vous tiennent à cœur</strong>.

</p>

<Link className="dashboard-header__link" to={`/${locale}/results`}>Découvrir ce qui me concerne</Link>
Expand Down Expand Up @@ -128,12 +129,15 @@ class Dashboard extends Component {
}

render() {
let { allMeasures, popular, status, locale } = this.props;
let { allMeasures, popular, status, locale, openAbout } = this.props;
let measures = compact(popular.map(({ itemId }) => allMeasures.measures[itemId]));

return (
<div className="dashboard">
<DashboardHeader locale={locale} />
<DashboardHeader
locale={locale}
openAbout={openAbout}
/>

<DashboardBody>
<DashboardTimer total={this.state.totalDaysInTerm} current={this.state.daysRemainingInTerm} />
Expand Down
2 changes: 1 addition & 1 deletion src/scss/about-modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}

.about-modal__body > p {
font-size: 16px;
font-size: 15px;
font-family: $font-roboto;
color: $darkergray;
}
Expand Down
60 changes: 15 additions & 45 deletions src/scss/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,58 +10,45 @@
}

.header {
background-color: $purple;
font-size: 20px;
padding: 15px;
display: flex;
justify-content: space-between;
color: white;
position: sticky;
top: 0;
z-index: $zIndex--header;

border-bottom: 1px solid transparent;
border-bottom: 1px solid $blueishgray;
background-color: white;
color: black;

@include mq($medium-and-up) {
font-size: 28px;
}

.Page__dashboard > & {
background-color: white;
color: black;
border-bottom-color: $blueishgray;
}
}

.header-logo {
font-family: $font-gillsans;
font-weight: bold;
font-style: oblique;
color: white;
color: black;
text-decoration: none;
border: 0;

&:hover {
border: 0;
opacity: 0.8;
}

.Page__dashboard & {
color: black;
}
}

.header-tag {
font-weight: 100;
font-size: 18px;
color: $darkergray;

@include mq($medium-and-up) {
font-size: 28px;
}

.Page__dashboard & {
color: $darkergray;
}
}

.header-sep {
Expand Down Expand Up @@ -89,33 +76,24 @@
align-items: center;
font-size: 14px;
font-family: $font-roboto;
font-weight: bold;

color: white;

.Page__dashboard & {
color: $gray;
}
color: $gray;
}

> .SocialMediaShareButton {
cursor: pointer;
margin-left: 10px;

path {
fill: $purple;

.Page__dashboard & {
fill: white;
}
fill: white;
}

circle {
fill: white;
fill: $purple;
transition: all .2s;
}

.Page__dashboard & {
fill: $purple;
}
&:hover circle {
fill: $lightpurple;
}
}

Expand Down Expand Up @@ -144,19 +122,11 @@
padding: 0;
margin-left: 10px;
background: transparent;
color: white;
color: $gray;

&:hover {
border-bottom: 1px solid white;
}

.Page__dashboard & {
color: $gray;

&:hover {
color: $purple;
border-bottom: 1px solid $purple;
}
color: $purple;
border-bottom: 1px solid $purple;
}
}
}
Expand Down

0 comments on commit dffa301

Please sign in to comment.