Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions visual-kpi-docs/docs/supporting-pages/icons-map.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
id: mapped-icons
title: Mapped Icons
slug: /mapped-icons
description: 'On this page we should list all existing video training.'
tags: []
---

import IconsMap from '@site/src/components/SvgFont/IconsMap';

<IconsMap />
8 changes: 6 additions & 2 deletions visual-kpi-docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ const sidebars = {
defaultStyle: true,
className: 'sidebar_title',
},
{
type: 'doc',
id: 'supporting-pages/mapped-icons',
label: 'Mapped Icons',
},
{
type: 'doc',
id: 'supporting-pages/faq',
Expand All @@ -337,8 +342,7 @@ const sidebars = {
type: 'doc',
id: 'supporting-pages/glossary',
label: 'Glossary',
},

},
],
};

Expand Down
24 changes: 24 additions & 0 deletions visual-kpi-docs/src/components/SvgFont/IconsMap.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import selection from '@site/static/font/selection.json';
import SvgFont from '@site/src/components/SvgFont/SvgFont';

export default function IconsMap() {
const gridContainerStyle = {
display: 'grid',
gridTemplateColumns: 'repeat(auto-fill, minmax(200px, 1fr))',
gap: '10px',
};
console.log(selection.icons[8])

return (
<div style={gridContainerStyle}>
{
selection.icons.map((icon, index) => (
<div>
<SvgFont data={icon} />
<span> {index} - {icon.properties.name}</span>
</div>
))
}
</div>
)
}
2 changes: 1 addition & 1 deletion visual-kpi-docs/src/components/SvgFont/SvgFont.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function SvgFont({ data, position, size }) {
<span className="svg_container">
<svg className="hidesvg" version="1.1" xmlns="http://www.w3.org/1999/xlink">
<defs>
<symbol id={data.properties.name} width={size} viewBox={`0 0 ${position}`}>
<symbol id={data.properties.name} width={size} viewBox={`0 0 ${position || "1024 1024"}`}>
<title>test</title>
<path className="path1" d={path}></path>
</symbol>
Expand Down
12 changes: 12 additions & 0 deletions visual-kpi-docs/static/font/index.html

Large diffs are not rendered by default.