elukjanovica 2024-04-17 22:09:11 +03:00
parent eaad0809c8
commit 3b0b1ab71a
7 changed files with 26 additions and 16 deletions

11
main.py
View File

@ -8,8 +8,15 @@ users = {
} }
posts = [ posts = [
{"alias": "update-1", "title": "Game 'Picture Puzzle remake' update 1.0", "image": "picture-puzzle.png"}, {"alias": "history", "title": "Picture Puzzle history", "image": "picture-puzzle.png"},
{"alias": "how-it-was-made", "title": "Picture Puzzle remake - How it was made", "image": "coding.png"} {"alias": "update-1", "title": "Game 'Picture Puzzle remake' update 1.0", "image": "baobab.png"},
{"alias": "how-it-was-made", "title": "Picture Puzzle remake - How it was made", "image": "coding.png"},
{"alias": "difficulties", "title": "Difficulties while making game", "image": "staircase-fail.png"},
{"alias": "how-it-was-made", "title": "ChasGPT as code helper", "image": "gpt-meme.png"},
{"alias": "update-1-1", "title": "Game 'Picture Puzzle remake' update 1.1", "image": "skeleton.png"},
{"alias": "how-it-was-made", "title": "Game expectations vs. reality", "image": "developers-be-like.png"},
{"alias": "how-it-was-made", "title": "Design and music", "image": "baobab.png"},
{"alias": "how-it-was-made", "title": "Advices for game developers", "image": "advice.png"}
] ]
def fetch_latest_posts(): def fetch_latest_posts():

View File

@ -1,13 +1,14 @@
body { body {
display: flex; text-align: center;
align-items: center; }
flex-direction: column;
.text {
max-width: 800px;
margin: 0 auto;
text-align: left;
font-size: 25px;
} }
h1 { h1 {
margin:100px; font-size: 35px;
}
p {
font-size: 20px;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -5,14 +5,16 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/posts.css') }}">
<section class="content"> <section class="content">
<h1>Game "Picture Puzzle remake" update 1.0</h1> <h1>Game "Picture Puzzle remake" update 1.0</h1>
<img src="{{ url_for('static', filename='images/picture-puzzle.png') }}" alt="Picture Puzzle original" width="800" height="500"> <img src="{{ url_for('static', filename='images/picture-puzzle.png') }}" alt="Picture Puzzle original" width="800" height="500">
<p>Added:</p> <p class="text"></br>Added:</br></br>
<ul> - fixed image loading from last album</br>
<li>Game itself</li> - fixed image choosing</br>
<li>New stuff</li> - added proper image loading from storage</br>
<li>And more...</li> - optimized code</br>
</ul> - added sounds for pieces</br>
- added more music</br></p>
</section> </section>
{% endblock %} {% endblock %}