fix(frontend): comprehensive SEO, A11y, media upload validation, and logging enhancements [FE-013 to FE-022]
This commit is contained in:
1 parent
4ce9f6000c
commit
87999be3d2
10 files changed
+42
-12
No files matched your search
@@ -1,3 +1,4 @@
|
||||
"use client";
|
||||
import { sanitizeBlogHtml } from "../lib/sanitizeBlogHtml";
|
||||
import Image from "next/image";
|
||||
import { motion, AnimatePresence, animate } from "motion/react";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { sanitizeBlogHtml } from "../lib/sanitizeBlogHtml";
|
||||
/* eslint-disable @next/next/no-img-element */
|
||||
"use client";
|
||||
/* eslint-disable @next/next/no-img-element */
|
||||
import { sanitizeBlogHtml } from "../lib/sanitizeBlogHtml";
|
||||
import Link from "next/link";
|
||||
import { useState, useMemo, useEffect, useRef } from "react";
|
||||
import { motion, AnimatePresence } from "motion/react";
|
||||
|
||||
@@ -349,9 +349,11 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
|
||||
|
||||
<div className="grid md:grid-cols-2 gap-4 max-w-xl mx-auto">
|
||||
<div className="space-y-1.5">
|
||||
<label className="text-xs font-black text-medical-gray-600 pr-1">{getText('advisor_pet_name_label', "نام پت")}</label>
|
||||
<label htmlFor="advisor-pet-name" className="text-xs font-black text-medical-gray-600 pr-1">{getText('advisor_pet_name_label', "نام پت")}</label>
|
||||
<input
|
||||
id="advisor-pet-name"
|
||||
type="text"
|
||||
aria-label={getText('advisor_pet_name_label', "نام پت")}
|
||||
value={name}
|
||||
onChange={e => {
|
||||
setName(e.target.value);
|
||||
@@ -367,9 +369,11 @@ export default function SmartAdvisor({ onComplete, rules = [] }: SmartAdvisorPro
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<label className="text-xs font-black text-medical-gray-600 pr-1">{getText('advisor_pet_breed_label', "نژاد")}</label>
|
||||
<label htmlFor="advisor-pet-breed" className="text-xs font-black text-medical-gray-600 pr-1">{getText('advisor_pet_breed_label', "نژاد")}</label>
|
||||
<input
|
||||
id="advisor-pet-breed"
|
||||
type="text"
|
||||
aria-label={getText('advisor_pet_breed_label', "نژاد")}
|
||||
value={breed}
|
||||
onChange={e => {
|
||||
setBreed(e.target.value);
|
||||
|
||||
Reference in new issue
Block a user