flexbox update

This commit is contained in:
2024-02-29 20:25:41 -05:00
parent e8a8c64e39
commit 18f95460a2
9 changed files with 165 additions and 16 deletions
+1 -1
View File
@@ -689,7 +689,7 @@ export type newsDataType = {
outletLogo: string;
};
export const newsData = [
export const newsData: newsDataType[] = [
{
"headline": "Tesla reports 0-60 under 1s available in latest Roadster",
"subtitle":
+34 -4
View File
@@ -1,9 +1,39 @@
import { PortfolioModule } from "@/components/modules/HomepageModules";
"use client";
export default function Page() {
import { ResponsiveTreeMap } from "@nivo/treemap";
import { heatmapData as data } from "../MockData/MockData";
export default function page() {
return (
<div>
<PortfolioModule />
<div className="flex h-96 w-[500px] rounded-md">
<div className="flex flex-col flex-grow bg-neutral-800 rounded-lg">
<div className="flex justify-between px-2 py-2 pb-0">
<div className="flex items-center text-lg px-2">Heatmap</div>
</div>
<div className="flex-grow w-full">
<ResponsiveTreeMap
data={data}
identity="name"
value="loc"
valueFormat=".02s"
tile="binary"
// margin={{ top: 10, right: 10, bottom: 10, left: 10 }}
labelSkipSize={30}
labelTextColor="black"
parentLabelPosition="left"
parentLabelTextColor={{
from: "color",
modifiers: [["darker", 2]],
}}
colors={{ scheme: "red_yellow_green" }}
borderColor={{
from: "color",
modifiers: [["brighter", 0.1]],
}}
motionConfig="wobbly"
/>
</div>
</div>
</div>
);
}