From 1e26ce4569576770296394285192015b670bd4b6 Mon Sep 17 00:00:00 2001 From: Akromjon <152626511+RustamovAkrom@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:29:49 +0500 Subject: [PATCH] update home page --- app/routes/blog.py | 6 +++ app/routes/site.py | 5 ++- app/templates/base.html | 4 +- app/templates/site/index.html | 76 +++++++++++++++++++++++++---------- 4 files changed, 67 insertions(+), 24 deletions(-) create mode 100644 app/routes/blog.py diff --git a/app/routes/blog.py b/app/routes/blog.py new file mode 100644 index 0000000..7050e69 --- /dev/null +++ b/app/routes/blog.py @@ -0,0 +1,6 @@ +from flask import Blueprint, render_template + + +dp = Blueprint("blog", __name__) + + diff --git a/app/routes/site.py b/app/routes/site.py index f7883cc..4580332 100644 --- a/app/routes/site.py +++ b/app/routes/site.py @@ -21,12 +21,13 @@ def uploaded_file(filename): @htmx_route() def index(): resume_data = Resume.query.first() - + about_avatar_url = About.query.first() context = { "template_name": "site/index.html", - "template_title": "Rustamov Akrom", + # "template_title": "Rustamov Akrom", "template_body_class_name": "index", "resume": resume_data, + "about_avatar_url": about_avatar_url.avatar } return context diff --git a/app/templates/base.html b/app/templates/base.html index bcba7f6..781bb52 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -12,7 +12,7 @@ - + @@ -35,6 +35,8 @@ + {% block style %} + {% endblock %}
- -
- {% if current_user.is_authenticated %} -

Welcome Akrom

- {% else %} -

Rustamov Akrom &

- {% endif %} -

I'm Photographer

-
- Hi! I am Akrom Rustamov, a Python developer with over 2 years of experience in web development. My key skills include Django, Flask and FastAPI. -
- -
- My projects - {% if resume %} - Download resume + Background Image + +
+
+ {% if current_user.is_authenticated %} +

Welcome Akrom

+ {% else %} +

Rustamov Akrom

{% endif %} + +

+ I'm Photographer + +

+ + Hi! I am Akrom Rustamov, a Python developer with over 2 years of experience in web development. My key skills include Django, Flask, and FastAPI. + + + +
+ My projects + {% if resume %} + Download resume + {% endif %} +
+
+ + +
+
+ Akrom Rustamov - Python Developer +
-