-
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
5f04db4
commit ae1523e
Showing
7 changed files
with
101 additions
and
4 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
26 changes: 26 additions & 0 deletions
26
apps/cms/src/components/content-section/content-alternate-position-image-right.json
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,26 @@ | ||
{ | ||
"collectionName": "content_alternate_position_image_right", | ||
"info": { | ||
"displayName": "content-alternate-position-image-right" | ||
}, | ||
"options": {}, | ||
"attributes": { | ||
"title": { | ||
"type": "string", | ||
"required": true | ||
}, | ||
"description": { | ||
"type": "text", | ||
"required": true | ||
}, | ||
"image": { | ||
"allowedTypes": [ | ||
"images" | ||
], | ||
"type": "media", | ||
"multiple": false, | ||
"required": true | ||
} | ||
} | ||
} | ||
|
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
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
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
52 changes: 52 additions & 0 deletions
52
...components/ui/organisms/content-sections/content-alternate-position-image-right/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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import {ImageProps} from '@/models/image.model' | ||
import Button from '@/components/ui/atoms/button' | ||
import Image from 'next/image' | ||
import Link from 'next/link' | ||
|
||
export type ContentAlternatePositionImageRightProps = { | ||
title: string | ||
description: string | ||
image: ImageProps | ||
} | ||
|
||
export default function ContentAlternatePositionImageRight(props: ContentAlternatePositionImageRightProps) { | ||
return ( | ||
<div className='pb-20 pt-12 lg:pb-[104px] lg:pt-[120px]'> | ||
<div className='relative px-6 mx-auto max-w-7xl lg:px-8'> | ||
<dl className='grid grid-cols-1 gap-x-6 gap-y-14 lg:gap-y-36'> | ||
<div | ||
className='flex flex-col items-start lg:flex-row gap-x-16'> | ||
<div className='flex flex-col w-2/3 gap-y-2'> | ||
<dt className='text-2xl font-medium text-white sm:text-3xl'> | ||
{props.title} | ||
</dt> | ||
<dd className='text-[18px] leading-8 text-slate-400 font-light'> | ||
<p>{props.description}</p> | ||
</dd> | ||
<Button | ||
asChild | ||
size='medium' | ||
shape='circle' | ||
className='px-5 mt-4 text-md bg-sky-300 text-slate-900 hover:bg-violet-300' | ||
> | ||
<Link href=''> | ||
Learn more | ||
</Link> | ||
</Button> | ||
</div> | ||
<div className='w-1/3 h-full'> | ||
<Image | ||
className='object-cover h-full rounded-xl' | ||
src={props.image.url} | ||
width={props.image.width} | ||
height={props.image.height} | ||
alt={props.image.alternateText || props.image.name} | ||
> | ||
</Image> | ||
</div> | ||
</div> | ||
</dl> | ||
</div> | ||
</div> | ||
) | ||
} |
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