Added ListPage and other UI improvements

This commit is contained in:
scmmishra
2018-11-14 14:23:06 +05:30
committed by Aditya Hase
parent efb01c3f75
commit 85c2feec0d
12 changed files with 102 additions and 38 deletions

View File

@@ -4,11 +4,13 @@
<TopSectionButton/>
</TopSection>
<CardList :title="'Featured Programs'" :description="'Master ERPNext'">
<ProgramCard v-for="item in featuredPrograms" :key="item.program.name" :program="item.program" :enrolled="item.is_enrolled"/>
<ProgramCard slot="card-list-slot" v-for="item in featuredPrograms" :key="item.program.name" :program="item.program" :enrolled="item.is_enrolled"/>
<AButton slot="list-bottom" :type="'primary'" :size="'lg'" :route="'List/Program'">View All</AButton>
</CardList>
</div>
</template>
<script>
import Button from '../components/Button.vue';
import TopSection from "../components/TopSection.vue"
import CardList from "../components/CardList.vue"
import ProgramCard from "../components/ProgramCard.vue"
@@ -19,11 +21,12 @@ export default {
data() {
return{
portal: {},
featuredPrograms: [],
featuredPrograms: {},
// enrolledPrograms: new Set()
}
},
components: {
AButton: Button,
TopSection,
CardList,
ProgramCard,