fix examples route

This commit is contained in:
Felix Roos 2023-01-03 23:32:37 +01:00
parent 8e5d02fd25
commit ba6c7b0901
2 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,11 @@
---
import * as tunes from '../../../src/repl/tunes.mjs';
import HeadCommon from '../../components/HeadCommon.astro';
---
<head>
<HeadCommon />
</head>
<body class="bg-slate-800">
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-2 p-2 select-none">
{
@ -10,7 +14,7 @@ import * as tunes from '../../../src/repl/tunes.mjs';
<div class="absolute w-full h-full flex justify-center items-center">
<span class="bg-slate-800 p-2 rounded-md text-white">{name}</span>
</div>
<img src={`/img/example-${name}.png`} />
<img src={`./img/example-${name}.png`} />
</a>
))
}

View File

@ -42,7 +42,7 @@ This interactive tutorial will guide you through the basics of Strudel.
To see and hear what Strudel can do, visit the [Strudel REPL](https://strudel.tidalcycles.org/) and click the Shuffle icon in the top menu bar.
You can get a feel for Strudel by browsing and editing these examples and clicking the Refresh icon to update.
You can also browse through the examples [here](/examples).
You can also browse through the examples [here](./examples).
Alternatively, you can get a taste of what Strudel can do by clicking play on this track: