File tree Expand file tree Collapse file tree 4 files changed +65
-0
lines changed Expand file tree Collapse file tree 4 files changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { storyblokEditable , type SbBlokData } from '@storyblok/react/rsc' ;
2
+ import { CreateBloks } from '@/components/CreateBloks' ;
3
+
4
+ // TODO: This is a placeholder
5
+ export type SbBasicCardProps = {
6
+ blok : SbBlokData & {
7
+ headline ?: string ;
8
+ ctaLink ?: SbBlokData [ ] ;
9
+ } ;
10
+ }
11
+
12
+ export const SbBasicCard = ( props : SbBasicCardProps ) => {
13
+ return (
14
+ < div { ...storyblokEditable ( props . blok ) } >
15
+ < h2 > { props . blok . headline } </ h2 >
16
+ < CreateBloks blokSection = { props . blok . ctaLink } />
17
+ </ div >
18
+ ) ;
19
+ } ;
Original file line number Diff line number Diff line change
1
+ import { storyblokEditable , type SbBlokData } from '@storyblok/react/rsc' ;
2
+ import { CreateBloks } from '@/components/CreateBloks' ;
3
+
4
+ // TODO: This is a placeholder
5
+ export type SbRowOneColumnProps = {
6
+ blok : SbBlokData & {
7
+ columnDontent : SbBlokData [ ] ;
8
+ } ;
9
+ }
10
+
11
+ export const SbRowOneColumn = ( props : SbRowOneColumnProps ) => {
12
+ return (
13
+ < div { ...storyblokEditable ( props . blok ) } >
14
+ < CreateBloks blokSection = { props . blok . columnDontent } />
15
+ </ div >
16
+ ) ;
17
+ } ;
Original file line number Diff line number Diff line change
1
+ import { storyblokEditable , type SbBlokData } from '@storyblok/react/rsc' ;
2
+ import { Container } from '@/components/Container' ;
3
+ import { CreateBloks } from '@/components/CreateBloks' ;
4
+
5
+ // TODO: This is a placeholder
6
+ export type SbSectionProps = {
7
+ blok : SbBlokData & {
8
+ title ?: string ;
9
+ content : SbBlokData [ ] ;
10
+ } ;
11
+ }
12
+
13
+ export const SbSection = ( props : SbSectionProps ) => {
14
+ return (
15
+ < Container { ...storyblokEditable ( props . blok ) } className = "ood-section" >
16
+ { props . blok . title && (
17
+ < h2 > { props . blok . title } </ h2 >
18
+ ) }
19
+ < CreateBloks blokSection = { props . blok . content } />
20
+ </ Container >
21
+ ) ;
22
+ } ;
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ import { SbNavItem } from '@/components/Storyblok/SbNavItem';
18
18
import { SbLockup } from '@/components/Storyblok/SbLockup' ;
19
19
import { SbSingleColumnContent } from '@/components/Storyblok/SbSingleColumnContent' ;
20
20
import { SbStoryImage } from '@/components/Storyblok/SbStoryImage' ;
21
+ import { SbSection } from '@/components/Storyblok/SbSection' ;
22
+ import { SbRowOneColumn } from '@/components/Storyblok/SbRowOneColumn' ;
23
+ import { SbBasicCard } from '@/components/Storyblok/SbBasicCard' ;
21
24
22
25
export const components = {
23
26
// TODO DS-1417: Remove and clean up page
@@ -27,6 +30,8 @@ export const components = {
27
30
ctaLink : SbCtaLink ,
28
31
navItem : SbNavItem ,
29
32
lockup : SbLockup ,
33
+ // Cards
34
+ basicCard : SbBasicCard ,
30
35
// Pages
31
36
oodCampaignPage : SbCampaignPage ,
32
37
oodInteriorPage : SbInteriorPage ,
@@ -40,6 +45,8 @@ export const components = {
40
45
localFooterPicker : SbLocalFooterPicker ,
41
46
oodLocalFooter : SbLocalFooter ,
42
47
// Layout
48
+ rowOneColumn : SbRowOneColumn ,
49
+ section : SbSection ,
43
50
singleColumnContent : SbSingleColumnContent ,
44
51
// Media
45
52
storyImage : SbStoryImage ,
You can’t perform that action at this time.
0 commit comments