# Visual / Mobile Rendering Audit — new.nar30i3.ir

Date: 2026-09-13
Pages tested:
- Homepage: `https://new.nar30i3.ir/`
- Product page: `https://new.nar30i3.ir/product/1` (only reachable product-route pattern found; see Finding 1 for why no real product could be loaded)

Viewports captured: Desktop (1920x1080), Mobile (375x812, iPhone-class)

Screenshots (all under `/media/sam/Dev1/Front/nar30i3.ir/new.nar30i3.ir-audit/screenshots/`):
- `home_desktop.png`, `home_desktop_full.png` — homepage, desktop, viewport + full page
- `home_mobile.png`, `home_mobile_full.png` — homepage, mobile, viewport + full page
- `product_desktop.png`, `product_desktop_full.png` — product page, desktop
- `product_mobile.png`, `product_mobile_full.png` — product page, mobile

---

## Finding 1 — CRITICAL: Backend API is fully down (HTTP 500), site is showing an error-state to every visitor

**Severity: Critical (blocking)**

Every content-bearing API call the storefront makes fails with HTTP 500. Confirmed directly against the API host:

```
$ curl https://api.nar30i3.ir/api/products
{"message":"Class \"Redis\" not found", "exception":"Error", ... vendor/laravel/framework/.../PhpRedisConnector.php ...}
```

Browser network trace on the homepage (mobile viewport) shows every data endpoint failing the same way, consistently across repeated loads:

```
500 https://api.nar30i3.ir/api/sliders
500 https://api.nar30i3.ir/api/categories/
500 https://api.nar30i3.ir/api/categories/homepage
500 https://api.nar30i3.ir/api/products/new
500 https://api.nar30i3.ir/api/products/sale
```

Root cause: the Laravel API's PHP-Redis extension is not installed/available on the server, so any code path that touches the cache/session layer (which appears to be nearly everything) throws a fatal error. Full stack traces with server file paths are returned to the client — `APP_DEBUG` is on in production, which is also an **information-disclosure security issue** (exposes absolute server paths, framework version, vendor layout) and should be flagged to the backend team regardless of this being a visual audit.

Visible impact (see `home_desktop.png` / `home_mobile.png`):
- Hero/slider area renders as an empty pink box with the message "خطا در بارگذاری" ("Error loading") instead of any promotional banner or hero content.
- "جدیدترین محصولات" (Newest products), "حراج فصل" (Seasonal sale), and the homepage category grid all render their empty-state copy: "هیچ دسته‌بندی‌ای ... یافت نشد" / "محصول جدیدی ... یافت نشد" / "محصول حراجی ... یافت نشد" — i.e. **zero products or categories are shown anywhere on the homepage**.
- The one concrete product URL pattern discovered (`/product/{id}`) also fails: it renders a full-screen modal dialog "خطا در بارگذاری صفحه" / "Not Found" (see `product_desktop.png`, `product_mobile.png`). I could not locate any working product detail page because the products API itself is down (confirmed by testing `GET /api/products` directly, and by the empty product rails on the homepage). **A true "product page" visual/CTA audit (add-to-cart button, size selector, gallery, price display) cannot be completed until the API is restored.**

