-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchessMoveNotation_SingleComponent.js
64 lines (62 loc) · 1.7 KB
/
chessMoveNotation_SingleComponent.js
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
import React from "react";
import { Accordion, Card, Row, Col } from "react-bootstrap";
import { HandIndex } from "react-bootstrap-icons";
const ChessMoveNotationSingleComp = (props) => {
let {
h1bgColor,
h1content,
cardBorderColor,
accColor,
accBgcolor,
accTitle,
handiconColor,
accBody,
} = props;
return (
<>
<Row key={h1bgColor} style={{ padding: "5%", textAlign: "center" }}>
<Col className="col-2 mx-5">
<span>
<h1
style={{
fontWeight: "600",
color: "white",
backgroundColor: h1bgColor,
borderRadius: "20%",
padding: "2%",
}}
>
{h1content}
</h1>
</span>
</Col>
<Col>
<Accordion defaultActiveKey="0">
<Card style={{ border: `1px solid ${cardBorderColor} ` }}>
<Accordion.Toggle
as={Card.Header}
eventKey="1"
style={{
color: accColor,
fontWeight: "700",
fontFamily: "Special Elite",
backgroundColor: accBgcolor,
}}
>
{accTitle}
<span className="mx-2">
{" "}
<HandIndex color={handiconColor} size={25} />
</span>
</Accordion.Toggle>
<Accordion.Collapse eventKey="1">
<Card.Body>{accBody}</Card.Body>
</Accordion.Collapse>
</Card>
</Accordion>
</Col>
</Row>
</>
);
};
export default ChessMoveNotationSingleComp;