1+ <!DOCTYPE html>
2+ <html lang =" en" >
3+ <head >
4+ <meta charset =" UTF-8" >
5+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" >
6+ <title >marimo WebAssembly + GitHub Pages Template</title >
7+ <!-- Include Tailwind CSS via CDN -->
8+ <script src =" https://cdn.tailwindcss.com" ></script >
9+ </head >
10+ <body class =" font-sans text-gray-800 bg-white p-5" >
11+ <div class =" max-w-4xl mx-auto" >
12+ <!-- Header -->
13+ <header class =" bg-gray-100 p-6 text-center rounded-lg mb-6" >
14+ <img src =" https://raw.githubusercontent.com/marimo-team/marimo/main/docs/_static/marimo-logotype-thick.svg" alt =" marimo Logo" class =" w-20 h-auto mx-auto mb-3" >
15+ <h1 class =" text-2xl font-bold mb-2" >marimo WebAssembly + GitHub Pages Template</h1 >
16+ <p class =" text-sm" >Interactive Python notebooks exported to WebAssembly and deployed to GitHub Pages</p >
17+ </header >
18+
19+ <main >
20+ {% if notebooks %}
21+ <h2 class =" text-xl font-bold text-center my-4" >Notebooks</h2 >
22+ <p class =" text-center mb-4" >Interactive notebooks in edit mode - you can modify and experiment with the code</p >
23+ <div class =" grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 mb-8" >
24+ {% for notebook in notebooks %}
25+ <!-- {{ notebook.display_name }} Notebook -->
26+ <div class =" bg-gray-50 border border-gray-200 rounded-lg overflow-hidden" >
27+ <div class =" bg-gray-200 p-3 font-semibold" >{{ notebook.display_name }}</div >
28+ <div class =" p-4" >
29+ <a href =" {{ notebook.html_path }}" class =" inline-block bg-blue-500 hover:bg-blue-600 text-white py-1 px-3 rounded transition-colors" >Open Notebook</a >
30+ </div >
31+ </div >
32+ {% endfor %}
33+ </div >
34+ {% endif %}
35+
36+ {% if apps %}
37+ <h2 class =" text-xl font-bold text-center my-4" >Apps</h2 >
38+ <p class =" text-center mb-4" >Interactive applications in run mode - code is hidden for a clean user interface</p >
39+ <div class =" grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4" >
40+ {% for app in apps %}
41+ <!-- {{ app.display_name }} App -->
42+ <div class =" bg-gray-50 border border-gray-200 rounded-lg overflow-hidden" >
43+ <div class =" bg-gray-100 p-3 font-semibold" >{{ app.display_name }}</div >
44+ <div class =" p-4" >
45+ <a href =" {{ app.html_path }}" class =" inline-block bg-amber-500 hover:bg-amber-600 text-white py-1 px-3 rounded transition-colors" >Open App</a >
46+ </div >
47+ </div >
48+ {% endfor %}
49+ </div >
50+ {% endif %}
51+ </main >
52+
53+ <footer class =" mt-10 pt-6 border-t border-gray-200 text-center text-sm text-gray-600" >
54+ <p class =" mb-2" >Built with <a href =" https://marimo.io" target =" _blank" class =" text-blue-500 hover:underline" >marimo</a > - Interactive Python notebooks</p >
55+ </footer >
56+ </div >
57+ </body >
58+ </html >
0 commit comments