feat: update Dockerfile, add category pages, fonts and product images

Rebuild Docker setup with simplified nginx-only Dockerfile (build runs
on host). Add category detail pages, IRANSans font files, product
images, and update all landing sections.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
s.esmaeili
2026-10-07 00:45:51 +03:30
co-authored by Claude Opus 4.6
parent e31ef5a21f
commit bb7f1e3378
33 changed files with 920 additions and 196 deletions
+11 -2
View File
@@ -1,6 +1,15 @@
import { absUrl } from "../../shared/config/site";
import { categorySlugs } from "../../shared/data/categories";
const pages = ["/"];
interface SitemapEntry {
loc: string;
priority: string;
}
const pages: SitemapEntry[] = [
{ loc: "/", priority: "1" },
...categorySlugs.map((s) => ({ loc: `/categories/${s}`, priority: "0.8" })),
];
export default defineEventHandler((event) => {
setHeader(event, "Content-Type", "application/xml; charset=utf-8");
@@ -8,7 +17,7 @@ export default defineEventHandler((event) => {
const urls = pages
.map(
(p) =>
`<url>\n<loc>${absUrl(p)}</loc>\n<lastmod>${lastmod}</lastmod>\n<changefreq>monthly</changefreq>\n<priority>1</priority>\n</url>`,
`<url>\n<loc>${absUrl(p.loc)}</loc>\n<lastmod>${lastmod}</lastmod>\n<changefreq>monthly</changefreq>\n<priority>${p.priority}</priority>\n</url>`,
)
.join("\n");
return `<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n${urls}\n</urlset>\n`;