Skip to content

Commit

Permalink
Adds screenshots to tools page. (#280)
Browse files Browse the repository at this point in the history
* Adds screenshots to tools page.

* Adds dark-mode images.

* Creates light-dark shortcode for images.

* Uses new light-dark shortcode for @media images.

* Authorized commit.

---------

Co-authored-by: johnnymatthews <>
  • Loading branch information
johnnymatthews authored Dec 17, 2024
1 parent 31003a5 commit 5b6e365
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/reference/images/entropy-status-page.png
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.
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.
Binary file added content/reference/images/uptime-entropy-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions content/reference/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,26 @@ lead: "A list of useful tools, workflows, and projects that can help developers

## Polkadot Chain Explorer

{{< image src="../images/polkadot-explorer-page.png" >}}

<!--[![Screenshot of the Polkadot Chain Explorer page.](./images/polkadot-explorer-page.png)](https://polkadot.js.org)-->

[polkadot.js.org/apps](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestnet.entropy.xyz#/explorer)

A one-size-fits-all blockchain explorer for Substrate-based chains, built by the [Polkadot.js team](https://polkadot.js.org/).

## Testnet Status

{{< image src="../images/entropy-status-page.png" >}}

[status.entropy.xyz](https://status.entropy.xyz/)

A constantly updated list of registered accounts, programs, and validators.

## Uptime

{{< image src="../images/uptime-entropy-page.png" >}}

[uptime.entropy.xyz](https://entropydotxyz.statuspage.io/)

The home of Entropy's real-time and historical data on system performance.
16 changes: 16 additions & 0 deletions themes/hextra/layouts/shortcodes/image.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ $originalSrc := .Get "src" }}
{{ $fileExt := path.Ext $originalSrc }}
{{ $fileName := strings.TrimSuffix $fileExt $originalSrc }}

{{ $darkSrc := printf "%s-dark%s" $fileName $fileExt }}

<picture>
<source srcset="{{ $darkSrc }}" media="(prefers-color-scheme: dark)">
<img
src="{{ $originalSrc }}"
alt="{{ .Get "alt" | default "" }}"
{{ with .Get "class" }}class="{{ . }}"{{ end }}
{{ with .Get "width" }}width="{{ . }}"{{ end }}
{{ with .Get "height" }}height="{{ . }}"{{ end }}
>
</picture>

0 comments on commit 5b6e365

Please sign in to comment.