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
+17 -2
View File
@@ -1,6 +1,7 @@
import { fileURLToPath } from "node:url";
import tailwindcss from "@tailwindcss/vite";
import { siteConfig } from "./shared/config/site";
import { categorySlugs } from "./shared/data/categories";
/** Unmatched path rendered through error.vue at build time and saved as out/404.html */
const NOT_FOUND_ROUTE = "/__not-found";
@@ -23,7 +24,14 @@ export default defineNuxtConfig({
link: [
{
rel: "preload",
href: "/fonts/Vazirmatn-Variable.woff2",
href: "/fonts/IRANSansWeb.woff2",
as: "font",
type: "font/woff2",
crossorigin: "",
},
{
rel: "preload",
href: "/fonts/IRANSansWeb_Bold.woff2",
as: "font",
type: "font/woff2",
crossorigin: "",
@@ -51,7 +59,14 @@ export default defineNuxtConfig({
output: { publicDir: fileURLToPath(new URL("./out", import.meta.url)) },
prerender: {
crawlLinks: false,
routes: ["/", "/robots.txt", "/sitemap.xml", "/manifest.webmanifest", NOT_FOUND_ROUTE],
routes: [
"/",
"/robots.txt",
"/sitemap.xml",
"/manifest.webmanifest",
NOT_FOUND_ROUTE,
...categorySlugs.map((s) => `/categories/${s}`),
],
},
hooks: {
// Nuxt's own /404.html is an empty SPA shell. Replace it with a server-rendered error.vue