Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 91bb9d8

Browse files
Eric Jimeneznaomiblack
Eric Jimenez
authored andcommitted
fix(resources): use title key from firebase. Adjust layout a bit
1 parent 2810218 commit 91bb9d8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

public/resources/css/module/_resources.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.resources {
22
display: flex;
33
justify-content: space-between;
4-
flex-wrap: wrap;
54
flex-direction: row-reverse;
65

7-
@media(max-width: 400px) {
6+
@media(max-width: 768px) {
7+
justify-content: center;
88
flex-direction: column-reverse;
99
}
1010

public/resources/index.ejs

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<div>
66
<h1 class="capitalize">{{category}}</h1>
77
<div ng-repeat="section in categoryContent">
8-
<div class="grid-fluid" ng-repeat="(subsectionName, subsectionArray) in section">
8+
<div ng-repeat="(subsectionName, subsectionObj) in section">
99
<div>
10-
<h2 class="capitalize">{{ subsectionName }}</h2>
11-
<ul ng-repeat="resource in subsectionArray.resources">
10+
<h2>{{ subsectionObj.title }}</h2>
11+
<ul ng-repeat="resource in subsectionObj.resources">
1212
<li ng-if="resource.rev"><a target="_blank" href="{{resource.url}}">{{ resource.title }}</a></li>
1313
</ul>
1414
</div>

0 commit comments

Comments
 (0)