add fonts and admin updates
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -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": [
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,3 @@
|
||||
*:not(span[class^="material"]){
|
||||
font-family: 'IRANYekanXVF' !important;
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
{% extends "admin/base.html" %}
|
||||
{% load static %}
|
||||
|
||||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static 'override.css' %}" />
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'fonts.css' %}" />
|
||||
{% endblock %}
|
||||
{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}
|
||||
|
||||
{% block branding %}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{% extends 'admin/base.html' %}
|
||||
|
||||
{% load static %}
|
||||
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static 'override.css' %}" />
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'fonts.css' %}" />
|
||||
{% endblock %}
|
||||
{% load i18n unfold %}
|
||||
|
||||
{% block breadcrumbs %}{% endblock %}
|
||||
@@ -19,11 +22,11 @@
|
||||
|
||||
{% component "unfold/components/container.html" %}
|
||||
<div class="flex flex-col gap-8 mb-12">
|
||||
<div class="flex gap-4">
|
||||
{% component "unfold/components/navigation.html" with items=navigation %}{% endcomponent %}
|
||||
</div>
|
||||
|
||||
{% include "formula/service.html" %}
|
||||
<!-- <div class="flex gap-4">
|
||||
{% component "unfold/components/navigation.html" with items=navigation %}{% endcomponent %}
|
||||
</div> -->
|
||||
|
||||
|
||||
<div class="flex flex-col gap-8 lg:flex-row">
|
||||
{% for stats in kpi %}
|
||||
|
||||
@@ -1,25 +1,18 @@
|
||||
{% load unfold i18n %}
|
||||
|
||||
<div class="bg-base-50 border border-base-200 border-dashed flex flex-col gap-4 p-6 rounded dark:bg-white/[.02] dark:border-base-700 lg:flex-row lg:items-center">
|
||||
<div class="flex flex-col">
|
||||
<h2 class="block font-semibold text-font-important-light text-base dark:text-font-important-dark">
|
||||
{% trans "Are you looking for a custom dashboard?" %}
|
||||
<div dir='rtl' class="bg-base-50 border border-base-200 border-dashed flex flex-col gap-4 p-4 rounded dark:bg-white/[.02] dark:border-base-700 lg:flex-row lg:justify-between w-full shrink-0 lg:items-center" style="justify-content: space-between;">
|
||||
<div class="flex flex-col lg:flex-row lg:items-center">
|
||||
<h2 class="font-semibold text-font-important-light text-base dark:text-font-important-dark flex items-center">
|
||||
<span class="material-symbols-outlined md-18 mr-3 w-4.5 align-middle">notifications</span>
|
||||
<span class="align-middle">سفارش جدید داری</span>
|
||||
</h2>
|
||||
|
||||
<p class="leading-relaxed max-w-3xl mt-2">
|
||||
{% 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." %}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="lg:ml-auto">
|
||||
<div class="flex lg:flex-row lg:items-center">
|
||||
{% component "unfold/components/flex.html" with class="flex-col gap-4 lg:flex-row" %}
|
||||
{% component "unfold/components/button.html" with href="https://unfoldadmin.com/consulting/?utm_medium=referral&utm_source=formula" %}
|
||||
{% trans "Book a call with Lukas" %}
|
||||
{% component "unfold/components/button.html" with href="/admin/order/ordermodel/" %}
|
||||
نمایش سفارشات
|
||||
{% endcomponent %}
|
||||
|
||||
{% component "unfold/components/button.html" with href="https://unfoldadmin.com/docs" variant="default" %}
|
||||
{% trans "I'm good with docs" %}
|
||||
{% endcomponent %}
|
||||
{% endcomponent %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user