This commit is contained in:
Felix Roos 2022-02-18 21:46:07 +01:00
parent 5d649a516f
commit da2c5c738b
3 changed files with 6 additions and 2 deletions

View file

@ -21,6 +21,7 @@ export default {
/* Enable an SPA Fallback in development: */ /* Enable an SPA Fallback in development: */
// {"match": "routes", "src": ".*", "dest": "/index.html"}, // {"match": "routes", "src": ".*", "dest": "/index.html"},
], ],
exclude: ['**/node_modules/**/*', '**/tutorial/**/*'],
optimize: { optimize: {
/* Example: Bundle your final build: */ /* Example: Bundle your final build: */
// "bundle": true, // "bundle": true,

View file

@ -96,6 +96,9 @@ function App() {
> >
🎲 random tune 🎲 random tune
</button> </button>
<button>
<a href="./tutorial">📚 tutorial</a>
</button>
</div> </div>
</header> </header>
<section className="grow flex flex-col text-gray-100"> <section className="grow flex flex-col text-gray-100">

View file

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import Tutorial from './tutorial.mdx'; import Tutorial from './tutorial.mdx';
import logo from '../logo.svg'; // import logo from '../logo.svg';
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <React.StrictMode>
@ -9,7 +9,7 @@ ReactDOM.render(
<header className="flex-none flex justify-center w-full h-16 px-2 items-center border-b border-gray-200 bg-white"> <header className="flex-none flex justify-center w-full h-16 px-2 items-center border-b border-gray-200 bg-white">
<div className="p-4 w-full max-w-3xl flex justify-between"> <div className="p-4 w-full max-w-3xl flex justify-between">
<div className="flex items-center space-x-2"> <div className="flex items-center space-x-2">
<img src={logo} className="Tidal-logo w-16 h-16" alt="logo" /> <img src={'https://tidalcycles.org/img/logo.svg'} className="Tidal-logo w-16 h-16" alt="logo" />
<h1 className="text-2xl">Strudel Tutorial</h1> <h1 className="text-2xl">Strudel Tutorial</h1>
</div> </div>
{!window.location.href.includes('localhost') && ( {!window.location.href.includes('localhost') && (