Skip to content

Commit

Permalink
[Issue scorelab#416] Add blogGrid component with responsive design
Browse files Browse the repository at this point in the history
  • Loading branch information
Sapnajha19 committed Mar 18, 2023
1 parent d40acf0 commit 9ab2a6b
Show file tree
Hide file tree
Showing 35 changed files with 19 additions and 1,289 deletions.
20 changes: 10 additions & 10 deletions src/components/About/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import React from "react"
import PropTypes from "prop-types"
import "./style.sass"
import { Container, Row, Col } from 'react-bootstrap'
import {Container, Row, Col} from 'react-bootstrap'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';

export const About = ({ header, mainText, subText, buttonText, buttonLink, image, backgroundColor }) => {
export const About = ({header, mainText, subText, buttonText, buttonLink, image, backgroundColor}) => {
return (
<div className="about-component">
{header ? <div className="header-component">
{header ? <div className="header-component">
<h2><FontAwesomeIcon className="icon" icon={faInfoCircle} /> {header}</h2>
</div> : null}
<div className="about-us" style={{ backgroundColor: backgroundColor }}>
<Container>
</div> : null}
<div className="about-us" style={{backgroundColor: backgroundColor}}>
<Container>
<Row>
<Col md={6} className="left-col">
<div className="about-content-section">
Expand All @@ -22,16 +22,16 @@ export const About = ({ header, mainText, subText, buttonText, buttonLink, image
</h1> : null}
<p>{subText}</p>
{buttonText ? <a href={buttonLink} className="button">
{buttonText}
{buttonText}
</a> : null}
</div>
</Col>
<Col md={6} className="right-col">
<img className="about-image" alt="About" src={image} />
<img className= "about-image" alt="About" src={image} />
</Col>
</Row>
</Container>
</div>
</Container>
</div>
</div>
)
}
Expand Down
16 changes: 8 additions & 8 deletions src/components/About/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
@media #{$xs-and-less}
align-items: center
text-align: center
display: flex
text-align: left
height: 100%
flex-direction: column
justify-content: center
align-items: flex-start
display: flex
text-align: left
height: 100%
flex-direction: column
justify-content: center
align-items: flex-start
p
font-size: 14px
line-height: 25px
Expand All @@ -44,9 +44,9 @@
.button:hover
color: #fff
text-decoration: none

.right-col
text-align: center
margin-top: 20px
.about-image
width: 80%
width: 80%
20 changes: 0 additions & 20 deletions src/components/CardThemeFourGrid/style.css

This file was deleted.

1 change: 0 additions & 1 deletion src/components/CardThemeFourGrid/style.css.map

This file was deleted.

96 changes: 0 additions & 96 deletions src/components/ContactUsThemeFive/style.css

This file was deleted.

1 change: 0 additions & 1 deletion src/components/ContactUsThemeFive/style.css.map

This file was deleted.

76 changes: 0 additions & 76 deletions src/components/ContactUsThemeFour/style.css

This file was deleted.

1 change: 0 additions & 1 deletion src/components/ContactUsThemeFour/style.css.map

This file was deleted.

41 changes: 0 additions & 41 deletions src/components/DetailCardGrid/style.css

This file was deleted.

1 change: 0 additions & 1 deletion src/components/DetailCardGrid/style.css.map

This file was deleted.

Loading

0 comments on commit 9ab2a6b

Please sign in to comment.