8 changed files with 50 additions and 31 deletions
@ -0,0 +1,3 @@ |
|||
<aboutview> |
|||
<h3>wat</h3> |
|||
</aboutview> |
@ -0,0 +1,10 @@ |
|||
<app> |
|||
<router> |
|||
<route path="/search"> |
|||
<searchview></searchview> |
|||
</route> |
|||
<route path="/about"> |
|||
<aboutview></aboutview> |
|||
</route> |
|||
</router> |
|||
</app> |
@ -1,18 +1,22 @@ |
|||
import riot from 'riot'; |
|||
import router from 'riot-route/lib/tag'; |
|||
import './book.tag'; |
|||
import './class.tag'; |
|||
import './results.tag'; |
|||
import './row.tag'; |
|||
import './search.tag'; |
|||
import './searchview.tag'; |
|||
import './aboutview.tag'; |
|||
import './app.tag'; |
|||
|
|||
var resultsEv = riot.observable(); |
|||
|
|||
function mount() { |
|||
riot.mount("search", { |
|||
riot.mount("app", { |
|||
booksLoading : false, |
|||
resultsEv : resultsEv |
|||
resultsEv : resultsEv, |
|||
notLoading: true |
|||
}); |
|||
riot.mount("results", {notLoading : true, resultsEv : resultsEv}); |
|||
} |
|||
|
|||
mount(); |
|||
|
@ -0,0 +1,24 @@ |
|||
<searchview> |
|||
<section class="page-top navbar-section"> |
|||
<div class="container"> |
|||
<div class="columns"> |
|||
<div class="column"> |
|||
<h1 class="title inline-block">TextBook Commons</h1> |
|||
<figure class="inline-block avatar-icon avatar avatar-xl"> |
|||
<img class="logo" src="/goal.png" /> |
|||
</figure> |
|||
</div> |
|||
</div> |
|||
<div class="columns"> |
|||
<div class="title column col-sm-12 col-md-12 col-lg-12"> |
|||
<h4>Search for a course and find your books</h4> |
|||
<h6>Currently indexes courses for McMaster University. |
|||
<span>Created By <a href="https://twitter.com/weskerfoot">@weskerfoot</a></span> |
|||
</h6> |
|||
</div> |
|||
</div> |
|||
<search></search> |
|||
</div> |
|||
</section> |
|||
<results></results> |
|||
</searchview> |
Loading…
Reference in new issue