Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Set default leaders header image dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
zarathustra323 committed Feb 23, 2023
1 parent 1812ced commit 6c4c492
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/leaders-program/src/components/header.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<template>
<div v-if="display" class="leaders__header">
<div v-if="imgSrc" class="leaders__header-image">
<img :src="imgSrc" :alt="imgAlt">
<img
:src="imgSrc"
:alt="imgAlt"
:width="imgWidth"
:height="imgHeight"
>
</div>
<div v-if="displayCallout" class="leaders__header-callout">
<div class="leaders__callout-prefix">
Expand Down Expand Up @@ -29,6 +34,14 @@ export default {
type: String,
default: null,
},
imgWidth: {
type: String,
default: '300',
},
imgHeight: {
type: String,
default: '90',
},
displayCallout: {
type: Boolean,
default: true,
Expand Down
10 changes: 10 additions & 0 deletions packages/leaders-program/src/components/leaders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
:display="getResponsiveValue('displayHeader')"
:img-src="headerImgSrc"
:img-alt="headerImgAlt"
:img-width="headerImgWidth"
:img-height="headerImgHeight"
:display-callout="getResponsiveValue('displayCallout')"
:callout-prefix="calloutPrefix"
:callout-value="calloutValue"
Expand Down Expand Up @@ -129,6 +131,14 @@ export default {
type: String,
default: null,
},
headerImgWidth: {
type: String,
default: '300',
},
headerImgHeight: {
type: String,
default: '90',
},
displayCallout: {
type: Boolean,
default: true,
Expand Down

0 comments on commit 6c4c492

Please sign in to comment.