|
|
@ -1,25 +1,30 @@ |
|
|
|
import React from "react"; |
|
|
|
import React from "react"; |
|
|
|
|
|
|
|
import separate from '../../../utils/separate'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//components
|
|
|
|
import StarRating from "../../../components/StarRating"; |
|
|
|
import StarRating from "../../../components/StarRating"; |
|
|
|
import Progress from "../../../components/Progress"; |
|
|
|
import Progress from "../../../components/Progress"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Rate({ avarage, all, fields, desktop }) { |
|
|
|
function Rate({ avarage, all, fields, desktop }) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="w-full flex flex-row justify-between items-center mt-2"> |
|
|
|
<div className="w-full flex flex-row justify-between items-center mt-5"> |
|
|
|
<div className="flex flex-col items-center justify-center h-full ml-4"> |
|
|
|
<div className="flex flex-col items-center justify-center h-full ml-4"> |
|
|
|
{ |
|
|
|
{ |
|
|
|
desktop ? |
|
|
|
desktop ? |
|
|
|
<h1 className={`text-7xl text-gray-600 mb-2 font-bold dark:text-white`}> |
|
|
|
<h1 className={`text-gray-600 mb-2 font-bold dark:text-white`}> |
|
|
|
{avarage} |
|
|
|
{avarage} |
|
|
|
</h1> |
|
|
|
</h1> |
|
|
|
: |
|
|
|
: |
|
|
|
<strong className={`text-3xl text-blue5F mb-2 font-bold dark:text-white`}> |
|
|
|
<strong className={`text-blue5F mb-2 font-bold dark:text-white`} style={{ fontSize: 'calc(100vw / 10)' }}> |
|
|
|
{avarage} |
|
|
|
{avarage} |
|
|
|
</strong> |
|
|
|
</strong> |
|
|
|
} |
|
|
|
} |
|
|
|
<div className=""> |
|
|
|
<div className=""> |
|
|
|
<StarRating /> |
|
|
|
<StarRating /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span className="text-xs text-gray70 mt-2 dark:text-white">{all}</span> |
|
|
|
<span className="text-base text-gray70 mt-2 dark:text-white">{separate(all)}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<ul className="p-0 m-0 list-none flex flex-col flex-1"> |
|
|
|
<ul className="p-0 m-0 list-none flex flex-col flex-1"> |
|
|
|
{fields.map((item, index) => ( |
|
|
|
{fields.map((item, index) => ( |
|
|
|