Skip to content

Commit

Permalink
fixes after qa (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle authored Aug 28, 2024
1 parent d317806 commit a33f69a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const BaseStory = {
},
alt: 'The alt text'
},
heroSummary: 'Lorem ipsum dolor sit amet consectatur adipscing.',
heroImageCaption: '<p>Lorem ipsum dolor sit amet</p>',
heroConstrain: true,
heroPosition: 'full_bleed',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ import BlockRelatedLinks from '../../../components/BlockRelatedLinks/BlockRelate
import HeroLarge from './../../../components/HeroLarge/HeroLarge.vue'
import NavJumpMenu from './../../../components/NavJumpMenu/NavJumpMenu.vue'
import MetaPanel from '../../../components/MetaPanel/MetaPanel.vue'
import ShareButtonsEdu from '../../../components/ShareButtonsEdu/ShareButtonsEdu.vue'
interface PageEduCollectionsDetail extends PageEduResourcesObject {
heroImage: ImageObject
heroImageCaption: string
showMetaPanel: boolean
heroSubtitle: string
heroSummary: string
}
interface PageEduCollectionsDetailProps {
data?: PageEduCollectionsDetail
Expand Down Expand Up @@ -57,9 +58,9 @@ const computedClass = computed((): string => {
v-if="!heroInline && data.heroImage"
:title="data.title"
:image="data.heroImage"
:summary="'Test test test lorem ipsum dolor sit amet yep.'"
:summary="data.heroSummary"
:custom-pill-type="data.__typename"
:class="!data.showMetaPanel ? 'mb-10 lg:mb-22' : ''"
:class="!data.showMetaPanel ? 'mb-10' : ''"
/>

<NavJumpMenu
Expand All @@ -81,11 +82,18 @@ const computedClass = computed((): string => {
pill
pill-color="primary-inverted"
/>

<ShareButtonsEdu
class="mt-4"
:title="data.title"
:url="data.url"
/>
</LayoutHelper>

<MetaPanel
v-if="data.showMetaPanel"
theme="primary"
:class="{ 'mb-10 lg:mb-14': true }"
:class="{ 'mb-10 lg:mb-12': true }"
:primary-subject="data.primarySubject"
:additional-subjects="data.additionalSubjects"
:grade-levels="data.gradeLevels"
Expand All @@ -96,7 +104,7 @@ const computedClass = computed((): string => {
<!-- TODO: put this in a component (exclude layout though) -->
<LayoutHelper
v-if="data.heroImage && heroInline"
class="lg:mb-22 mb-10"
class="mb-10 lg:mb-18"
>
<BlockImageStandard
:data="data.heroImage"
Expand All @@ -106,6 +114,19 @@ const computedClass = computed((): string => {
/>
</LayoutHelper>

<LayoutHelper
v-if="!heroInline"
indent="col-2"
class="mb-6 lg:mb-12"
:class="{ '-mt-4': data.showMetaPanel }"
>
<ShareButtonsEdu
class="mt-4"
:title="data.title"
:url="data.url"
/>
</LayoutHelper>

<!-- streamfield blocks -->
<BlockStreamfield :data="data.body" />

Expand Down

0 comments on commit a33f69a

Please sign in to comment.