Skip to content

Commit

Permalink
Upgrades and css alignment with main site
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarzh committed Jul 22, 2024
1 parent 2e7b9a7 commit 96ca354
Show file tree
Hide file tree
Showing 1,282 changed files with 456 additions and 91,146 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/python-app.yml

This file was deleted.

168 changes: 150 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,160 @@ __pycache__/
*.py[cod]
*$py.class

# Mac custom attributes file (Desktop Service Store)
.DS_Store
# C extensions
*.so

# PyCharm files
.idea/
# Distribution / packaging
.Python
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Instance Folder - used for run-time files
instance/*.cfg
instance/*.db
instance/*.log
instance/*.log*
# 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

# Log Files
instance/logs/
*.log
# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Coverage output
.coverage
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Virtual Environment
/venv/
# Translations
*.mo
*.pot

# pytest files
.pytest_cache/
# 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/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .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

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
.idea

# 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/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
13 changes: 6 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
from flask_frozen import Freezer
from project import create_app
from flask_fontawesome import FontAwesome
from flask_font_awesome import FontAwesome


# Call the application factory function to construct a Flask application
# instance using the development configuration
app = create_app()
fa = FontAwesome(app)
font_awesome = FontAwesome(app)

# Create an instance of Freezer for generating the static files from
# the Flask application routes ('/', '/data_analysis', etc.)
# the Flask application routes ('/', '/breakfast', etc.)
freezer = Freezer(app)


if __name__ == "__main__":
# Run the development server that generates the static files
# using Frozen-Flask
freezer.run(debug=True)
# Generate the static files using Frozen-Flask
freezer.freeze()
6 changes: 3 additions & 3 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
from flask_frozen import Freezer
from project import create_app
from flask_fontawesome import FontAwesome
from flask_font_awesome import FontAwesome

# Call the application factory function to construct a Flask application
# instance using the development configuration
app = create_app()
fa = FontAwesome(app)
font_awesome = FontAwesome(app)

# Create an instance of Freezer for generating the static files from
# the Flask application routes ('/', '/breakfast', etc.)
freezer = Freezer(app)


if __name__ == "__main__":
if __name__ == '__main__':
# Generate the static files using Frozen-Flask
freezer.freeze()
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
X-Content-Type-Options = "nosniff"
Referrer-Policy = "no-referrer"
Permissions-Policy = "geolocation=(); midi=(); notifications=(); push=(); sync-xhr=(); accelerometer=(); gyroscope=(); magnetometer=(); payment=(); camera=(); microphone=(); usb=(); xr=(); speaker=(self); vibrate=(); fullscreen=(self)"

[[redirects]]
from = "/*"
to = "/404/index.html"
status = 404
72 changes: 72 additions & 0 deletions project/build/404/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Unseen University</title>

<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/static/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/static/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/favicons/favicon-16x16.png">
<link rel="manifest" href="/static/favicons/site.webmanifest">
<link rel="mask-icon" href="/static/favicons/safari-pinned-tab.svg" color="#333333">
<link rel="shortcut icon" href="/static/favicons/favicon.ico" type="image/x-icon">
<meta name="msapplication-TileColor" content="#333333">
<meta name="theme-color" content="#000000">

<!-- Local CSS file for styling the application-->
<link rel="stylesheet" href="/static/css/base_style.css">

<script defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/all.min.js" integrity="sha512-GWzVrcGlo0TxTRvz9ttioyYJ+Wwk9Ck0G81D+eO63BaqHaJ3YZX9wuqjwgfcV/MrB2PhaVX9DkYVhbFpStnqpQ==" crossorigin="anonymous"></script>

<!-- Additional Styling -->



</head>

<body>
<header>
<h1><a href="https://tymyrddin.dev">Ty Myrddin Home</a></h1>
<nav>
<ul>
<li class="nav__item"><a href="/" class="nav__link">Unseen University</a></li>
<li class="nav__item"><a href="/blog/" class="nav__link">Improbability Blog</a></li>
<li class="nav__item"><a href="/about/" class="nav__link">About</a></li>
<li class="nav__item"><a href="/registration/" class="nav__link">Register</a></li>
</ul>
</nav>
</header>

<main class="content">
<!-- child template -->

<h1 class="errorpage-title" style="color:Orange;">Uh,oh, 404, not found</h1>
<div class="errorpage-section">
<a href="/">
<img
src="/static/img/404-no-panic.png"
alt="Wyrd sisters"
class="blog-post-card__image" />
</a>
<h2><br /><a href="/" style="color:Orange;text-decoration:none;text-transform:uppercase;">
Here, for whatever reason, is the world. <br />
And it revolves around a small unregarded yellow sun at <br />
nine hundred miles an hour (nineteen miles a second), <br />
far out in the uncharted backwaters of the unfashionable end of <br />
the western spiral arm of a Galaxy. <br />
A Galaxy containing a hundred billion stars, a hundred thousand <br />
light years side to side, bulging in the middle. <br />
Out by us, it is only three thousand light years wide. That planet. <br />
With you and me on it, for now.</a></h2>
</div>

</main>

<footer>
<p><a href="https://www.tymyrddin.dev/">Ty Myrddin</a> - <a rel="me" href="https://mastodon.social/@barzh">Mastodon</a> - <a rel="me" href="https://tube.spdns.org/a/barzh/video-channels">Move IT tube</a> - <a rel="me" href="https://github.com/tymyrddin">GitHub</a> - <a rel="me" href="https://gitlab.com/tymyrddin">Gitlab</a></p>
</footer>
</body>
</html>
10 changes: 5 additions & 5 deletions project/build/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
<!-- Local CSS file for styling the application-->
<link rel="stylesheet" href="/static/css/base_style.css">

<script defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/js/all.min.js" integrity="sha512-GWzVrcGlo0TxTRvz9ttioyYJ+Wwk9Ck0G81D+eO63BaqHaJ3YZX9wuqjwgfcV/MrB2PhaVX9DkYVhbFpStnqpQ==" crossorigin="anonymous"></script>

<!-- Additional Styling -->

<link rel="stylesheet" href="/static/css/page_style.css">
<link rel="stylesheet" href="/static/css/material.css" type="text/css">


<link href="/static/fontawesome/css/fontawesome.min.css?version=5.14.0" rel="stylesheet">
<link href="/static/fontawesome/css/solid.min.css?version=5.14.0" rel="stylesheet">
</head>

<body>
<header>
<h1><a href="/">Unseen University</a></h1>
<h1><a href="https://tymyrddin.dev">Ty Myrddin Home</a></h1>
<nav>
<ul>
<li class="nav__item"><a href="/" class="nav__link">Wizardry Unclasses</a></li>
<li class="nav__item"><a href="/" class="nav__link">Unseen University</a></li>
<li class="nav__item"><a href="/blog/" class="nav__link">Improbability Blog</a></li>
<li class="nav__item"><a href="/about/" class="nav__link">About</a></li>
<li class="nav__item"><a href="/registration/" class="nav__link">Register</a></li>
Expand Down Expand Up @@ -141,7 +141,7 @@ <h1>Degrees</h1>
</main>

<footer>
<p><a href="https://www.tymyrddin.dev/">Ty Myrddin</a> - <a rel="me" href="https://mastodon.social/@barzh">Mastodon</a> - <a rel="me" href="https://tube.spdns.org/a/barzh/video-channels">Move IT tube</a> - <a rel="me" href="https://github.com/tymyrddin">Github</a></p>
<p><a href="https://www.tymyrddin.dev/">Ty Myrddin</a> - <a rel="me" href="https://mastodon.social/@barzh">Mastodon</a> - <a rel="me" href="https://tube.spdns.org/a/barzh/video-channels">Move IT tube</a> - <a rel="me" href="https://github.com/tymyrddin">GitHub</a> - <a rel="me" href="https://gitlab.com/tymyrddin">Gitlab</a></p>
</footer>
</body>
</html>
Loading

0 comments on commit 96ca354

Please sign in to comment.