-
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.
- Loading branch information
1 parent
4840ebd
commit 4ae0746
Showing
3 changed files
with
37 additions
and
49 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.../content-alternate-position-with-image.ts → ...nt-alternate-position-with-image.model.ts
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
59 changes: 23 additions & 36 deletions
59
...onents/ui/organisms/content-sections/content-alternate-position-with-image-item/index.tsx
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
25 changes: 13 additions & 12 deletions
25
...onents/ui/organisms/content-sections/content-alternate-position-with-image-list/index.tsx
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 |
---|---|---|
@@ -1,20 +1,21 @@ | ||
import {ContentAlternatePositionWithImage} from '@/models/content-alternate-position-with-image' | ||
import {ContentAlternatePositionWithImage} from '@/components/ui/organisms/content-sections/content-alternate-position-with-image-item/content-alternate-position-with-image.model' | ||
import ContentAlternatePositionWithImageItem from '@/components/ui/organisms/content-sections/content-alternate-position-with-image-item' | ||
|
||
export type ContentAlternatePositionWithImageListProps = { | ||
items: Array<ContentAlternatePositionWithImage> | ||
} | ||
|
||
export default function ContentAlternatePositionWithImageList(props: ContentAlternatePositionWithImageListProps) { | ||
const items = props.items.map((item) => { | ||
return { | ||
image: item.image, | ||
title: item.title, | ||
description: item.description, | ||
imagePosition: item.imagePosition, | ||
slug: item.slug | ||
} | ||
}) | ||
|
||
return <ContentAlternatePositionWithImageItem items={items} /> | ||
return ( | ||
<div className='py-20 lg:py-[104px]'> | ||
<div className='relative px-6 mx-auto max-w-7xl lg:px-8'> | ||
{props.items.map((item, index) => ( | ||
<ContentAlternatePositionWithImageItem | ||
key={index} | ||
{...item} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} |