**Recommendation:** This is a P0 production outage, not a cosmetic issue — no product can currently be browsed, viewed, or purchased on the storefront. Fix the Redis dependency on `api.nar30i3.ir` (install/enable `php-redis` extension or point `CACHE_DRIVER`/`SESSION_DRIVER` away from redis until it's available), then disable `APP_DEBUG` in production so stack traces are never sent to the client. Everything below this point describes the layout/UX quality of the *shell* that is rendering correctly, but the actual commerce content cannot be assessed until this is fixed.

---

## Finding 2 — HIGH: No `<h1>` element anywhere on the homepage

**Severity: High (SEO / accessibility)**

Server-rendered HTML for `/` contains zero `<h1>` tags (verified via raw HTML grep, and via DOM query in the rendered page — `document.querySelector('h1')` returned `null` on both desktop and mobile). This is independent of the API outage — it's a template-level omission.

**Recommendation:** Add a single, meaningful `<h1>` to the homepage template (e.g. a visually-hidden or styled headline such as "فروشگاه اینترنتی نارسیس" or a category/value-prop headline), and audit other templates (category, product) for the same gap once they are reachable.

---

## Finding 3 — MEDIUM: Several tap targets are under the 48x48px accessibility minimum on mobile

**Severity: Medium**

Measured via `getBoundingClientRect()` on the live mobile-viewport (375px) render of the homepage header:

| Element | Size (w x h) | Issue |
|---|---|---|
| Header search icon button (compact/mobile header) | 36 x 46 px | Width below WCAG 2.5.5 / Material 48dp guidance |
| Header cart icon button (compact/mobile header) | 39 x 46 px | Width below 48dp guidance |
| "دیدن همه ←" (View all) links, appearing 3x on the homepage rails | 63 x 16 px | Height is far below any reasonable tap-target minimum (16px), high mis-tap risk |
| Logo link (mobile header) | 94 x 32 px | Height below 48dp, lower priority since it's a branding link, not a primary action |

By contrast, the mobile bottom navigation bar (خانه / دسته‌بندی / جستجو / سبد خرید / حساب) measures **73 x 59 px per item** — this is a good pattern and should be the standard the rest of the UI is brought up to.

**Recommendation:**
- Increase the invisible/padding hit-area of the search and cart icon buttons in the compact header to at least 48x48px (e.g. `min-width/min-height: 48px` with icon centered), without necessarily growing the visual icon.
- Increase the vertical hit-area of the "دیدن همه" links — wrap them in a parent with `padding: 12px` (or `min-height: 48px` with flex/vertical centering) rather than relying on the 16px line-height of the text alone.

---

## Finding 4 — LOW/MEDIUM: Footer logo image is broken (inconsistent image pipeline vs. header logo)

**Severity: Low-Medium (visual polish / brand consistency)**

In `home_desktop_full.png`, the footer's "دسترسی سریع" column header area shows a broken-image placeholder icon immediately to the left of "فروشگاه اینترنتی نارسیس" instead of the logo graphic. Looking at the SSR HTML:
- Header logo: `src="https://nar30i3.ir/img/logo.webp"` — loads fine (visible correctly in all four homepage/product screenshots' header).
- Footer logo: `src="/_ipx/q_80&s_150x40/images/logo.png"` (routed through Nuxt's image-optimization `_ipx` proxy against a local `images/logo.png`) — this asset 404s/errors, triggering the `onerror` fallback and leaving a broken-image icon.

**Recommendation:** Point the footer logo at the same working asset the header uses (`https://nar30i3.ir/img/logo.webp`, or a local copy of it placed at `public/images/logo.png` so the `_ipx` transform has something to resize). Low severity on its own, but stacked next to Finding 1 it reinforces an impression of a site in disrepair.

---

## Finding 5 — LOW: `robots.txt` and `sitemap.xml` are served as full SPA shells with wrong status/content-type (SEO hygiene, tangential to visual audit but discovered during testing)

`GET /robots.txt` and `GET /sitemap.xml` both return the full Nuxt HTML app shell (a rendered page saying "صفحه یافت نشد" / Page not found inside the embedded `__NUXT_DATA__`) rather than a plain-text/XML 404 or actual robots/sitemap content. This won't visually affect end users but will confuse crawlers. Flagging for the SEO workstream; no screenshot needed.

---

## RTL Layout Assessment — PASS (no defects found in what currently renders)

Despite the backend outage, the front-end shell itself is well-built for RTL and can be assessed independently of the missing content:

- `<html dir="rtl" lang="fa">` correctly set on every real app page (desktop and mobile). The one time `dir="ltr"` was observed, it was a raw Apache 503 "Service Unavailable" infrastructure page from a transient upstream hiccup — not part of the Vue/Nuxt app — see note below.
- Text alignment, reading order, and icon placement are correctly mirrored: cart badge sits top-right of the cart icon (`-top-1 -right-1`), breadcrumproads/arrows point left (←) consistent with "continue reading" affordance in RTL ("خواندن ادامه →" / "دیدن همه ←" use the correct arrow direction for RTL flow).
- Bottom mobile nav order (right→left: خانه, دسته‌بندی, جستجو, سبد خرید, حساب) reads correctly in natural RTL order.
- The error modal on the product page (`product_mobile.png`, `product_desktop.png`) is correctly RTL: title and icon on the right, body text right-aligned, and the two action buttons ("بستن" / "تلاش مجدد") are laid out with the primary purple "تلاش مجدد" (Retry) action positioned first in reading order — an appropriate RTL-adapted pattern.
- No horizontal scrollbars/overflow were detected at either 375px or 1920px widths (`scrollWidth === clientWidth` on both).

**Side note (infra flakiness, not a code defect):** during testing, one request to the desktop homepage hit a raw, English-language Apache "503 Service Unavailable / ErrorDocument" page (unstyled, `dir="ltr"`) instead of the Nuxt app. This appears to be an intermittent infrastructure/proxy issue (retries succeeded). If this recurs in production, an unbranded English 503 page appearing on a Persian RTL storefront is a jarring, unprofessional failure state — worth a custom branded maintenance page at the CDN/proxy layer as a defensive measure, independent of the Finding 1 root cause.

---

## Above-the-Fold Assessment

Because of Finding 1, above-the-fold content is currently **not usable/sellable**:
- **Desktop** (`home_desktop.png`): header + nav render correctly and are fully visible without scrolling, but the entire hero/banner region below the nav is consumed by the "خطا در بارگذاری" error box — no hero image, no promotional CTA, no primary call-to-action of any kind is visible above the fold.
- **Mobile** (`home_mobile.png`): same pattern — compact header, then immediately the pink error box, then "no category to display" text, all before any real content. The one persistently-visible, working CTA above the fold on mobile is the bottom tab bar (خانه/دسته‌بندی/جستجو/سبد خرید/حساب), which is fixed and always accessible — this is the only reliable navigation currently available to users.
- No primary marketing/conversion CTA (e.g., "خرید کنید" / shop-now banner button) exists anywhere in the currently-rendered homepage, but this cannot be fully separated from Finding 1 — the CMS-driven slider that would normally contain it is the exact thing failing to load.

**Recommendation:** Beyond fixing Finding 1, add a graceful degraded state for the hero/slider and product rails (e.g., a static fallback banner/CTA baked into the template) so that a backend outage doesn't remove 100% of above-the-fold value and navigation, as it does today.

---

## Mobile Responsiveness Assessment

- No horizontal scroll on mobile (375px) — pass.
- Base font sizing in Persian body copy appears to be comfortably ≥16px in the captured screenshots (headings and body text in the blog cards, error banners, and modal are all clearly legible without zooming) — pass.
- Bottom tab bar sizing (73x59px targets) — pass, exceeds the 48x48px minimum.
- Header icon buttons and "دیدن همه" links — fail the 48x48px minimum (Finding 3).
- Viewport meta tag (`width=device-width, initial-scale=1`) present — pass.
- Layout containers reflow correctly between the compact mobile header and the full desktop header (two structurally different header markups are shipped, gated by `lg:hidden` / `hidden lg:block`), and both render without overlap or clipping in the captured screenshots.

---

## Summary Table

| # | Finding | Severity | Area |
|---|---|---|---|
| 1 | API backend returns HTTP 500 on every product/category/slider endpoint (missing PHP Redis extension); stack traces leaked (APP_DEBUG on) | Critical | Backend/Infra (blocks all visual/commerce audit of real content) |
| 2 | No `<h1>` on homepage | High | SEO / Accessibility |
| 3 | Header search/cart icon buttons (36-39px wide) and "دیدن همه" links (16px tall) are under 48x48px tap-target minimum | Medium | Mobile UX / Accessibility |
| 4 | Footer logo image is broken (404 via `_ipx` proxy); header logo uses a different, working source | Low-Medium | Visual polish |
| 5 | `robots.txt` / `sitemap.xml` return full SPA shell instead of proper content/status | Low | SEO hygiene |
| — | RTL layout, icon mirroring, nav order, modal button order | Pass | RTL correctness |
| — | No horizontal scroll at 375px/1920px | Pass | Mobile responsiveness |

## Files Referenced
- Screenshots: `/media/sam/Dev1/Front/nar30i3.ir/new.nar30i3.ir-audit/screenshots/home_desktop.png`, `home_desktop_full.png`, `home_mobile.png`, `home_mobile_full.png`, `product_desktop.png`, `product_desktop_full.png`, `product_mobile.png`, `product_mobile_full.png`
- This report: `/media/sam/Dev1/Front/nar30i3.ir/new.nar30i3.ir-audit/findings/visual.md`
