diff --git a/main.py b/main.py index 9ec9cc8..42a83a7 100644 --- a/main.py +++ b/main.py @@ -8,15 +8,15 @@ users = { } posts = [ - {"alias": "history", "title": "Picture Puzzle history", "image": "picture-puzzle.png"}, - {"alias": "update-1", "title": "Game 'Picture Puzzle remake' update 1.0", "image": "baobab.png"}, - {"alias": "how-it-was-made", "title": "How the 'Picture Puzzle remake' was made", "image": "coding.png"}, - {"alias": "difficulties", "title": "Difficulties while making game", "image": "staircase-fail.png"}, - {"alias": "chatgpt", "title": "ChatGPT as code helper", "image": "gpt-meme.png"}, - {"alias": "update-1-1", "title": "Game 'Picture Puzzle remake' update 1.1", "image": "skeleton.png"}, - {"alias": "expectations", "title": "Game expectations vs. reality", "image": "developers-be-like.png"}, + {"alias": "advices", "title": "Advices for game developers", "image": "advice.png"}, {"alias": "design-and-music", "title": "Design and music", "image": "design-and-music.png"}, - {"alias": "advices", "title": "Advices for game developers", "image": "advice.png"} + {"alias": "expectations", "title": "Game expectations vs. reality", "image": "developers-be-like.png"}, + {"alias": "update-1-1", "title": "Game 'Picture Puzzle remake' update 1.1", "image": "skeleton.png"}, + {"alias": "chatgpt", "title": "ChatGPT as code helper", "image": "chatgpt-meme.png"}, + {"alias": "difficulties", "title": "Difficulties while making game", "image": "staircase-fail.png"}, + {"alias": "how-it-was-made", "title": "How the 'Picture Puzzle remake' was made", "image": "coding.png"}, + {"alias": "update-1", "title": "Game 'Picture Puzzle remake' update 1.0", "image": "baobab.png"}, + {"alias": "history", "title": "Picture Puzzle history", "image": "picture-puzzle.png"} ] def fetch_latest_posts(): diff --git a/static/css/main.css b/static/css/main.css index 87c0ffe..beed3e3 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -340,3 +340,60 @@ i.far.fa-comment { font-size: 24px; transform: translateY(-2px); } + +.container { + max-width: 1200px; + margin: 0 auto; + padding: 20px; +} + +.posts { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + grid-gap: 20px; +} + +/* Posts page */ +.container { + max-width: 1200px; + margin: 0 auto; + padding: 20px; +} + +.posts { + max-width: 1200px; + margin: 0 auto; + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + grid-gap: 20px; +} + +.post { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + border: 1px solid #ccc; + padding: 20px; + border-radius: 10px; + transition: transform 0.3s ease; +} + +.post:hover { + transform: scale(1.05); +} + +.post img { + max-width: 100%; + height: auto; + border-radius: 10px; +} + +.post a { + text-decoration: none; + color: #fff; +} + +.post h2 { + margin-top: 20px; +} \ No newline at end of file diff --git a/templates/how-it-was-made.html b/templates/how-it-was-made.html index fbfbc5e..07779cc 100644 --- a/templates/how-it-was-made.html +++ b/templates/how-it-was-made.html @@ -5,8 +5,9 @@ {% endblock %} {% block content %} +

"Picture Puzzle remake" - How it was made

Some intense coding -

Somehow idk

+


Somehow idk

{% endblock %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index e84691a..d35546f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -17,15 +17,15 @@

Featured Posts

@@ -34,7 +34,7 @@

Latest Posts