Skip to content

Commit

Permalink
Adding CTAs for #5
Browse files Browse the repository at this point in the history
  • Loading branch information
jmotes committed Nov 7, 2017
1 parent d18f9b5 commit 5f97620
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default {
<style lang="scss">
// add variables here to customize Bootstrap
$enable-rounded: false;
$headings-font-weight: 400;
$theme-colors: (
primary: #42b983
);
Expand Down
18 changes: 18 additions & 0 deletions src/components/CallToActionItem.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<template>
<div v-editable="blok" class="card mb-5 border-0">
<img class="card-img-top" :src="blok.image" alt="Card image cap">
<div class="card-body px-0">
<h4 class="card-title">{{blok.title}}</h4>
<p class="card-text">{{blok.text}}</p>
</div>
<div class="card-action">
<router-link :to="blok.action_link" class="btn btn-block btn-outline-primary text-uppercase">{{blok.action_label}}</router-link>
</div>
</div>
</template>

<script>
export default {
props: ['blok']
}
</script>
15 changes: 15 additions & 0 deletions src/components/CallToActionsDeck.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<div class="container">
<div class="card-deck">
<template v-for="item in blok.items">
<component :blok="item" :is="item.component" :key="item.id"></component>
</template>
</div>
</div>
</template>

<script>
export default {
props: ['blok']
}
</script>
4 changes: 4 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import Navbar from '@/components/layout/partials/Navbar'
import SiteFooter from '@/components/layout/partials/SiteFooter'
import Teaser from '@/components/Teaser'
import Hero from '@/components/Hero'
import CallToActionsDeck from '@/components/CallToActionsDeck'
import CallToActionItem from '@/components/CallToActionItem'

Vue.config.productionTip = false

Expand All @@ -24,6 +26,8 @@ Vue.component('navbar', Navbar)
Vue.component('site-footer', SiteFooter)
Vue.component('teaser', Teaser)
Vue.component('hero', Hero)
Vue.component('call-to-actions-deck', CallToActionsDeck)
Vue.component('call-to-action-item', CallToActionItem)

/* eslint-disable no-new */
new Vue({
Expand Down

0 comments on commit 5f97620

Please sign in to comment.