diff --git a/main.py b/main.py index 42a83a7..cd331f9 100644 --- a/main.py +++ b/main.py @@ -31,6 +31,10 @@ def index(): def all_posts(): return render_template("posts.html", posts=posts) +@app.route("/about") +def about(): + return render_template("about.html") + @app.route("/posts/") def post(alias): post_info = next((p for p in posts if p['alias'] == alias), None) diff --git a/static/css/main.css b/static/css/main.css index b3ba403..9a9ed41 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -153,7 +153,7 @@ nav .dropdown a::before { /* Content Section */ .content { - padding: 30px; + padding: 50px; } h2 { @@ -165,14 +165,18 @@ h2 { .latest-posts-container { display: flex; flex-wrap: wrap; + justify-content: space-between; } .featured-post, .latest-post { - padding: 0 20px; + padding: 20px 40px; box-sizing: border-box; margin-bottom: 20px; text-align: center; + background-color: #2c2c2c; + border-radius: 8px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .featured-post a, @@ -191,6 +195,7 @@ h2 { .latest-post img { margin-bottom: 10px; flex-shrink: 0; + border-radius: 6px; } .featured-post a::before, @@ -211,8 +216,10 @@ h2 { width: 100%; } -.featured-posts h3, .latest-posts h3 { +.featured-posts h3, +.latest-posts h3 { margin: 0.25rem; + font-size: 18px; } /* Footer */ @@ -354,24 +361,12 @@ i.far.fa-comment { 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; + max-width: 1400px; margin: 0 auto; display: grid; - grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); grid-gap: 20px; } diff --git a/static/images/coding.png b/static/images/coding.png index fbdf2d1..a7232ee 100644 Binary files a/static/images/coding.png and b/static/images/coding.png differ diff --git a/static/js/main.js b/static/js/main.js index 89ed756..eed1f2d 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -9,7 +9,7 @@ document.addEventListener("DOMContentLoaded", function() { }); gif.addEventListener("click", function() { - var gameUrl = "https://gitea.rkg.lv/elukjanovica/Picture-Puzzle-website.git"; + var gameUrl = "https://gitea.rkg.lv/elukjanovica/Picture_Puzzle.git"; navigator.clipboard.writeText(gameUrl).then(function() { notification.textContent = "Link copied!"; diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..9d83fe9 --- /dev/null +++ b/templates/about.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} + +{% block title %} + About the game +{% endblock %} + +{% block content %} + +
+

About 'Picture Puzzle Remake'

+ Icon +



The Picture Puzzle Remake game was created in 2024 to revive one of the many at the time popular gadgets of the Windows 7 and Vista era. This reimagined version includes many improvements and features such as:

+ - different modes
+ - automatic saving
+ - selection of ablums and images
+ - 3 types of window sizes and styles
+ - ability to set music and sound, choose a version
+ - puzzle types: 3x3 and 4x4

+
+{% endblock %} diff --git a/templates/base.html b/templates/base.html index cb61979..4c83c48 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,12 +19,12 @@