Tech demo: charts, code, and callouts
Welcome to the Tech Demo
This post serves as a living testbed for our blog’s features. We want to ensure that writing technical content is seamless and beautiful, especially on mobile.
1. Icons and styling
We’ve integrated Lucide React icons to bring life to our UI.
We use a reusable React component IconBlock to maintain consistency and ease of use.
Inline icons
You can also use icons inline with text. For example, CPU Usage is high, or verify the Network Status.
Icon palette
2. Callouts
We use callouts to highlight important information.
Did you know?
This is an info callout. It’s great for general notes or side comments that add context without breaking the flow.
Pro tip
Use tip callouts for best practices or shortcuts.
# You can even put code inside!
pnpm install super-cool-packageWatch out
Warning callouts are for things that require caution, like breaking changes or deprecated features.
Critical error
Use error callouts for things that are strictly forbidden or dangerous operations.
3. Code snippets
We want our code to look good. Astro uses Shiki for syntax highlighting by default.
Kotlin (JS target)
Here’s a snippet of Kotlin code, as requested for “runnable” future-proofing.
fun main() {
val message = "All Bugs Are Fixed"
println("Status: $message")
val bugs = listOf("NPE", "Infinite Loop", "Race Condition")
bugs.filter { it.length > 3 }
.forEach { bug ->
fix(bug)
}
}
fun fix(bug: String) {
console.log("Fixed $bug!")
}
TypeScript / Astro
And here is how we might fetch data in this very blog:
export async function getStaticPaths() {
const posts = await getCollection('blog');
return posts.map(post => ({
params: { slug: post.slug },
props: { post },
}));
}
4. Data visualization
We integrate Apache ECharts for rich, interactive visualizations.
Monthly bug fixes
A simple line chart showing our velocity.
Project distribution
A donut chart example.
5. Interactive Maps
We support config-driven maps using Pigeon Maps.
6. Mermaid diagrams
For flowcharts, sequence diagrams, and more, we use Mermaid.
7. Mathematical formulas
We support LaTeX rendering for mathematical expressions, powered by our custom <Latex /> component.
Inline equations
You can write inline equations like or directly in the text.
Block equations
For more complex equations, use block syntax:
Another example, the Gaussian Integral:
8. Data Tables
We have a robust table component that supports sorting. It uses TanStack Table under the hood.
ID | Name | Role | Status |
|---|---|---|---|
| 1 | John Doe | Admin | Active |
| 2 | Jane Smith | User | Inactive |
| 3 | Bob Johnson | Editor | Active |
| 4 | Alice Williams | User | Active |
Conclusion
This page demonstrates that we have a robust set of tools for authoring technical content:
- Typography is clean and readable.
- Code blocks are syntax highlighted.
- Charts are interactive and responsive.
- Diagrams are easy to write in Markdown.
- Callouts draw attention where needed.
- Icons provide visual cues and enhanced aesthetics.
- Maps allow easy geolocation visualization.
- Math is fully supported.
- Tables are sortable and styleable.
Everything is ready for the “Solo Party”!
