Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
472c60b
commit ae9ce97
Showing
12 changed files
with
130 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"icon": "ic:outline-local-offer", | ||
"name": "Services", | ||
"route": "services", | ||
"pos": "3/2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"color": "#f8f8f8", | ||
"description": "Keep the conversation going with multi-channel messaging automation.", | ||
"icon": "fa:paper-plane", | ||
"image": "/img/services/messaging.png", | ||
"name": "Messaging", | ||
"description": "Keep the conversation going with multi-channel messaging automation." | ||
"pos": "1/3" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"color": "#e8e8e8", | ||
"description": "Organically raise high quality content to the top of search results.", | ||
"icon": "fa:search", | ||
"image": "/img/services/seo.png", | ||
"name": "SEO", | ||
"description": "Organically raise high quality content to the top of search results." | ||
"pos": "1/2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"color": "#282828", | ||
"description": "Dedication to maintaining quality websites means we are always reachable.", | ||
"icon": "fa:puzzle-piece", | ||
"image": "/img/services/support.png", | ||
"name": "Support", | ||
"description": "Dedication to maintaining quality websites means we are always reachable." | ||
"pos": "1/4" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"color": "#282838", | ||
"description": "Rapid prototyping of bespoke designs into fast, feature rich websites.", | ||
"icon": "fa:keyboard-o", | ||
"image": "/img/services/websites.png", | ||
"name": "Websites", | ||
"description": "Rapid prototyping of bespoke designs into fast, feature rich websites." | ||
"pos": "1/1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<template> | ||
<div> | ||
<BlogHero | ||
:title="heading" | ||
:summary="description" | ||
src="/img/banners/services.jpg" | ||
:credit="{}" | ||
></BlogHero> | ||
<v-container> | ||
<v-row> | ||
<v-col | ||
v-for="item in items" | ||
:key="item.slug" | ||
cols="12" | ||
sm="6" | ||
md="6" | ||
lg="4" | ||
xl="3" | ||
class="d-flex flex-column" | ||
> | ||
<Feature | ||
v-bind="{ | ||
...item, | ||
url: item.offers ? `/services/${item.slug}` : item.url, | ||
image: `/img/services/${item.slug}.png`, | ||
imageColor: item.color, | ||
iconColor: item.iconColor, | ||
icon: item.icon, | ||
}" | ||
> | ||
<PriceRange v-if="item.plans" :items="item.plans"></PriceRange> | ||
</Feature> | ||
</v-col> | ||
</v-row> | ||
</v-container> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { sortBy, maxBy } from 'lodash-es'; | ||
import Feature from '~/components/feature'; | ||
import PriceRange from '~/components/price-range'; | ||
import textLength from '~/utils/feature-text-length'; | ||
import fractionToDecimal from '~/utils/fraction-to-decimal'; | ||
export default { | ||
components: { | ||
Feature, | ||
PriceRange, | ||
}, | ||
async asyncData({ $content }) { | ||
const items = sortBy( | ||
(await $content('services').fetch()) | ||
.filter((item) => !item.deleted_at) | ||
.map((item) => ({ | ||
...item, | ||
pos: fractionToDecimal(item.pos), | ||
})), | ||
[ | ||
'pos', | ||
/** | ||
* Sort by largest price | ||
* @param {*} o item to sort | ||
*/ | ||
function (o) { | ||
const plans = sortBy(o?.plans ?? { free: { price: 0 } }, 'price'); | ||
const max = maxBy(plans, 'price'); | ||
return max.price; | ||
}, | ||
textLength, | ||
'slug', | ||
], | ||
).reverse(); | ||
return { items }; | ||
}, | ||
data() { | ||
return { | ||
heading: 'Services', | ||
description: | ||
'We offer a range of services to help you get the most out of your website.', | ||
items: [], | ||
defaultPlan: { unset: { price: 0 } }, | ||
}; | ||
}, | ||
head() { | ||
return { | ||
title: this.heading, | ||
meta: [ | ||
{ | ||
hid: 'description', | ||
name: 'description', | ||
content: this.description, | ||
}, | ||
], | ||
}; | ||
}, | ||
}; | ||
</script> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
ae9ce97
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
daim – ./
daim-damienrobinson.vercel.app
daim.vercel.app
staging.daim.dev
daim.dev
daim-git-master-damienrobinson.vercel.app