diff --git a/cookiecutter.json b/cookiecutter.json index 5a61c26..24a9c92 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -20,5 +20,6 @@ ], "_extensions": [ "briefcase.integrations.cookiecutter.PythonVersionExtension" - ] + ], + "_jinja2_env_vars": {"lstrip_blocks": true, "trim_blocks": true} } diff --git a/{{ cookiecutter.format }}/briefcase.toml b/{{ cookiecutter.format }}/briefcase.toml index 75b73c2..9e0aa00 100644 --- a/{{ cookiecutter.format }}/briefcase.toml +++ b/{{ cookiecutter.format }}/briefcase.toml @@ -1,4 +1,7 @@ # Generated using Python {{ cookiecutter.python_version }} +[briefcase] +target_version = "0.3.21" + [paths] app_path = "app" app_requirements_path = "requirements.txt" diff --git a/{{ cookiecutter.format }}/www/index.html b/{{ cookiecutter.format }}/www/index.html index 7b5048b..67397f7 100644 --- a/{{ cookiecutter.format }}/www/index.html +++ b/{{ cookiecutter.format }}/www/index.html @@ -7,8 +7,16 @@ - - + + + + {% if cookiecutter.style_framework == "Bootstrap v4.6" %} +
+ Splash screen logo +

Loading...

+
{% if cookiecutter.style_framework == "Bootstrap v4.6" %} {% endif %} - - + diff --git a/{{ cookiecutter.format }}/www/pyscript.toml b/{{ cookiecutter.format }}/www/pyscript.toml new file mode 100644 index 0000000..4e7f1f7 --- /dev/null +++ b/{{ cookiecutter.format }}/www/pyscript.toml @@ -0,0 +1 @@ +plugins = ["!error"] diff --git a/{{ cookiecutter.format }}/www/static/css/briefcase.css b/{{ cookiecutter.format }}/www/static/css/briefcase.css index 57dbdc5..0438a82 100644 --- a/{{ cookiecutter.format }}/www/static/css/briefcase.css +++ b/{{ cookiecutter.format }}/www/static/css/briefcase.css @@ -1,15 +1,41 @@ - -/* 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; - +/* Splash screen */ +div#briefcase-splash { + background-color:#999; + position:fixed; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + width:100%; + height:100%; + top:0px; + left:0px; + z-index:1000; +} +div#briefcase-splash p { + text-align: center; + color: white; + font-size: large; + font-family: sans-serif; +} +div#briefcase-splash.hidden { + visibility: hidden; + opacity: 0; + transition: visibility 0s 0.2s, opacity 0.2s linear; +} +div#briefcase-splash img { + animation: throbber 1.5s infinite; +} +@keyframes throbber { + 0% { + transform: scale(1.2); + } + 70% { + transform: scale(1.0); + } + 100% { + transform: scale(1.2); + } } /*******************************************************************