Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

Commit

Permalink
feat: filter buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaOak committed Dec 17, 2019
1 parent 9849b0f commit c35220d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
27 changes: 20 additions & 7 deletions src/components/dashboard.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { html } from 'lit-element';
import sharedStyles from '../../style/app.scss';
import dashboardStyles from '../../style/dashboard.scss';
import dashboardButtonsStyles from '../../style/dashboard-filter.scss';
import { PageViewElement } from './page-view-element.js';
import '@polymer/iron-icons/iron-icons.js';
import './sidebar.js';
Expand All @@ -13,7 +14,7 @@ import './tags.js';

class OAEDashboard extends PageViewElement {
static get styles() {
return [sharedStyles, dashboardStyles];
return [sharedStyles, dashboardStyles, dashboardButtonsStyles];
}

render() {
Expand All @@ -39,12 +40,24 @@ class OAEDashboard extends PageViewElement {
<li>Dashboard</li>
</ul>
</section>
<section class="is-flex">
<span class="dashboard-icon">
<iron-icon icon="icons:update"></iron-icon>
</span>
<h3>Recent Activity</h3>
</section>
<nav class="level">
<!-- Left side -->
<div class="level-left">
<div class="level-item">
<span class="dashboard-icon">
<iron-icon icon="icons:update"></iron-icon>
</span>
<h3>Recent Activity</h3>
</div>
</div>
<!-- Right side -->
<div class="level-right">
<div class="buttons">
<button class="button filter-feed filter-active-feed">Most Recent</button>
<button class="button filter-feed">Oldest</button>
</div>
</div>
</nav>
<news-feed></news-feed>
<news-feed></news-feed>
<news-feed></news-feed>
Expand Down
18 changes: 18 additions & 0 deletions style/dashboard-filter.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.filter-feed {
color: #0060df;
margin-right: 15px;
font-size: 13px;
height: 20px;
width: 6em;
border-radius: 25px;
border: none;
background-color: transparent;
}

.filter-active-feed {
background-color: #0060df;
color: white;
&:hover {
color: white;
}
}

1 comment on commit c35220d

@datreeio
Copy link

@datreeio datreeio bot commented on c35220d Dec 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All Rules (6 / 6) Passed

👑 Good job! this pull request is aligned with your organization's best practices!

👉 You can review your rules settings at smart policy management 👈

👉 click here to view a full list of the events 👈

Please sign in to comment.