Skip to content

Commit

Permalink
Merge pull request #558 from centrapay/add-cover-image
Browse files Browse the repository at this point in the history
🖼️ Add cover image to content layout
  • Loading branch information
MeganSteenkamp committed Jan 12, 2023
2 parents 1851176 + 604bcb0 commit e8e4da6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion components/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
<template>
<div>
<div
v-if="imageSrc"
class="flex items-center max-h-72 overflow-hidden"
>
<img
:src="imageSrc"
aria-hidden="true"
class="object-cover m-0"
>
</div>
<div class="relative mx-auto flex max-w-8xl justify-center sm:px-2 lg:px-8 xl:px-12">
<div class="min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pr-0 lg:pl-8 xl:px-16">
<div class="min-w-0 max-w-2xl flex-auto px-4 pb-16 pt-8 lg:pt-16 lg:max-w-none lg:pr-0 lg:pl-8 xl:px-16">
<article>
<header
v-if="title || section"
Expand Down Expand Up @@ -85,6 +95,7 @@ import { ref, onMounted, onUnmounted } from 'vue';
const { path } = useRoute();
const contentPath = path.endsWith('/') ? path.slice(0, -1) : path;
const contentDirectory = await queryContent().where({ _path: contentPath }).findOne();
const imageSrc = contentDirectory.img;
const title = contentDirectory.title;
const navigation = await fetchContentNavigation();
const section = navigation.find((s) =>
Expand Down
1 change: 1 addition & 0 deletions content/guides/farmlands-pos-integration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Farmlands POS Integration Guide
img: /farmlands-pos-integration-cover.jpg
---

Centrapay and Farmlands have entered into a partnership that will allow Farmlands Card Partners to accept the Farmlands Card for payment at the point of sale. The benefits include real-time balance checks, the elimination of reconciliation EDI files, and it unlocks the ability to accept many more payment methods on the Centrapay platform.
Expand Down
Binary file added public/farmlands-pos-integration-cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e8e4da6

Please sign in to comment.