File size: 3,329 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { Col, Container, Nav, Row, Tab } from 'react-bootstrap';
import React from 'react';
import PricingCard from './PricingCard';
import './Pricing.css';
import { PricingData } from '../../PricingData';
import sPic1 from '../../../Assets/s1.png';
import sPic2 from '../../../Assets/s2.png';
import sPic3 from '../../../Assets/s3.png';
import sPic4 from '../../../Assets/s4.png';
import sPic5 from '../../../Assets/s5.png';
import sPic6 from '../../../Assets/s6.png';
import Spinner from '../../Shared/Spinner/Spinner';
const Pricing = () => {
    return (
        <section className="pricing">
            <h4 className="miniTitle text-center">Pricing</h4>
            <div className="text-center">
                <h2 className="sectionTitle">CHOOSE PLAN</h2>
            </div>
            <Container>
                <Tab.Container defaultActiveKey="1"> 
                    <Row>
                        <Col md={10} className="mx-auto">
                            <Nav className="pricingNav">
                                <Nav.Item className="priceLink1">
                                    <Nav.Link eventKey="1">
                                        <img src={`${sPic1}`} alt="" />
                                    </Nav.Link>
                                </Nav.Item>
                                <Nav.Item className="priceLink2">
                                    <Nav.Link eventKey="2">
                                        <img src={`${sPic2}`} alt="" />
                                    </Nav.Link>
                                </Nav.Item>
                                <Nav.Item className="priceLink3">
                                    <Nav.Link eventKey="3">
                                        <img src={`${sPic3}`} alt="" />
                                    </Nav.Link>
                                </Nav.Item>
                                <Nav.Item className="priceLink4">
                                    <Nav.Link eventKey="4">
                                        <img src={`${sPic4}`} alt="" />
                                    </Nav.Link>
                                </Nav.Item>
                                <Nav.Item className="priceLink5">
                                    <Nav.Link eventKey="5">
                                        <img src={`${sPic5}`} alt="" />
                                    </Nav.Link>
                                </Nav.Item>
                                <Nav.Item className="priceLink6">
                                    <Nav.Link eventKey="6">
                                        <img src={`${sPic6}`} alt="" />
                                    </Nav.Link>
                                </Nav.Item>
                            </Nav>
                       </Col>
                        <Tab.Content>
                        {
                            PricingData.length === 0 ?
                            <div className="spinner text-center mt-3"><Spinner/></div>:
                            PricingData.map((data, index) => <PricingCard id={index} data={data} key={index}/>)
                        }
                        </Tab.Content>
                    </Row>
                </Tab.Container>
            </Container>
        </section>
    );
};

export default Pricing;