-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChartTemplate.tsx
156 lines (155 loc) · 3.39 KB
/
ChartTemplate.tsx
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
export const ChartTemplate = ({
data,
title,
}: {
data: string | undefined;
title: string;
props?: {
height: number;
width: number;
};
}) => {
const date = new Date();
const year = new Intl.DateTimeFormat("en", { year: "numeric" }).format(date);
const month = new Intl.DateTimeFormat("en", { month: "short" }).format(date);
const day = new Intl.DateTimeFormat("en", { day: "2-digit" }).format(date);
return (
<div
style={{
display: "flex",
flexDirection: "column",
backgroundColor: "white",
paddingTop: "24px",
border: "1px solid #cecdd6",
}}
>
<div
style={{
display: "flex",
flexDirection: "column",
paddingLeft: "24px",
paddingRight: "24px",
paddingBottom: "16px",
borderBottom: "1px solid #cecdd6",
}}
>
<h1
style={{
fontSize: "16px",
fontWeight: "500",
lineHeight: "4px",
}}
>
{title}
</h1>
<p
style={{
fontSize: "14px",
lineHeight: "4px",
fontWeight: "400",
marginTop: "8px",
display: "flex",
gap: "4px",
}}
>
<span
style={{
color: "#6c6a83",
}}
>
from
</span>
Batadraba Morigaon Part, Bhurbandha, Dolongghat morigaon Part, Kapili,
Laharighat, Mayong, Moirabari
</p>
<p
style={{
fontSize: "14px",
lineHeight: "4px",
fontWeight: "400",
marginTop: "8px",
display: "flex",
gap: "4px",
}}
>
<span
style={{
color: "#6c6a83",
}}
>
in
</span>
FY 2023-24
</p>
</div>
<img
src={data}
width={844}
alt="chart"
style={{
width: "100%",
objectFit: "contain",
}}
/>
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
gap: "8px",
marginTop: "16px",
paddingLeft: "24px",
paddingRight: "24px",
borderTop: "1px solid #cecdd6",
}}
>
<p
style={{
fontSize: "14px",
lineHeight: "20px",
fontWeight: "400",
marginTop: "8px",
display: "flex",
gap: "4px",
}}
>
<span
style={{
color: "#6c6a83",
}}
>
accessed on
</span>
{`${day} ${month}, ${year}`}
</p>
<div
style={{
width: "1px",
height: "50%",
backgroundColor: "#cecdd6",
marginBottom: "8px",
}}
/>
<p
style={{
fontSize: "14px",
lineHeight: "20px",
fontWeight: "400",
marginTop: "8px",
display: "flex",
gap: "4px",
}}
>
<span
style={{
color: "#6c6a83",
}}
>
last updated on
</span>
29 December, 2023
</p>
</div>
</div>
);
};