-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusting banner based on feedback (#317)
Signed-off-by: hayleycd <cook.hayley@gmail.com>
- Loading branch information
Showing
4 changed files
with
67 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<section class="py-40 md:py-80" | ||
:class="[backgroundColour]" | ||
:data-header-text="[(backgroundColour === 'bg-purple-dark') ? 'text-white' : (backgroundColour === 'bg-pastel-blue') ? 'text-purple-dark' : 'text-gray-dark']" | ||
> | ||
<div class="md:flex justify-between container inner" :class="[textAlignment != 'textRight' ? 'items-center' : 'items-start']"> | ||
<div class="w-full md:w-1/2 step-delay_1 md:mr-80 md:order-1 order-2"> | ||
<h1 class="text-24 leading-23 md:leading-32 mb-32" :class="[!bgColour ? 'text-purple-dark' : 'text-purple-dark']">{{header}}</h1> | ||
<div v-if="textAlignment != 'textRight'" :class="[!bgColour ? 'text-purple-dark' : 'text-purple-dark']" class="mt-8 md:block hidden" v-html="$md.render(text)"></div> | ||
<div v-if="textAlignment != 'textRight'" class="block md:hidden"><a :href="link"><img :alt="`${header} image`" :src="imageAsset" /></a></div> | ||
</div> | ||
<div v-if="!card" class="w-full md:w-1/2 step-delay_2 mt-32 md:mt-0 md:order-2"> | ||
<div v-if="textAlignment != 'textRight'" class="md:block hidden"><a :href="link"><img :alt="`${header} image`" :src="imageAsset" /></a></div> | ||
</div> | ||
<div v-else v-html="$md.render(text)"></div> | ||
<div v-if="textAlignment != 'textRight'" :class="[!bgColour ? 'text-purple-dark' : 'text-white']" class="mt-8 block md:hidden" v-html="$md.render(text)"></div> | ||
</div> | ||
</div> | ||
</section> | ||
</template> | ||
<script lang="js"> | ||
export default { | ||
components: { | ||
}, | ||
props: { | ||
header: { type: String, default: null }, | ||
text: { type: String, default: null }, | ||
imageAsset: { type: String, default: null }, | ||
alignment: { type: String, default: null }, | ||
bgColour: { type: String, default: null }, | ||
card: { type: Object, default: null }, | ||
link: { type: String, default: null }, | ||
}, | ||
data: () => ({ | ||
}), | ||
computed: { | ||
backgroundColour(){ | ||
return `${this.bgColour}`; | ||
}, | ||
textAlignment() { | ||
return this.alignment; | ||
}, | ||
}, | ||
mounted() { | ||
}, | ||
methods: { | ||
} | ||
}; | ||
</script> |
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
Oops, something went wrong.