added all my images and stuff

This commit is contained in:
0x01FE 2024-09-17 09:45:25 -05:00
parent 637e7bd9ab
commit ad2175e6cb
31 changed files with 304 additions and 295 deletions

View File

@ -48,7 +48,7 @@ statuses = {}
def get_posts(category_filter : str | None = None) -> list[tuple[dict, list]]:
post_files = glob.glob(f'{POSTS_FOLDER}/*')
try:
post_files.remove(f'{POSTS_FOLDER}/POST_TEMPLATE.md')
post_files.remove(f'{POSTS_FOLDER}\\POST_TEMPLATE.md')
except ValueError as e:
print(e)
print(f'Couldn\'t remove the template file probably; {post_files}')

View File

@ -6,6 +6,14 @@ import flask_wtf.csrf
import wtforms
COMMENTS_PATH = "./data/comments.json"
if not os.path.exists('./data/'):
os.mkdir('./data/')
if not os.path.exists(COMMENTS_PATH):
with open(COMMENTS_PATH, 'w+') as file:
file.write('{}')
comments = flask.Blueprint('comment', __name__, template_folder='./templates')
class CommentForm(flask_wtf.FlaskForm):
@ -54,8 +62,3 @@ def get_comments(post_title : int) -> list[dict]:
else:
return []
# Check Comments file exists
if not os.path.exists(COMMENTS_PATH):
with open(COMMENTS_PATH, 'w+') as file:
file.write('{}')

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 832 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

BIN
app/static/render.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

BIN
app/static/render.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
app/static/roland_think.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

View File

@ -12,8 +12,9 @@ h1, h2, h3, h4, h5 {
}
html {
--text: hsl(224, 83%, 91%);
--background: hsl(224, 31%, 23%);
--text: black;
--background: #c0c0b0;
/* --background: #2b2d31; */
--primary: hsl(229, 81%, 73%);
--primary10: hsla(209, 61%, 71%, 10%);
--primary20: hsla(209, 61%, 71%, 20%);
@ -70,15 +71,19 @@ li {
/* Other */
.header {
background-image: url("render.jpg");
background-size: cover;
text-align: center;
margin: 0 30%;
padding: 2em;
margin: 2em 25%;
padding: 3em;
border-style: var(--borders-style);
border-color: #1E2022;
background-color: var(--background);
border-radius: var(--border-radius);
color: white;
}
.header a {
@ -91,7 +96,7 @@ li {
display: flex;
flex-direction: row;
margin: 0px 5%;
margin: 0px 20%;
border-style: var(--borders-style);
border-color: #1E2022;
@ -223,6 +228,7 @@ li {
}
.post p {
font-family: Verdana, Geneva, sans-serif;
line-height: 2.25;
text-indent: 3em;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

BIN
app/static/yosemite.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 MiB