-
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
Showing
6 changed files
with
64 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { FC } from "react"; | ||
import Image from "next/image" | ||
|
||
interface featureDescription { | ||
readonly title?: string | ||
readonly description?: string | ||
} | ||
|
||
interface IFeatureProps { | ||
readonly imageUrl: string | ||
readonly features: Array<featureDescription> | ||
} | ||
|
||
const Feature1: FC<IFeatureProps> = ({ imageUrl, features }) => ( | ||
<div className={`grid grid-cols-1 gap-5 md:grid-cols-2 md:gap-5`}> | ||
<div className={`flex justify-center`}> | ||
<Image src={imageUrl} width={400} height={600} /> | ||
</div> | ||
<div className={`flex flex-col justify-center space-y-10`}> | ||
{features.map((item, i) => ( | ||
<div key={i}> | ||
<div className={`text-xl mb-5 font-bold`}>{item.title}</div> | ||
<div>{item.description}</div> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
|
||
export default Feature1 |
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 @@ | ||
export {default as Feature1} from './feature-1' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Title from "antd/lib/skeleton/Title"; | ||
import { Feature1 } from "components/feature"; | ||
import LayoutComponentPreview from "./_layout"; | ||
|
||
export default function FeaturePreviewPage() { | ||
return ( | ||
<LayoutComponentPreview> | ||
<div className={`mb-20`}> | ||
<div className={`mb-10 text-lg font-bold uppercase`}>Feature 1</div> | ||
<Feature1 | ||
imageUrl={`https://placeimg.com/400/600/tech/grayscale`} | ||
features={[ | ||
{ | ||
title: 'First Feature', | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.' | ||
}, | ||
{ | ||
title: 'Second Feature', | ||
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.' | ||
} | ||
]} | ||
/> | ||
</div> | ||
</LayoutComponentPreview> | ||
) | ||
} |