diff --git a/README.md b/README.md index 67741fa..317d6b7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# generate_html.py +# Static Gallery Website Builder (SGWB) -`generate_html.py` is a Python script designed to generate static HTML files for hosting images on a web server. It traverses a specified root directory, creates thumbnail previews for images, and generates corresponding HTML files to display the images and subfolders in a user-friendly format. +`static_gallery_website_builder.py` is a Python script designed to generate static HTML files for hosting images on a web server. It traverses a specified root directory, creates thumbnail previews for images, and generates corresponding HTML files to display the images and subfolders in a user-friendly format. ## Features diff --git a/files/global.css b/files/global.css index 020efa3..260a6ac 100644 --- a/files/global.css +++ b/files/global.css @@ -130,11 +130,20 @@ figure { display: block; } +.attribution { + position: absolute; + bottom: 0; + right: 0; + font-size: xx-small; + padding: 6px; +} + .license { position: fixed; bottom: 0; width: 100%; - padding: 12px; + padding: 6px; + min-height: calc(6.75pt + 12px); } .navbar { @@ -163,4 +172,4 @@ figure { text-align: center; padding: 14px 16px; text-decoration: none; -} +} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ddd9eb0 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +Jinja2==3.1.4 +numpy==2.0.0 +pillow==10.4.0 +rich-argparse==1.5.2 +tqdm==4.66.4 diff --git a/generate_html.py b/static_gallery_website_builder.py similarity index 100% rename from generate_html.py rename to static_gallery_website_builder.py diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 4c34c17..1e5506d 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -70,8 +70,15 @@ {%- endfor %} {%- endif %} + Made with Static Gallery Website Builder by Flo Greistorfer. {%- endif %} + {%- else %} +
+ Made with Static Gallery Website Builder by Flo Greistorfer. +
{%- endif %}