loaded materials form solr with jsonapi, and display them

This commit is contained in:
2019-06-10 18:30:48 +02:00
parent 058aed796a
commit 01cee3ba8a
19 changed files with 719 additions and 17 deletions

View File

@@ -1,10 +1,13 @@
<template>
<div id="Base">
<h1 class="page-title">{{ pagetitle }}</h1>
<aside class="search-info">
{{ searchinfos }}
</aside>
<div class="results">
<div class="loading" v-if="!items.length">
<span>Loading ...</span>
</div>
<div class="cards-list" v-else>
<aside class="search-info">
{{ searchinfos }}
</aside>
<ul>
<li v-for="item in items" v-bind:key="item.nid">
<Card :item="item"/>

View File

@@ -1,6 +1,12 @@
<template>
<div class="card">
<h1>{{ item.title }}</h1>
<header>
<h1>{{ item.title }}</h1>
<h4>{{ item.description }}</h4>
</header>
<section class=images>
<img class="images" v-for="img in item.images" :src="img.url" :title="img.title"/>
</section>
</div>
</template>
@@ -17,4 +23,5 @@ export default {
</script>
<style lang="scss" scoped>
</style>