diff --git a/cookiecutter.json b/cookiecutter.json index 5a61c26..2a236aa 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -9,11 +9,6 @@ "version": "1.0", "build": "1", "python_version": "3.X.0", - "style_framework": [ - "Shoelace v2.3", - "Bootstrap v4.6", - "None" - ], "_copy_without_render": [ ".gitignore", "*.png" diff --git a/{{ cookiecutter.format }}/briefcase.toml b/{{ cookiecutter.format }}/briefcase.toml index 75b73c2..9c600fd 100644 --- a/{{ cookiecutter.format }}/briefcase.toml +++ b/{{ cookiecutter.format }}/briefcase.toml @@ -4,3 +4,5 @@ app_path = "app" app_requirements_path = "requirements.txt" icon.32 = "www/static/logo-32.png" + +splash = "www/static/splash.png" diff --git a/{{ cookiecutter.format }}/www/index.html b/{{ cookiecutter.format }}/www/index.html index 7b5048b..5e4e1e7 100644 --- a/{{ cookiecutter.format }}/www/index.html +++ b/{{ cookiecutter.format }}/www/index.html @@ -5,37 +5,21 @@ {{ cookiecutter.formal_name }} - + -{% if cookiecutter.style_framework == "Bootstrap v4.6" %} - -{% elif cookiecutter.style_framework == "Shoelace v2.3" %} - - -{% endif %} - + + + + -{% if cookiecutter.style_framework == "Bootstrap v4.6" %} - - -{% endif %} - + - import runpy - result = runpy.run_module("{{ cookiecutter.module_name }}", run_name="__main__", alter_sys=True) +#####@ bootstrap:start @##### +#####@ bootstrap:end @##### diff --git a/{{ cookiecutter.format }}/www/static/css/briefcase.css b/{{ cookiecutter.format }}/www/static/css/briefcase.css index 57dbdc5..d4f317b 100644 --- a/{{ cookiecutter.format }}/www/static/css/briefcase.css +++ b/{{ cookiecutter.format }}/www/static/css/briefcase.css @@ -1,19 +1,22 @@ -/* Unset the overly generic pyscript .label style */ -#app-placeholder .label { - margin-top: inherit; - color: inherit; - text-align: inherit; - width: inherit; - display: inherit; - color: inherit; - font-size: inherit; - margin-top: inherit; +/* Hide the loading text */ +#pyscript-loading-label, #pyscript-operation-details { + display: none; +} + +.py-pop-up::before { + content: url('../splash.png'); +} +.py-pop-up .spinner::after { + top: inherit; + margin-top: 2em; } /******************************************************************* - * WARNING: Do not remove or modify this comment block, or add any - * content below this block. Briefcase will add content here during - * the build step. - ******************* Wheel contributed styles **********************/ + * WARNING: Do not remove or modify anything between the CSS:start + * and CSS:end markers; this content is contributed by wheels, and + * is generated during the build step. + *******************************************************************/ +/*****@ CSS:start @*****/ +/*****@ CSS:end @*****/ diff --git a/{{ cookiecutter.format }}/www/static/splash.png b/{{ cookiecutter.format }}/www/static/splash.png new file mode 100644 index 0000000..3d692bc Binary files /dev/null and b/{{ cookiecutter.format }}/www/static/splash.png differ