diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6dee976 --- /dev/null +++ b/.gitignore @@ -0,0 +1,149 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +.python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# macOS +.DS_Store +.AppleDouble +.LSOverride +._* +.Spotlight-V100 +.Trashes + +# IDEs +.idea/ +.vscode/ +*.swp +*.swo diff --git a/app/__pycache__/main.cpython-312.pyc b/app/__pycache__/main.cpython-312.pyc deleted file mode 100644 index 5446fad..0000000 Binary files a/app/__pycache__/main.cpython-312.pyc and /dev/null differ diff --git a/app/static/favicon_io/android-chrome-192x192.png b/app/static/favicon_io/android-chrome-192x192.png new file mode 100644 index 0000000..a2e8a50 Binary files /dev/null and b/app/static/favicon_io/android-chrome-192x192.png differ diff --git a/app/static/favicon_io/android-chrome-512x512.png b/app/static/favicon_io/android-chrome-512x512.png new file mode 100644 index 0000000..59be0b1 Binary files /dev/null and b/app/static/favicon_io/android-chrome-512x512.png differ diff --git a/app/static/favicon_io/apple-touch-icon.png b/app/static/favicon_io/apple-touch-icon.png new file mode 100644 index 0000000..f7ddf74 Binary files /dev/null and b/app/static/favicon_io/apple-touch-icon.png differ diff --git a/app/static/favicon_io/favicon-16x16.png b/app/static/favicon_io/favicon-16x16.png new file mode 100644 index 0000000..6e093be Binary files /dev/null and b/app/static/favicon_io/favicon-16x16.png differ diff --git a/app/static/favicon_io/favicon-32x32.png b/app/static/favicon_io/favicon-32x32.png new file mode 100644 index 0000000..2943ccb Binary files /dev/null and b/app/static/favicon_io/favicon-32x32.png differ diff --git a/app/static/favicon_io/favicon.ico b/app/static/favicon_io/favicon.ico new file mode 100644 index 0000000..6534d3c Binary files /dev/null and b/app/static/favicon_io/favicon.ico differ diff --git a/app/static/favicon_io/site.webmanifest b/app/static/favicon_io/site.webmanifest new file mode 100644 index 0000000..45dc8a2 --- /dev/null +++ b/app/static/favicon_io/site.webmanifest @@ -0,0 +1 @@ +{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} \ No newline at end of file diff --git a/app/static/js/favicon_animator.js b/app/static/js/favicon_animator.js new file mode 100644 index 0000000..8ab5bcf --- /dev/null +++ b/app/static/js/favicon_animator.js @@ -0,0 +1,49 @@ +document.addEventListener('DOMContentLoaded', () => { + // Find the existing favicon link or create one + let favicon = document.querySelector('link[rel="icon"]') || document.querySelector('link[rel="shortcut icon"]'); + + if (!favicon) { + console.warn('No favicon link found to animate.'); + return; + } + + const image = new Image(); + image.crossOrigin = "anonymous"; + image.src = favicon.href; + + image.onload = () => { + const canvas = document.createElement('canvas'); + const size = 32; // Standard favicon size + canvas.width = size; + canvas.height = size; + const ctx = canvas.getContext('2d'); + + let angle = 0; + + // Animation loop + setInterval(() => { + // Clear canvas + ctx.clearRect(0, 0, size, size); + + // Save context + ctx.save(); + + // Move to center, rotate, move back + ctx.translate(size / 2, size / 2); + ctx.rotate(angle * Math.PI / 180); + ctx.translate(-size / 2, -size / 2); + + // Draw image + ctx.drawImage(image, 0, 0, size, size); + + // Restore context + ctx.restore(); + + // Update favicon + favicon.href = canvas.toDataURL('image/png'); + + // Increment angle + angle = (angle + 10) % 360; + }, 100); // 100ms = 10fps + }; +}); diff --git a/app/templates/base.html b/app/templates/base.html index 43c3574..05aeae3 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -6,6 +6,10 @@ + + + + {% block title %}My FastAPI App{% endblock %} {% block css %} {% endblock %} @@ -49,6 +53,7 @@

© 2025 EKSTRAH Security Application

+ \ No newline at end of file