progress in mainpage

This commit is contained in:
Hesabix 2025-01-09 12:01:04 +00:00
parent 474a9a27a9
commit f83ec9ba45
11 changed files with 101 additions and 11 deletions

BIN
public/img/hemayatMali.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
public/img/idea.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
public/img/viewMobile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
public/img/viewWindows.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

View file

@ -11,10 +11,33 @@ use Symfony\Component\Routing\Attribute\Route;
class PageController extends AbstractController class PageController extends AbstractController
{ {
#[Route('/page/{url}', name: 'app_page')] #[Route('/page/{url}', name: 'app_page')]
public function app_page(EntityManagerInterface $entityManagerInterface,string $url): Response public function app_page(EntityManagerInterface $entityManagerInterface, string $url): Response
{ {
$item = $entityManagerInterface->getRepository(Post::class)->findPageByUrl(['url'=> $url]); $item = $entityManagerInterface->getRepository(Post::class)->findByUrlFilterCat($url, 'plain');
if(!$item) throw $this->createNotFoundException(); if (!$item)
throw $this->createNotFoundException();
return $this->render('post/page.html.twig', [
'item' => $item,
]);
}
#[Route('/blog/{page}', name: 'app_blog_home')]
public function app_blog_home($page = 1, EntityManagerInterface $entityManagerInterface, string $url): Response
{
$item = $entityManagerInterface->getRepository(Post::class)->findByUrlFilterCat($url, 'blog');
if (!$item)
throw $this->createNotFoundException();
return $this->render('post/blog_home.html.twig', [
'item' => $item,
]);
}
#[Route('/blog/post/{url}', name: 'app_blog_post')]
public function app_blog_post(EntityManagerInterface $entityManagerInterface, string $url): Response
{
$item = $entityManagerInterface->getRepository(Post::class)->findByUrlFilterCat($url, 'blog');
if (!$item)
throw $this->createNotFoundException();
return $this->render('post/page.html.twig', [ return $this->render('post/page.html.twig', [
'item' => $item, 'item' => $item,
]); ]);

View file

@ -33,14 +33,14 @@ class PostRepository extends ServiceEntityRepository
// ; // ;
// } // }
public function findPageByUrl($value): ?Post public function findByUrlFilterCat($value,$cat='plain'): ?Post
{ {
return $this->createQueryBuilder('p') return $this->createQueryBuilder('p')
->innerJoin('p.cat', 'c') ->innerJoin('p.cat', 'c')
->where('c.code = :cat') ->where('c.code = :cat')
->andWhere('p.url = :url') ->andWhere('p.url = :url')
->setParameter('url', $value) ->setParameter('url', $value)
->setParameter('cat', 'plain') ->setParameter('cat', $cat)
->getQuery() ->getQuery()
->getOneOrNullResult() ->getOneOrNullResult()
; ;

View file

@ -22,7 +22,7 @@
{% endblock %} {% endblock %}
</head> </head>
<body> <body>
<nav class="navbar navbar-expand-lg bg-body-tertiary"> <nav class="navbar navbar-expand-lg border-bottom bg-body-tertiary">
<div class="container-fluid"> <div class="container-fluid">
<a class="navbar-brand" href="{{path('app_home')}}"> <a class="navbar-brand" href="{{path('app_home')}}">
<img src="{{asset('/favicon/favicon.svg')}}" alt="نرم افزار حسابداری آنلاین حسابیکس" width="30" height="30"> <img src="{{asset('/favicon/favicon.svg')}}" alt="نرم افزار حسابداری آنلاین حسابیکس" width="30" height="30">

View file

@ -1,7 +1,68 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% block title %}نرم افزار حسابداری آنلاین،متن‌باز و کاملا رایگان{% endblock %} {% block title %}نرم افزار حسابداری آنلاین،متن‌باز و کاملا رایگان
{% endblock %}
{% block body %} {% block body %}
<h1>وب سایت حسابیکس در حال به روز رسانی است . همچنان میتوانید از طریق لینک زیر وارد نرم افزار شوید.</h1> <div class="container">
<a target="_blank" href="https://app.hesabix.ir">ورود به حسابیکس</a> <div class="row">
{% endblock %} <div class="col-12 my-3">
<div class="p-1 mb-4 bg-body-primary rounded-3">
<div class="container-fluid py-5">
<div class="row align-items-center">
<div class="col-sm-12 col-md-7 mb-3 text-center">
<h1 class="fs-2 fw-bold text-primary">شروعی ساده و آسان
<br>
برای مدیریت کسب‌و‌کار شما
</h1>
<p class="fs-6">حسابیکس پلتفرم حسابداری ابری،متن‌باز و واقعا رایگان</p>
<a class="btn rounded-4 btn-primary" href="https://app.hesabix.ir" target="_blank">هم‌اکنون عضو شوید</a>
</div>
<div class="col-sm-12 col-md-5 mb-3">
<img src="{{asset('img/viewWindows.png')}}" class="img-fluid" alt="نرم افزار حسابداری حسابیکس"/>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="card text-bg-light mb-3">
<div class="card-body text-center">
<p class="card-text">
حسابیکس یک پلتفرم مدیریت کسب‌و‌کار که پاسخگوی تمام اهداف تجاری شما از یک فروشگاه کوچک تا یک مجتمع بازگانی بزرگ است
<br>
کافی است گام اول را بردارید،جهت پیشبرد اهدافتان ما در کنار شما هستیم.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-12">
<div class="p-1 mb-4">
<div class="container-fluid py-5">
<div class="row align-items-center">
<div class="col-sm-12 col-md-3 mb-3 text-center">
<img src="{{asset('img/viewMobile.png')}}" class="img-fluid" alt="نرم افزار حسابداری حسابیکس"/>
</div>
<div class="col-sm-12 col-md-9 mb-3">
<h2 class="text-primary">شروعی سریع و ساده با حسابیکس</h2>
<ul class="">
<li class="my-3">
ابتدا در حسابیکس عضو شوید و پنل کسب و کار خود را به سادگی بسازید، توجه داشته باشید هر تعداد کسب‌و‌کار که داشته باشید می توانید از طریق یک داشبورد واحد آن‌ها مدیریت کنید
</li>
<li class="my-3">
اطلاعات کسب و کار خود را وارد کنید و تنظیمات اولیه را انجام دهید،حسابیکس آماده و در اختیار شماست . در صورتی که سوالی درباره حسابیکس داشتید می‌توانید تیکت پشتیبانی ارسال کنید
</li>
<li class="my-3">
از حسابیکس بر روی موبایل، تبلت و کامپیوتر لذت ببرید تنها کافی است که یک اتصال اینترنت داشته باشید،حسابیکس در هر نقطه‌ای از جهان در دسترس شما خواهد بود
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<urlset <urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com --> <!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->
<url> <url>
<loc>{{ absolute_url(path('app_home')) }}</loc> <loc>{{ absolute_url(path('app_home')) }}</loc>
@ -15,6 +15,12 @@
<lastmod>{{ twigFunctions.getctime(post.dateSubmit) }}</lastmod> <lastmod>{{ twigFunctions.getctime(post.dateSubmit) }}</lastmod>
<priority>1.00</priority> <priority>1.00</priority>
</url> </url>
{% elseif post.cat.code == 'blog' %}
<url>
<loc>{{ absolute_url(path('app_blog_post',{'url':post.url})) }}</loc>
<lastmod>{{ twigFunctions.getctime(post.dateSubmit) }}</lastmod>
<priority>1.00</priority>
</url>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</urlset> </urlset>