Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

learn V2 #59

Merged
merged 16 commits into from
Nov 1, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
space under search added
  • Loading branch information
M-ZubairAhmed committed Oct 30, 2017
commit 7e2ab3d57307f848b9c9db47d566a80d404e3bc3
32 changes: 18 additions & 14 deletions pages/learn/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,21 @@ class Learn extends React.Component {
/>
<main>
<section>
{listOfDomains.map(domain => (
<Button
key={domain}
style={{ marginBottom: '10px' }}
className="filter_button"
basic
color="pink"
onClick={() => this.setState({ filter: domain })}
>
{domain}
</Button>
))}
<Search className="learn_search" placeholder="Search topics" />
<div className="filters">
{listOfDomains.map(domain => (
<Button
key={domain}
style={{ marginBottom: '10px' }}
className="filter_button"
basic
color="pink"
onClick={() => this.setState({ filter: domain })}
>
{domain}
</Button>
))}
</div>
<Search placeholder="Search topics" />
<Header
as="h3"
dividing
Expand Down Expand Up @@ -119,7 +121,6 @@ class Learn extends React.Component {
</Grid.Column>
))}
</Grid>
{/* </Grid> */}
</section>
</main>
<style jsx>{`
Expand All @@ -142,6 +143,9 @@ class Learn extends React.Component {
margin: 50px 0;
max-width: 800px;
}
.filters {
margin-bottom: 20px;
}
logo {
font-size: 12em;
text-align: center;
Expand Down