added all my images and stuff
@ -48,7 +48,7 @@ statuses = {}
|
|||||||
def get_posts(category_filter : str | None = None) -> list[tuple[dict, list]]:
|
def get_posts(category_filter : str | None = None) -> list[tuple[dict, list]]:
|
||||||
post_files = glob.glob(f'{POSTS_FOLDER}/*')
|
post_files = glob.glob(f'{POSTS_FOLDER}/*')
|
||||||
try:
|
try:
|
||||||
post_files.remove(f'{POSTS_FOLDER}/POST_TEMPLATE.md')
|
post_files.remove(f'{POSTS_FOLDER}\\POST_TEMPLATE.md')
|
||||||
except ValueError as e:
|
except ValueError as e:
|
||||||
print(e)
|
print(e)
|
||||||
print(f'Couldn\'t remove the template file probably; {post_files}')
|
print(f'Couldn\'t remove the template file probably; {post_files}')
|
||||||
|
|||||||
@ -6,6 +6,14 @@ import flask_wtf.csrf
|
|||||||
import wtforms
|
import wtforms
|
||||||
|
|
||||||
COMMENTS_PATH = "./data/comments.json"
|
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')
|
comments = flask.Blueprint('comment', __name__, template_folder='./templates')
|
||||||
|
|
||||||
class CommentForm(flask_wtf.FlaskForm):
|
class CommentForm(flask_wtf.FlaskForm):
|
||||||
@ -54,8 +62,3 @@ def get_comments(post_title : int) -> list[dict]:
|
|||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
# Check Comments file exists
|
|
||||||
if not os.path.exists(COMMENTS_PATH):
|
|
||||||
with open(COMMENTS_PATH, 'w+') as file:
|
|
||||||
file.write('{}')
|
|
||||||
|
|
||||||
|
|||||||
BIN
app/static/canal-banner1.jpg
Normal file
|
After Width: | Height: | Size: 609 KiB |
BIN
app/static/deadwell-banner.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
app/static/game_screenshots/darkthroat_bottom.jpg
Normal file
|
After Width: | Height: | Size: 624 KiB |
BIN
app/static/game_screenshots/darkthroat_whirlpool.jpg
Normal file
|
After Width: | Height: | Size: 684 KiB |
BIN
app/static/game_screenshots/deadwell_bridge.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
app/static/game_screenshots/fallcrush.jpg
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
app/static/game_screenshots/greensilt_overlook.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
app/static/game_screenshots/greensilt_tower.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
app/static/game_screenshots/nokkpond.jpg
Normal file
|
After Width: | Height: | Size: 832 KiB |
BIN
app/static/game_screenshots/nokkpond_mountians.jpg
Normal file
|
After Width: | Height: | Size: 465 KiB |
BIN
app/static/game_screenshots/sourwood_bridge_1.jpg
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
app/static/game_screenshots/sourwood_bridge_2.jpg
Normal file
|
After Width: | Height: | Size: 828 KiB |
BIN
app/static/greensilt-banner-2.png
Normal file
|
After Width: | Height: | Size: 639 KiB |
BIN
app/static/greensilt-banner-3.png
Normal file
|
After Width: | Height: | Size: 728 KiB |
BIN
app/static/greensilt-banner-scaled.png
Normal file
|
After Width: | Height: | Size: 198 KiB |
BIN
app/static/greensilt-banner.png
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
app/static/real-greensilt-banner.png
Normal file
|
After Width: | Height: | Size: 202 KiB |
BIN
app/static/render.jpg
Normal file
|
After Width: | Height: | Size: 2.0 MiB |
BIN
app/static/render.png
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
BIN
app/static/roland_think.png
Normal file
|
After Width: | Height: | Size: 120 KiB |
@ -12,8 +12,9 @@ h1, h2, h3, h4, h5 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
--text: hsl(224, 83%, 91%);
|
--text: black;
|
||||||
--background: hsl(224, 31%, 23%);
|
--background: #c0c0b0;
|
||||||
|
/* --background: #2b2d31; */
|
||||||
--primary: hsl(229, 81%, 73%);
|
--primary: hsl(229, 81%, 73%);
|
||||||
--primary10: hsla(209, 61%, 71%, 10%);
|
--primary10: hsla(209, 61%, 71%, 10%);
|
||||||
--primary20: hsla(209, 61%, 71%, 20%);
|
--primary20: hsla(209, 61%, 71%, 20%);
|
||||||
@ -70,15 +71,19 @@ li {
|
|||||||
/* Other */
|
/* Other */
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
background-image: url("render.jpg");
|
||||||
|
background-size: cover;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
margin: 0 30%;
|
margin: 2em 25%;
|
||||||
padding: 2em;
|
padding: 3em;
|
||||||
|
|
||||||
border-style: var(--borders-style);
|
border-style: var(--borders-style);
|
||||||
border-color: #1E2022;
|
border-color: #1E2022;
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
border-radius: var(--border-radius);
|
border-radius: var(--border-radius);
|
||||||
|
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header a {
|
.header a {
|
||||||
@ -91,7 +96,7 @@ li {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
margin: 0px 5%;
|
margin: 0px 20%;
|
||||||
|
|
||||||
border-style: var(--borders-style);
|
border-style: var(--borders-style);
|
||||||
border-color: #1E2022;
|
border-color: #1E2022;
|
||||||
@ -223,6 +228,7 @@ li {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.post p {
|
.post p {
|
||||||
|
font-family: Verdana, Geneva, sans-serif;
|
||||||
line-height: 2.25;
|
line-height: 2.25;
|
||||||
text-indent: 3em;
|
text-indent: 3em;
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
app/static/yosemite-banner.png
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
BIN
app/static/yosemite.png
Normal file
|
After Width: | Height: | Size: 6.2 MiB |