-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: SectionCardBackgroundIntercalated enabled reused block
- Loading branch information
1 parent
e23a7d6
commit 0e3d5ca
Showing
5 changed files
with
82 additions
and
56 deletions.
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
Empty file.
47 changes: 47 additions & 0 deletions
47
src/templates/sectioncardbackgroundintercalated/SectionCardBackgroundIntercalated.vue
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,47 @@ | ||
<template> | ||
<ContentSection v-bind="hero"> | ||
<template #content> | ||
<div class="m-0 grid grid-cols-1 md:grid-cols-2 gap-10 mx-auto md:pt-32"> | ||
<div | ||
v-for="({ label, title, image, alt }, index) in cards.cards" | ||
:class="[index % 2 !== 0 && 'md:-mt-32']" | ||
> | ||
<CardBase> | ||
<template #content-raw> | ||
<CardBgImage | ||
:alt="alt" | ||
:image="image" | ||
> | ||
<template #content> | ||
<div class="flex flex-col gap-5 z-20"> | ||
<Overline :label="label" /> | ||
<CardTitle> | ||
{{ title }} | ||
</CardTitle> | ||
</div> | ||
</template> | ||
</CardBgImage> | ||
</template> | ||
</CardBase> | ||
</div> | ||
</div> | ||
</template> | ||
</ContentSection> | ||
</template> | ||
|
||
<script setup> | ||
import ContentSection from '../contentsection' | ||
import Overline from '../overline' | ||
import CardBase from '../cardbase' | ||
import CardTitle from '../cardtitle' | ||
import CardBgImage from '../cardbgimage' | ||
defineProps({ | ||
hero: { | ||
type: Object | ||
}, | ||
cards: { | ||
type: Object | ||
} | ||
}) | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"main": "./sectioncardbackgroundintercalated.js", | ||
"types": "./SectionCardBackgroundIntercalated.d.ts", | ||
"browser": { | ||
"./sfc": "./SectionCardBackgroundIntercalated.vue" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
src/templates/sectioncardbackgroundintercalated/sectioncardbackgroundintercalated.js
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,2 @@ | ||
import SectionCardBackgroundIntercalated from './SectionCardBackgroundIntercalated.vue' | ||
export default SectionCardBackgroundIntercalated |