Skip to content

Commit

Permalink
Merge branch Stg into Main (#612)
Browse files Browse the repository at this point in the history
* Merge branch Dev into Stg (#611)

* fix(SNW-183): Adjust title in Hero DoubleColumnImage component (#610)
  • Loading branch information
gildardoSOD authored May 19, 2023
1 parent d748128 commit 9974176
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 14 deletions.
10 changes: 6 additions & 4 deletions src/components/dynamic/heros/DoubleColumnImage.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<column>
<block>
<Column>
<Block>
<section
class="double-column-image-hero"
:class="[imagePosition, paddingTop, paddingBottom]"
Expand Down Expand Up @@ -38,8 +38,8 @@
<DynamicButtons :buttons="buttons" :position="buttons_position" />
</div>
</section>
</block>
</column>
</Block>
</Column>
</template>

<script>
Expand All @@ -48,13 +48,15 @@ import DynamicButtons from "@/components/dynamic/basic/DynamicButtons.vue";
import DynamicCustomTitle from "@/components/dynamic/basic/DynamicCustomTitle.vue";
import DynamicEyebrowTitle from "@/components/dynamic/basic/DynamicEyebrowTitle.vue";
import DynamicBody from "@/components/dynamic/basic/DynamicBody.vue";
import DynamicTitle from "@/components/dynamic/basic/DynamicTitle.vue";
export default {
components: {
DynamicButtons,
DynamicEyebrowTitle,
DynamicCustomTitle,
DynamicBody,
DynamicTitle,
},
props: {
image: {
Expand Down
26 changes: 16 additions & 10 deletions src/components/dynamic/heros/LearnHeader.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<template>
<div class="learn-header">
<p class="learn-header__subtitle">{{ eyebrow_text }}</p>
<h1 class="learn-header__title">{{ title }}</h1>
<p class="learn-header__about-text">{{ subtitle }}</p>
<p class="learn-header__subtitle">
{{ eyebrow_text }}
</p>
<h1 class="learn-header__title">
{{ title }}
</h1>
<p class="learn-header__about-text">
{{ subtitle }}
</p>
<ResponsiveImage
v-if="background_image"
classes="learn-header__image"
Expand All @@ -15,19 +21,19 @@
<script>
export default {
props: {
eyebrow_text: String,
title: String,
subtitle: String,
background_image: Object
eyebrow_text: { type: String, required: true },
title: { type: String, required: true },
subtitle: { type: String, required: true },
background_image: { type: Object, required: false, default: null },
},
computed: {
widthArticleClass() {
return {
"text-column-single--narrow": this.width && this.width === "narrow",
"text-column-single--standard": this.width && this.width === "standard",
"text-column-single--wide": this.width && this.width === "wide"
"text-column-single--wide": this.width && this.width === "wide",
};
}
}
},
},
};
</script>

0 comments on commit 9974176

Please sign in to comment.