-
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.
[apps/www] Add introduction with aws partner logo (#83)
- Loading branch information
1 parent
eec8ef9
commit c6ec093
Showing
9 changed files
with
2,810 additions
and
234 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
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: 25 additions & 0 deletions
25
apps/cms/src/components/content-section/introduction-with-logo.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,25 @@ | ||
{ | ||
"collectionName": "components_content_section_introduction_with_logos", | ||
"info": { | ||
"displayName": "introduction-with-logo" | ||
}, | ||
"options": {}, | ||
"attributes": { | ||
"title": { | ||
"type": "string", | ||
"required": true | ||
}, | ||
"description": { | ||
"type": "text", | ||
"required": true | ||
}, | ||
"logo": { | ||
"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
34 changes: 34 additions & 0 deletions
34
apps/www/src/components/ui/organisms/content-sections/introduction-with-logo/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,34 @@ | ||
import {ImageProps} from '@/models/image.model' | ||
import Image from 'next/image' | ||
|
||
export type IntroductionWithLogoProps = { | ||
title: string | ||
description: string | ||
logo: ImageProps | ||
} | ||
|
||
const IntroductionWithLogo = (props: IntroductionWithLogoProps) => { | ||
return ( | ||
<div className='py-20 lg:py-[104px]'> | ||
<div className='px-6 mx-auto max-w-7xl lg:px-8'> | ||
<div | ||
className='flex flex-col gap-10 px-6 py-8 md:flex-row lg:px-12 rounded-xl bg-slate-800 lg:py-14'> | ||
<div className='order-2 w-full md:w-3/4 md:order-1'> | ||
<div className='text-2xl font-medium text-white sm:text-3xl'>{props.title}</div> | ||
<div className='mt-2 text-[18px] leading-8 text-slate-400 font-light'>{props.description}</div> | ||
</div> | ||
<div className='flex items-center justify-start order-1 w-full md:justify-center md:w-1/4 md:order-2'> | ||
<Image | ||
src={props.logo.url} | ||
width={props.logo.width} | ||
height={props.logo.height} | ||
alt={props.logo.alternateText || props.logo.name} | ||
className='w-24 h-auto md:w-32' | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
export default IntroductionWithLogo |
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
Oops, something went wrong.