From 0fcf8795dc92567f8853ffa6b313cd2b3a42547f Mon Sep 17 00:00:00 2001 From: TheJoeCoder <joe@radialbog9.uk> Date: Sun, 7 Jul 2024 10:35:12 +0100 Subject: [PATCH] Start work on python script --- .gitignore | 3 +++ .idea/codeStyles/codeStyleConfig.xml | 5 +++++ .idea/misc.xml | 2 +- .idea/personal-website.iml | 2 +- build_site.py | 3 ++- {public => static}/css/style.css | 0 {public => static}/img/pfp.png | Bin {public => static}/img/project/pizzapalace.png | Bin {public => static}/img/project/placeholder.png | Bin {public => static}/js/background_anim.js | 0 templates/projects/001-pizzapalace.json | 7 +++++++ 11 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .idea/codeStyles/codeStyleConfig.xml rename {public => static}/css/style.css (100%) rename {public => static}/img/pfp.png (100%) rename {public => static}/img/project/pizzapalace.png (100%) rename {public => static}/img/project/placeholder.png (100%) rename {public => static}/js/background_anim.js (100%) create mode 100644 templates/projects/001-pizzapalace.json diff --git a/.gitignore b/.gitignore index d03840d..dcf1eee 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,6 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser + +# Built by python script +public/ \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ +<component name="ProjectCodeStyleConfiguration"> + <state> + <option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" /> + </state> +</component> \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index db8786c..137964f 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,5 +3,5 @@ <component name="Black"> <option name="sdkName" value="Python 3.12" /> </component> - <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12" project-jdk-type="Python SDK" /> + <component name="ProjectRootManager" version="2" project-jdk-name="Remote Python 3.12.4 Docker (python:3)" project-jdk-type="Python SDK" /> </project> \ No newline at end of file diff --git a/.idea/personal-website.iml b/.idea/personal-website.iml index 7be28aa..89352b8 100644 --- a/.idea/personal-website.iml +++ b/.idea/personal-website.iml @@ -2,7 +2,7 @@ <module type="PYTHON_MODULE" version="4"> <component name="NewModuleRootManager"> <content url="file://$MODULE_DIR$" /> - <orderEntry type="inheritedJdk" /> + <orderEntry type="jdk" jdkName="Remote Python 3.12.4 Docker (python:3)" jdkType="Python SDK" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="bootstrap" level="application" /> <orderEntry type="library" name="bootstrap-icons" level="application" /> diff --git a/build_site.py b/build_site.py index 88d9cf3..264514f 100644 --- a/build_site.py +++ b/build_site.py @@ -1,2 +1,3 @@ import shutil -shutil.copyfile("templates/index.html", "public/index.html") \ No newline at end of file +shutil.copyfile("templates/index.html", "public/index.html") +shutil.copy("static/*", "public/") diff --git a/public/css/style.css b/static/css/style.css similarity index 100% rename from public/css/style.css rename to static/css/style.css diff --git a/public/img/pfp.png b/static/img/pfp.png similarity index 100% rename from public/img/pfp.png rename to static/img/pfp.png diff --git a/public/img/project/pizzapalace.png b/static/img/project/pizzapalace.png similarity index 100% rename from public/img/project/pizzapalace.png rename to static/img/project/pizzapalace.png diff --git a/public/img/project/placeholder.png b/static/img/project/placeholder.png similarity index 100% rename from public/img/project/placeholder.png rename to static/img/project/placeholder.png diff --git a/public/js/background_anim.js b/static/js/background_anim.js similarity index 100% rename from public/js/background_anim.js rename to static/js/background_anim.js diff --git a/templates/projects/001-pizzapalace.json b/templates/projects/001-pizzapalace.json new file mode 100644 index 0000000..1841fa7 --- /dev/null +++ b/templates/projects/001-pizzapalace.json @@ -0,0 +1,7 @@ +{ + "name": "Pizza Palace", + "description": "I was tasked with a simple challenge and I overengineered it. Complete with admin UI and database.", + "badge_text": "Finished", + "badge_class": "text-bg-success", + "image": "img/project/pizzapalace.png" +} \ No newline at end of file -- GitLab