Skip to content

Commit

Permalink
feat(DEV-21): add Features section scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
hhimanshu committed Jul 5, 2021
1 parent 1ba2d2a commit 8a00618
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
10 changes: 10 additions & 0 deletions src/components/Home/Features/index.tsx
@@ -0,0 +1,10 @@
import React from 'react';
import { Section } from '../Section';

export const Features = () => {
return (
<Section title={'Features'} bgColor={'#F9F8F8'}>
<p>Coming soon!</p>
</Section>
);
};
11 changes: 8 additions & 3 deletions src/components/Home/Section/index.tsx
Expand Up @@ -3,12 +3,17 @@ import './styles.css';

interface SectionProps {
title: string;
children: ReactElement[];
children: ReactElement | ReactElement[];
bgColor?: string;
}

export const Section = ({ title, children }: SectionProps) => {
export const Section = ({
title,
children,
bgColor = '#FFFFFF',
}: SectionProps) => {
return (
<div className={'section'}>
<div className={'section'} style={{ backgroundColor: `${bgColor}` }}>
<h2>{title}</h2>
{children}
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/components/Home/Section/styles.css
@@ -1,6 +1,6 @@
.section {
display: flex;
flex-direction: column;
padding: 50px 20px;
border: 1px solid black;
}
display: flex;
flex-direction: column;
padding: 50px;
border: 0px solid black;
}
2 changes: 2 additions & 0 deletions src/components/Home/index.tsx
Expand Up @@ -3,12 +3,14 @@ import { Link } from 'react-router-dom';
import './styles.css';
import { Header } from './Header';
import { Why } from './Why';
import { Features } from './Features';

export const Home = () => {
return (
<Fragment>
<Header />
<Why />
<Features />
</Fragment>
);
};

0 comments on commit 8a00618

Please sign in to comment.