Skip to content

Commit

Permalink
task(devx): Add image zoom and light/dark mode for tokenomics images
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-tortora committed Nov 12, 2024
1 parent 67f290a commit 4c42743
Show file tree
Hide file tree
Showing 7 changed files with 425 additions and 456 deletions.
10 changes: 8 additions & 2 deletions docs/content/about-iota/tokenomics/tokenomics.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: IOTA Tokenomics
---

import Quiz from '@site/src/components/Quiz';
import {questions} from '../../../site/static/json/about-iota/tokenomics/tokenomics.json';
import ThemedImage from '@theme/ThemedImage';

The collective ideation that the term tokenomics encompasses includes a wide range of concepts that define the science and behavior of blockchain economies. In basic terms, tokenomics are the financial foundation of blockchains. Much the same way a building with a poor foundation is doomed to fail, a blockchain without a well-researched, extensively planned, and painstakingly implemented token economy eventually crumbles.

Expand Down Expand Up @@ -32,7 +32,13 @@ The IOTA economy is composed of four core components:

The following flowchart presents the tokenomic flow of IOTA at a high level. Referring back to this chart after you learn concepts in this section should provide additional clarity.

![IOTA Tokenomics flow](/img/about-iota/tokenomics/IOTA-tokenomics-fllow.svg "Flowchart showing the tokenomics structure.")
<ThemedImage
alt='IOTA Tokenomics flow'
sources={{
light: '/img/about-iota/tokenomics/IOTA-tokenomics-flow.svg',
dark: '/img/about-iota/tokenomics/dark/IOTA-tokenomics-flow.svg',
}}
/>

## Quizzes
<Quiz questions={questions} />
9 changes: 9 additions & 0 deletions docs/site/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const config = {
intentionallyNotExported: [],
},
],
'plugin-image-zoom'
],
presets: [
[
Expand Down Expand Up @@ -272,6 +273,14 @@ const config = {
darkTheme: themes.vsDark,
additionalLanguages: ["rust", "typescript", "solidity"],
},
imageZoom: {
selector: '.markdown img',
// Optional medium-zoom options
// see: https://www.npmjs.com/package/medium-zoom#options
options: {
background: 'rgba(0, 0, 0, 0.6)',
},
}
}),
};

Expand Down
1 change: 1 addition & 0 deletions docs/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"hast-util-is-element": "^1.1.0",
"lodash": "^4.17.21",
"markdown-to-jsx": "^7.4.7",
"plugin-image-zoom": "github:flexanalytics/plugin-image-zoom",
"postcss": "^8.4.31",
"prism-react-renderer": "^2.3.1",
"prismjs": "^1.29.0",
Expand Down

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
849 changes: 399 additions & 450 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 4c42743

Please sign in to comment.