feat: improve layout of Stats page
This commit is contained in:
@@ -54,6 +54,17 @@ const StatPage = () => {
|
|||||||
if (error) return <p className="p-6 text-red-500">{error}</p>;
|
if (error) return <p className="p-6 text-red-500">{error}</p>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
display: "grid",
|
||||||
|
gridTemplateColumns: "2fr 1fr",
|
||||||
|
gap: 24,
|
||||||
|
maxWidth: 1100,
|
||||||
|
margin: "0 auto",
|
||||||
|
width: "100%"
|
||||||
|
}}
|
||||||
|
>
|
||||||
<div>
|
<div>
|
||||||
<h2>Posts per Day</h2>
|
<h2>Posts per Day</h2>
|
||||||
|
|
||||||
@@ -70,7 +81,9 @@ const StatPage = () => {
|
|||||||
/>
|
/>
|
||||||
</LineChart>
|
</LineChart>
|
||||||
</ResponsiveContainer>
|
</ResponsiveContainer>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
<h2>Word Cloud</h2>
|
<h2>Word Cloud</h2>
|
||||||
<ReactWordcloud
|
<ReactWordcloud
|
||||||
words={wordFrequencyData}
|
words={wordFrequencyData}
|
||||||
@@ -81,10 +94,13 @@ const StatPage = () => {
|
|||||||
enableTooltip: true,
|
enableTooltip: true,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style={{ width: "100%", height: 320}}>
|
||||||
<h2>Heatmap</h2>
|
<h2>Heatmap</h2>
|
||||||
<ActivityHeatmap data={heatmapData} />
|
<ActivityHeatmap data={heatmapData} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user