diff --git a/backend/.env.local b/backend/.env.local index e8affc4..064d665 100644 --- a/backend/.env.local +++ b/backend/.env.local @@ -20,8 +20,8 @@ TELEGRAM_BOT_TOKEN = '' DOMAIN = 'heymlz.com' # domain for api (the domain that django will use) API_DOMAIN = 'api.heymlz.com' -SITE_TITLE = 'Heymlz Shop' -SITE_HEADER = 'Heymlz Shop' +SITE_TITLE = 'فروشگاه هی ملز' +SITE_HEADER = 'فروشگاه هی ملز' # jwt token configs ACCESS_TOKEN_LIFETIME = 5000 REFRESH_TOKEN_LIFETIME = 5000 diff --git a/backend/core/settings.py b/backend/core/settings.py index 77f47bc..3a680ed 100644 --- a/backend/core/settings.py +++ b/backend/core/settings.py @@ -178,7 +178,7 @@ STATIC_ROOT = '/app/static' STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'custom_static'), - # BASE_DIR / "core" / "static" + BASE_DIR / "core" / "static" ] STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" @@ -225,6 +225,7 @@ UNFOLD = { "SITE_TITLE": os.getenv("SITE_TITLE"), "SITE_HEADER": os.getenv("SITE_HEADER"), "SITE_URL": DOMAIN, + "THEME": 'dark', "SITE_SYMBOL": "shield_person", "DASHBOARD_CALLBACK": "core.views.dashboard_callback", "SITE_FAVICONS": [ @@ -240,7 +241,7 @@ UNFOLD = { # }, - "BORDER_RADIUS": "15px", + "BORDER_RADIUS": "8px", "SHOW_HISTORY": True, "SHOW_VIEW_ON_SITE": True, "ENVIRONMENT": "core.settings.environment_callback", @@ -315,7 +316,7 @@ UNFOLD = { { - "title": _("Shop Products"), + "title": _("محصولات فروشگاه"), "separator": True, "collapsible": False, "items": [ @@ -342,7 +343,7 @@ UNFOLD = { { - "title": _("Categories section"), + "title": _("سکشن دسته بندی"), "separator": True, "collapsible": False, "items": [ @@ -361,7 +362,7 @@ UNFOLD = { ], }, { - "title": _("Visual Sections "), + "title": _("سکشن های نمایشی"), "separator": True, "collapsible": True, "items": [ @@ -387,7 +388,7 @@ UNFOLD = { }, { - "title": _("Users and Customers"), + "title": _("کاربران و مشتریان"), "separator": True, "collapsible": True, "items": [ @@ -411,7 +412,7 @@ UNFOLD = { }, { - "title": _("Ticket and Support"), + "title": _("پشتیبانی و تیکت"), "separator": True, "collapsible": True, "items": [ diff --git a/backend/core/static/fonts.css b/backend/core/static/fonts.css new file mode 100644 index 0000000..be4ee56 --- /dev/null +++ b/backend/core/static/fonts.css @@ -0,0 +1,88 @@ +@layer base { + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-Thin.woff2"); + font-weight: 100; + font-style: normal; + font-display: swap; + } + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-UltraLight.woff2"); + font-weight: 200; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-Light.woff2"); + font-weight: 300; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-Regular.woff2"); + font-weight: 400; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-Medium.woff2"); + font-weight: 500; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-DemiBold.woff2"); + font-weight: 600; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-Bold.woff2"); + font-weight: 700; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-ExtraBold.woff2"); + font-weight: 800; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-Black.woff2"); + font-weight: 900; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-ExtraBlack.woff2"); + font-weight: 950; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: "IRANYekanXVF"; + src: url("./fonts/IranYekanX/IRANYekanX-Heavy.woff2"); + font-weight: 1000; + font-style: normal; + font-display: swap; + } +} \ No newline at end of file diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-Black.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-Black.woff2 new file mode 100755 index 0000000..e67c520 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-Black.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-Bold.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-Bold.woff2 new file mode 100755 index 0000000..dd3fc16 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-Bold.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-DemiBold.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-DemiBold.woff2 new file mode 100755 index 0000000..f1f6750 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-DemiBold.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-ExtraBlack.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-ExtraBlack.woff2 new file mode 100755 index 0000000..03a0682 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-ExtraBlack.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-ExtraBold.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-ExtraBold.woff2 new file mode 100755 index 0000000..c041d78 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-ExtraBold.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-Heavy.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-Heavy.woff2 new file mode 100755 index 0000000..ea16307 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-Heavy.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-Light.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-Light.woff2 new file mode 100755 index 0000000..8d9534c Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-Light.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-Medium.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-Medium.woff2 new file mode 100755 index 0000000..cdb4ce0 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-Medium.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-Regular.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-Regular.woff2 new file mode 100755 index 0000000..89ae517 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-Regular.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-Thin.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-Thin.woff2 new file mode 100755 index 0000000..c5a9409 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-Thin.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanX-UltraLight.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanX-UltraLight.woff2 new file mode 100755 index 0000000..cb42c16 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanX-UltraLight.woff2 differ diff --git a/backend/core/static/fonts/IranYekanX/IRANYekanXVF.woff2 b/backend/core/static/fonts/IranYekanX/IRANYekanXVF.woff2 new file mode 100755 index 0000000..1e430a2 Binary files /dev/null and b/backend/core/static/fonts/IranYekanX/IRANYekanXVF.woff2 differ diff --git a/backend/core/static/fonts/Morabba/Morabba-Black.woff2 b/backend/core/static/fonts/Morabba/Morabba-Black.woff2 new file mode 100644 index 0000000..9046b14 Binary files /dev/null and b/backend/core/static/fonts/Morabba/Morabba-Black.woff2 differ diff --git a/backend/core/static/fonts/Morabba/Morabba-Bold.woff2 b/backend/core/static/fonts/Morabba/Morabba-Bold.woff2 new file mode 100644 index 0000000..5b4e175 Binary files /dev/null and b/backend/core/static/fonts/Morabba/Morabba-Bold.woff2 differ diff --git a/backend/core/static/fonts/Morabba/Morabba-ExtraBold.woff2 b/backend/core/static/fonts/Morabba/Morabba-ExtraBold.woff2 new file mode 100644 index 0000000..d91c75a Binary files /dev/null and b/backend/core/static/fonts/Morabba/Morabba-ExtraBold.woff2 differ diff --git a/backend/core/static/fonts/Morabba/Morabba-Heavy.woff2 b/backend/core/static/fonts/Morabba/Morabba-Heavy.woff2 new file mode 100644 index 0000000..bd73f5e Binary files /dev/null and b/backend/core/static/fonts/Morabba/Morabba-Heavy.woff2 differ diff --git a/backend/core/static/fonts/Morabba/Morabba-Light.woff2 b/backend/core/static/fonts/Morabba/Morabba-Light.woff2 new file mode 100644 index 0000000..1660ac3 Binary files /dev/null and b/backend/core/static/fonts/Morabba/Morabba-Light.woff2 differ diff --git a/backend/core/static/fonts/Morabba/Morabba-Medium.woff2 b/backend/core/static/fonts/Morabba/Morabba-Medium.woff2 new file mode 100644 index 0000000..c7d7c62 Binary files /dev/null and b/backend/core/static/fonts/Morabba/Morabba-Medium.woff2 differ diff --git a/backend/core/static/fonts/Morabba/Morabba-Regular.woff2 b/backend/core/static/fonts/Morabba/Morabba-Regular.woff2 new file mode 100644 index 0000000..ba8a057 Binary files /dev/null and b/backend/core/static/fonts/Morabba/Morabba-Regular.woff2 differ diff --git a/backend/core/static/fonts/Morabba/Morabba-SemiBold.woff2 b/backend/core/static/fonts/Morabba/Morabba-SemiBold.woff2 new file mode 100644 index 0000000..eef92c1 Binary files /dev/null and b/backend/core/static/fonts/Morabba/Morabba-SemiBold.woff2 differ diff --git a/backend/core/static/fonts/Morabba/Morabba-UltraLight.woff2 b/backend/core/static/fonts/Morabba/Morabba-UltraLight.woff2 new file mode 100644 index 0000000..dae5d24 Binary files /dev/null and b/backend/core/static/fonts/Morabba/Morabba-UltraLight.woff2 differ diff --git a/backend/core/static/fonts/YekanBakh/YekanBakh-Bold.woff b/backend/core/static/fonts/YekanBakh/YekanBakh-Bold.woff new file mode 100644 index 0000000..a5dcf87 Binary files /dev/null and b/backend/core/static/fonts/YekanBakh/YekanBakh-Bold.woff differ diff --git a/backend/core/static/fonts/YekanBakh/YekanBakh-Light.woff b/backend/core/static/fonts/YekanBakh/YekanBakh-Light.woff new file mode 100644 index 0000000..0e83072 Binary files /dev/null and b/backend/core/static/fonts/YekanBakh/YekanBakh-Light.woff differ diff --git a/backend/core/static/fonts/YekanBakh/YekanBakh-Regular.woff b/backend/core/static/fonts/YekanBakh/YekanBakh-Regular.woff new file mode 100644 index 0000000..bf5aab7 Binary files /dev/null and b/backend/core/static/fonts/YekanBakh/YekanBakh-Regular.woff differ diff --git a/backend/core/static/fonts/YekanBakh/YekanBakh-SemiBold.woff b/backend/core/static/fonts/YekanBakh/YekanBakh-SemiBold.woff new file mode 100644 index 0000000..746a3d0 Binary files /dev/null and b/backend/core/static/fonts/YekanBakh/YekanBakh-SemiBold.woff differ diff --git a/backend/core/static/fonts/YekanBakh/YekanBakh-Thin.woff b/backend/core/static/fonts/YekanBakh/YekanBakh-Thin.woff new file mode 100644 index 0000000..72fcc39 Binary files /dev/null and b/backend/core/static/fonts/YekanBakh/YekanBakh-Thin.woff differ diff --git a/backend/core/static/override.css b/backend/core/static/override.css new file mode 100644 index 0000000..4e38e36 --- /dev/null +++ b/backend/core/static/override.css @@ -0,0 +1,3 @@ +*:not(span[class^="material"]){ + font-family: 'IRANYekanXVF' !important; +} \ No newline at end of file diff --git a/backend/templates/admin/base_site.html b/backend/templates/admin/base_site.html index f349bd7..d7593ad 100644 --- a/backend/templates/admin/base_site.html +++ b/backend/templates/admin/base_site.html @@ -1,5 +1,9 @@ {% extends "admin/base.html" %} +{% load static %} +{% block extrastyle %}{{ block.super }} + +{% endblock %} {% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} {% block branding %} diff --git a/backend/templates/admin/index.html b/backend/templates/admin/index.html index 099c689..b17f7af 100644 --- a/backend/templates/admin/index.html +++ b/backend/templates/admin/index.html @@ -1,5 +1,8 @@ {% extends 'admin/base.html' %} - +{% load static %} +{% block extrastyle %}{{ block.super }} + +{% endblock %} {% load i18n unfold %} {% block breadcrumbs %}{% endblock %} @@ -19,11 +22,11 @@ {% component "unfold/components/container.html" %}
- {% trans "Did you decide to start using Unfold in your application but you need help with integration? Feel free to get in touch for consulting, priority support on specific tickets or development services." %} -