@ -66,21 +66,23 @@ function Video({
/ >
/ >
< div className = "flex flex-col py-1 pr-3" >
< div className = "flex flex-col py-1 pr-3" >
< strong className = "text-blue5F leading-7 text-lg dark:text-white font-black" >
< strong className = "text-blue5F leading-7 text-lg dark:text-white font-black" >
{ "دوره ویدئویی" + " " + book ? . product [ 2 ] ? . name }
{ window . t ( "دوره ویدئویی") + " " + book ? . product [ 2 ] ? . name }
< / s t r o n g >
< / s t r o n g >
< span className = "text-blueC0 text-base dark:text-greenBA font-semibold mt-3 mb-5" >
< span className = "text-blueC0 text-base dark:text-greenBA font-semibold mt-3 mb-5" >
{ "پایه" + " " + ( grades [ book ? . gradeId ] || "پایه دوازدهم" ) }
{ window . t ( "پایه" ) +
" " +
( grades [ book ? . gradeId ] || window . t ( "پایه دوازدهم" ) ) }
< / s p a n >
< / s p a n >
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< div className = "flex flex-col flex-1 justify-between my-5" >
< div className = "flex flex-col flex-1 justify-between my-5" >
< Button
< Button
title = {
title = {
"خرید با قیمت" +
window . t ( "خرید با قیمت") +
" " +
" " +
separate ( book ? . product [ 2 ] ? . price ) +
separate ( book ? . product [ 2 ] ? . price ) +
" " +
" " +
"تومان"
window . t ( "تومان")
}
}
backgroundColor = { isDark ? "bg-blueC0" : "bg-blueC0" }
backgroundColor = { isDark ? "bg-blueC0" : "bg-blueC0" }
border = { {
border = { {
@ -97,7 +99,7 @@ function Video({
userId : userId ,
userId : userId ,
count : 1 ,
count : 1 ,
} )
} )
: toast . info ( "ابتدا وارد حساب کاربری خود شوید.")
: toast . info ( window . t ( "ابتدا وارد حساب کاربری خود شوید.") )
}
}
/ >
/ >
< / d i v >
< / d i v >
@ -119,7 +121,7 @@ function Video({
< ProductTab
< ProductTab
tabs = { [
tabs = { [
{
{
title : "سر فصل ها",
title : window . t ( "سر فصل ها") ,
shown : true ,
shown : true ,
components : (
components : (
< div className = "flex flex-col w-full mt-5 gap-5" >
< div className = "flex flex-col w-full mt-5 gap-5" >
@ -132,7 +134,7 @@ function Video({
) ,
) ,
} ,
} ,
{
{
title : "مشخصات",
title : window . t ( "مشخصات") ,
shown : book ? . product . filter (
shown : book ? . product . filter (
( product ) => product ? . productType === 4
( product ) => product ? . productType === 4
) ? . properties ? . length ,
) ? . properties ? . length ,
@ -147,20 +149,20 @@ function Video({
) ,
) ,
} ,
} ,
{
{
title : "نقد و بررسی",
title : window . t ( "نقد و بررسی") ,
shown : true ,
shown : true ,
components : (
components : (
< div className = "bg-gray-100 rounded-md mt-4 w-full flex justify-center items-center h-40 text-green4F text-tiny" >
< div className = "bg-gray-100 rounded-md mt-4 w-full flex justify-center items-center h-40 text-green4F text-tiny" >
این بخش فعلا قابل دسترسی نیست .
{ window . t ( "این بخش فعلا قابل دسترسی نیست." ) }
< / d i v >
< / d i v >
) ,
) ,
} ,
} ,
{
{
title : "پرسش و پاسخ",
title : window . t ( "پرسش و پاسخ") ,
shown : true ,
shown : true ,
components : (
components : (
< div className = "bg-gray-100 rounded-md mt-4 w-full flex justify-center items-center h-40 text-green4F text-tiny" >
< div className = "bg-gray-100 rounded-md mt-4 w-full flex justify-center items-center h-40 text-green4F text-tiny" >
این بخش فعلا قابل دسترسی نیست .
{ window . t ( "این بخش فعلا قابل دسترسی نیست." ) }
< / d i v >
< / d i v >
) ,
) ,
} ,
} ,
@ -171,24 +173,28 @@ function Video({
< div className = "w-3/12 flex flex-col" style = { { minWidth : 350 } } >
< div className = "w-3/12 flex flex-col" style = { { minWidth : 350 } } >
< div className = "w-full flex flex-col pr-2 py-2 border-0" >
< div className = "w-full flex flex-col pr-2 py-2 border-0" >
< h1 className = "text-blue5F leading-7 mb-3 font-semibold text-xl dark:text-white" >
< h1 className = "text-blue5F leading-7 mb-3 font-semibold text-xl dark:text-white" >
{ "دوره ویدئویی" + " " + book ? . product [ 2 ] ? . name }
{ window . t ( "دوره ویدئویی") + " " + book ? . product [ 2 ] ? . name }
< / h 1 >
< / h 1 >
< div className = "text-blueC0 text-tiny dark:text-greenBA font-bold" >
< div className = "text-blueC0 text-tiny dark:text-greenBA font-bold" >
{ "پایه" + " " + grades [ book ? . gradeId ] }
{ window . t ( "پایه") + " " + grades [ book ? . gradeId ] }
< / d i v >
< / d i v >
< div className = "flex justify-end" >
< div className = "flex justify-end" >
< div className = "p-2" >
< div className = "p-2" >
< StarRating value = { book ? . product [ 2 ] ? . rate || 4 } / >
< StarRating value = { book ? . product [ 2 ] ? . rate || 4 } / >
< / d i v >
< / d i v >
< div className = "p-2 border-0 border-solid border-r border-gray-100 text-sm text-gray-400" >
< div className = "p-2 border-0 border-solid border-r border-gray-100 text-sm text-gray-400" >
بیش از { book ? . product [ 2 ] ? . suggestedCounter } نفر امتیاز داده اند
{ window . t ( "بیش از" ) }
{ book ? . product [ 2 ] ? . suggestedCounter }
{ window . t ( "نفر امتیاز داده اند" ) }
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< / d i v >
< div className = "bg-grayF9 w-full flex flex-col rounded-md divide-y divide-solid divide-gray-200 mb-4 px-4" >
< div className = "bg-grayF9 w-full flex flex-col rounded-md divide-y divide-solid divide-gray-200 mb-4 px-4" >
< div className = "flex flex-row items-center w-full gap-5 my-5" >
< div className = "flex flex-row items-center w-full gap-5 my-5" >
< img src = { tickIcon } alt = "" className = "w-9" / >
< img src = { tickIcon } alt = "" className = "w-9" / >
< p className = "text-blue52 text-sm font-light" > { ` توصیه خرید توسط ${ book ? . product [ 2 ] ? . suggestedCounter } نفر ` } < / p >
< p className = "text-blue52 text-sm font-light" > { ` ${ window . t (
"توصیه خرید توسط"
) } $ { book ? . product [ 2 ] ? . suggestedCounter } $ { window . t ( "نفر" ) } ` }</p>
< / d i v >
< / d i v >
< div className = "flex flex-row items-center py-3" >
< div className = "flex flex-row items-center py-3" >
< img
< img
@ -200,7 +206,7 @@ function Video({
onClick = { ( ) => addToFavorite ( { [ bookmark ] : location . getId ( ) } ) }
onClick = { ( ) => addToFavorite ( { [ bookmark ] : location . getId ( ) } ) }
/ >
/ >
< span className = "mr-3 text-sm" >
< span className = "mr-3 text-sm" >
اضافه کردن به لیست علاقه مندی ها
{ window . t ( "اضافه کردن به لیست علاقه مندی ها" ) }
< / s p a n >
< / s p a n >
< / d i v >
< / d i v >
< div className = "flex flex-col w-full py-4 px-4" >
< div className = "flex flex-col w-full py-4 px-4" >
@ -208,17 +214,19 @@ function Video({
< strong className = "text-blueC0 text-5xl" >
< strong className = "text-blueC0 text-5xl" >
{ separate ( book ? . product [ 2 ] ? . price ) }
{ separate ( book ? . product [ 2 ] ? . price ) }
< / s t r o n g >
< / s t r o n g >
< span className = "text-sm text-gray-500" > تومان < / s p a n >
< span className = "text-sm text-gray-500" >
{ window . t ( "تومان" ) }
< / s p a n >
< / d i v >
< / d i v >
{ book ? . product [ 2 ] ? . fakePrice ? (
{ book ? . product [ 2 ] ? . fakePrice ? (
< p className = "text-gray-500 text-xs text-center mt-2 mb-4" >
< p className = "text-gray-500 text-xs text-center mt-2 mb-4" >
با خرید این کالا 540.000 صرفه جویی کنید
{ window . t ( "با خرید این کالا 540.000 صرفه جویی کنید" ) }
< / p >
< / p >
) : (
) : (
< div className = "mb-4" > < / d i v >
< div className = "mb-4" > < / d i v >
) }
) }
< Button
< Button
title = "اضافه کردن به سبد خرید"
title = { window . t ( "اضافه کردن به سبد خرید") }
backgroundColor = { isDark ? "bg-blueC0" : "bg-blueC0" }
backgroundColor = { isDark ? "bg-blueC0" : "bg-blueC0" }
border = { {
border = { {
color : isDark ? "#ffffff55" : "#196EC055" ,
color : isDark ? "#ffffff55" : "#196EC055" ,
@ -234,7 +242,7 @@ function Video({
userId : userId ,
userId : userId ,
count : 1 ,
count : 1 ,
} )
} )
: toast . info ( "ابتدا وارد حساب کاربری خود شوید.")
: toast . info ( window . t ( "ابتدا وارد حساب کاربری خود شوید.") )
}
}
/ >
/ >
< / d i v >
< / d i v >
@ -243,7 +251,7 @@ function Video({
to = { "/products/" + location . getId ( ) }
to = { "/products/" + location . getId ( ) }
className = "bg-blueC0 text-green7B bg-opacity-5 font-semibold text-tiny rounded-md border border-solid border-blueC0 w-full py-4 text-center flex flex-row items-center justify-center"
className = "bg-blueC0 text-green7B bg-opacity-5 font-semibold text-tiny rounded-md border border-solid border-blueC0 w-full py-4 text-center flex flex-row items-center justify-center"
>
>
مشاهده کتاب این محصول
{ window . t ( "مشاهده کتاب این محصول" ) }
< img src = { arrow } alt = "" className = "mr-2 transform rotate-90 w-5" / >
< img src = { arrow } alt = "" className = "mr-2 transform rotate-90 w-5" / >
< / L i n k >
< / L i n k >
< / d i v >
< / d i v >