Skip to content

Commit

Permalink
relates to #56
Browse files Browse the repository at this point in the history
  • Loading branch information
Armand-Lluka committed Sep 20, 2018
1 parent 17ea2dd commit c03ddb6
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 3 deletions.
49 changes: 49 additions & 0 deletions private/sass/challenges.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
@import "colors";
@import "fonts";
@import "sizes";


.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
}


.tab {
overflow: hidden;
border: 1px solid #ccc;
background-color: #f1f1f1;
margin: 110px 1rem 0rem 1rem;
}

.tab button {
background-color: inherit;
border: none;
cursor: pointer;
}


.tab button:hover {
background-color: #ddd;
}

.tab li:active{
background-color: yellow;
}
.tab nav {

}
.tab nav ul {
list-style: none;
display: flex;
flex-direction: row;
flex-wrap: wrap;

}

.tab nav ul li button {
color: #0d9564;
margin: 0.5rem 1rem 0.5rem 1rem;
}
46 changes: 46 additions & 0 deletions public/css/challenges.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions public/css/challenges.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 12 additions & 3 deletions src/views/dashboard.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
{{!--
<body onload="document.getElementById('defaultOpen').click()"> --}}
<!-- Tabbed test -->



<div class="tab">
<button class="tablinks" onclick="openCity(event, 'new-challenge')" id="defaultOpen">New Challenges</button>
<button class="tablinks" onclick="openCity(event, 'accepted-challenge')">Accepted Challenges</button>
<button class="tablinks" onclick="openCity(event, 'completed-challenge')">Completed Challenges</button>
<nav>
<ul>
<li><button class="tablinks" onclick="openCity(event, 'new-challenge')" id="defaultOpen">New</button></li>
<li> <button class="tablinks" onclick="openCity(event, 'accepted-challenge')">Accepted </button></li>
<li> <button class="tablinks" onclick="openCity(event, 'completed-challenge')">Completed</button></li>
</ul>
</nav>

</div>

<!-- New Challenges -->
Expand Down
2 changes: 2 additions & 0 deletions src/views/partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
<link rel="stylesheet" href="/css/learn.css">
<link rel="stylesheet" href="/css/selected-page.css">
<link rel="stylesheet" href="/css/inventory.css">
<link rel="stylesheet" href="/css/challenges.css">

<link href="https://fonts.googleapis.com/css?family=Gugi" rel="stylesheet">
</head>

0 comments on commit c03ddb6

Please sign in to comment.