diff --git a/documentation/src/pages/assets/index.tsx b/documentation/src/pages/assets/index.tsx new file mode 100644 index 00000000..7ca95d26 --- /dev/null +++ b/documentation/src/pages/assets/index.tsx @@ -0,0 +1,53 @@ +import React from "react"; +import Head from "@docusaurus/Head"; +import { BlogFooter } from "@site/src/refine-theme/blog-footer"; +import { CommonHeader } from "@site/src/refine-theme/common-header"; +import { CommonLayout } from "@site/src/refine-theme/common-layout"; +import clsx from "clsx"; + +const Assets: React.FC = () => { + const assets = [ + { name: "Logo Icon", svgUrl: "/icon/openpanel_logo.svg", downloadUrl: "/icon/openpanel_logo.svg" }, + { name: "White Logo Icon", svgUrl: "/icon/openpanel_white_logo.svg", downloadUrl: "/icon/openpanel_white_logo.svg" }, + // Amore here.. + ]; + + const handleCopySVGCode = async (svgUrl: string) => { + const response = await fetch(svgUrl); + const svgCode = await response.text(); + navigator.clipboard.writeText(svgCode).then( + () => console.log('SVG code copied to clipboard'), + (err) => console.error('Error copying SVG code: ', err) + ); + }; + + return ( + + + + +
+ + +
+

Brand Assets

+ +
+ {assets.map((asset, index) => ( +
+ {asset.name} +
+ Download + +
+
+ ))} +
+
+ +
+
+ ); +}; + +export default Assets;