Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mid section Component for the fifth theme #441

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40,824 changes: 58 additions & 40,766 deletions package-lock.json

Large diffs are not rendered by default.

85 changes: 0 additions & 85 deletions package.json

This file was deleted.

118 changes: 0 additions & 118 deletions src/components/AnimatedLogin/index.js

This file was deleted.

37 changes: 37 additions & 0 deletions src/components/MidSectionComponentThemeFive/MidSectionThemeFive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
## Initial Setup

Hope you have successfully set up the project in your local system and install all dependencies

## About the mid-section Component

This is a resuasble component for displaying the information in a two grid system where the first section is to show main features in cards
and the second section provides a title and description. This Component is highly reusable and customizable via props.

## How to use the component

Import the component to `pages/index.js`
`import {MidSectionThemeThree} from "../components/MidSectionThemeThree";`

## How to handle props to the component

```
<MidSectionThemeFive
mainText="sample-Text"
mainHead="sample-Text"
mainPara="sample-text"
button="sample-text"
img="sample-url"
secondHead="sample-text"
secondSubHead="sample-text"
countItems=[{time:"sample time" , duration:"duration"}]
/>
```

`mainText`: prop of type text is the mainText of the section
`mainHead`: prop of type text is the mainHeading/subtitle of the section
`mainPara`: prop of type text is the main paragraph present in the section
`button`: prop of type text is label for the botton present in the section
`img`: prop of type text is label for the imageURL present in the section
`secondHead`: prop of type text is label for the botton present in the section
`secondSubHead`: prop of type text is label for the botton present in the section
`countItems`: prop of type array is the array of cardItems each having an time and duration
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import React from "react";
import { MidSectionThemeFive } from "./index";
import "bootstrap/dist/css/bootstrap.css"

export default{
title:"theme 5/midSectionComponentThemeFive",
component:MidSectionThemeFive,
argTypes:{
mainText:{control:"text"},
mainHead:{control:"text"},
mainPara:{control:"text"},
button:{control:"text"},
img:{control:"text"},
secondSubHead:{control:"text"},
secondSubHead:{control:"text"},
countItems:{control:"array"},
}
}

export const midThemeFive=args=> <MidSectionThemeFive {...args} />

midThemeFive.args={
mainText:"About Conference",
mainHead:"WELCOME TO THE PROJECT MANAGEMENT",
mainPara:"The Project Management is a platform to learn expert techniques for building successful project teams, creating efficient plans and implementing effective tracking measures to ensure your projects come in on deadline and on budget. In one fast-paced, well-designed day, we’ll cover all the essential elements of project management.",
button:"Interested",
img:"https://i.ibb.co/dBzsTZP/Untitled-design.png",
secondHead:"CONFERENCE DATE",
secondSubHead:"COUNT EVERY SECOND UNTIL THE EVENT",
countItems:[
{
time:"00",
duration:"MONTHS"
},
{
time:"00",
duration:"DAYS"
},
{
time:"00",
duration:"HOURS"
},
{
time:"00",
duration:"MINUTES"
},

]
}
72 changes: 72 additions & 0 deletions src/components/MidSectionComponentThemeFive/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import React from 'react'
import PropTypes from "prop-types"
import "./style.sass"
import { faArrowRight} from '@fortawesome/free-solid-svg-icons'
import { Col, Container, Row } from 'react-bootstrap'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'



export const MidSectionThemeFive = ({mainText,mainHead,mainPara,button,img,secondHead,secondSubHead,countItems}) => {
return (
<div className='midSectionWrapper'>
<Container className='midMainSection'>
<Row>
<Col className='mainLeftContainer'>

<p className='mainText'>{mainText}</p>
<h1 className='mainHead'>{mainHead}</h1>
<p className='mainPara'>{mainPara}</p>
<button className='mainButton'>{button} &nbsp; <FontAwesomeIcon icon={faArrowRight} /> </button>

</Col>
<Col className='mainRightContainer'>
<img src={img} height="400px" width="425px" alt="" />
</Col>
</Row>
</Container>

<Container className='midSecondSec'>


<Row>
<Col className='midSecHead'>
<p className='conferenceP'>{secondHead}</p>
<h3 className='conferenceHead'>{secondSubHead}</h3>
</Col>

<Col className='midSecCountdown'>
<Container className='countDownContainer'>
<div className='countDownDiv'>
<span className='countDown'>{countItems[0].time}</span>
<span className='duration'>{countItems[0].duration}</span>
</div>
<div className='countDownDiv'>
<span className='countDown'>{countItems[1].time}</span>
<span className='duration'>{countItems[1].duration}</span>
</div>
<div className='countDownDiv '>
<span className='countDown'>{countItems[2].time}</span>
<span className='duration'>{countItems[2].duration}</span>
</div>
<div className='countDownDiv'>
<span className='countDown'>{countItems[3].time}</span>
<span className='duration'>{countItems[3].duration}</span>
</div>
</Container>
</Col>
</Row>
</Container>
</div>
)
}

MidSectionThemeFive.propTypes={
mainText:PropTypes.string,
mainHead:PropTypes.string,
mainPara:PropTypes.string,
button:PropTypes.string,
img:PropTypes.string,
secondHead:PropTypes.string,
secondSubHead:PropTypes.string,
}
Loading