-
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
da4d70a
commit f2b5f07
Showing
6 changed files
with
101 additions
and
3 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-left.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_left", | ||
"info": { | ||
"displayName": "content-alternate-position-image-left" | ||
}, | ||
"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
53 changes: 53 additions & 0 deletions
53
.../components/ui/organisms/content-sections/content-alternate-position-image-left/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,53 @@ | ||
import {ArrowLongRightIcon} from '@heroicons/react/24/solid' | ||
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 ContentAlternatePositionImageLeftProps = { | ||
title: string | ||
description: string | ||
image: ImageProps | ||
} | ||
|
||
export default function ContentAlternatePositionImageLeft(props: ContentAlternatePositionImageLeftProps) { | ||
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='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 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> | ||
</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