|
| 1 | +import React from 'react'; |
| 2 | +import {StarIcon} from '@phosphor-icons/react'; |
| 3 | + |
| 4 | +const RatingSystemDetail = () => { |
| 5 | + const renderStars = (rating) => { |
| 6 | + return ( |
| 7 | + <div className="flex gap-0.5"> |
| 8 | + {[...Array(5)].map((_, i) => ( |
| 9 | + <StarIcon |
| 10 | + key={i} |
| 11 | + size={14} |
| 12 | + weight="fill" |
| 13 | + className={i < rating ? 'text-yellow-500' : 'text-gray-700'} |
| 14 | + /> |
| 15 | + ))} |
| 16 | + </div> |
| 17 | + ); |
| 18 | + }; |
| 19 | + |
| 20 | + return ( |
| 21 | + <div className="space-y-6"> |
| 22 | + <div className="bg-gray-800/50 p-4 rounded-lg border border-gray-700"> |
| 23 | + <h3 className="text-white font-bold mb-2">Philosophy</h3> |
| 24 | + <p className="text-sm text-gray-400"> |
| 25 | + Ratings are subjective and reflect personal enjoyment at the time of |
| 26 | + consumption. Context matters—a "bad" movie might be a 5-star |
| 27 | + experience with the right friends. |
| 28 | + </p> |
| 29 | + </div> |
| 30 | + |
| 31 | + <div className="space-y-4"> |
| 32 | + <h3 className="text-white font-bold border-b border-gray-800 pb-2"> |
| 33 | + The Scale |
| 34 | + </h3> |
| 35 | + |
| 36 | + <div className="space-y-1"> |
| 37 | + <div className="flex items-center justify-between"> |
| 38 | + <span className="text-yellow-400 font-bold">Masterpiece</span> |
| 39 | + {renderStars(5)} |
| 40 | + </div> |
| 41 | + <p className="text-xs text-gray-500"> |
| 42 | + Life-changing, genre-defining, or simply perfect in its execution. |
| 43 | + These are rare and cherished. |
| 44 | + </p> |
| 45 | + </div> |
| 46 | + |
| 47 | + <div className="space-y-1"> |
| 48 | + <div className="flex items-center justify-between"> |
| 49 | + <span className="text-green-400 font-bold">Excellent</span> |
| 50 | + {renderStars(4)} |
| 51 | + </div> |
| 52 | + <p className="text-xs text-gray-500"> |
| 53 | + Highly recommended. Thoroughly enjoyable with minor flaws or just |
| 54 | + missing that "spark" of perfection. |
| 55 | + </p> |
| 56 | + </div> |
| 57 | + |
| 58 | + <div className="space-y-1"> |
| 59 | + <div className="flex items-center justify-between"> |
| 60 | + <span className="text-blue-400 font-bold">Good</span> |
| 61 | + {renderStars(3)} |
| 62 | + </div> |
| 63 | + <p className="text-xs text-gray-500"> |
| 64 | + Worth your time. Solid, entertaining, but perhaps forgettable or |
| 65 | + flawed in noticeable ways. |
| 66 | + </p> |
| 67 | + </div> |
| 68 | + |
| 69 | + <div className="space-y-1"> |
| 70 | + <div className="flex items-center justify-between"> |
| 71 | + <span className="text-orange-400 font-bold">Mediocre</span> |
| 72 | + {renderStars(2)} |
| 73 | + </div> |
| 74 | + <p className="text-xs text-gray-500"> |
| 75 | + Has moments of merit but largely disappoints. Frustrating or simply |
| 76 | + boring. |
| 77 | + </p> |
| 78 | + </div> |
| 79 | + |
| 80 | + <div className="space-y-1"> |
| 81 | + <div className="flex items-center justify-between"> |
| 82 | + <span className="text-red-400 font-bold">Poor</span> |
| 83 | + {renderStars(1)} |
| 84 | + </div> |
| 85 | + <p className="text-xs text-gray-500"> |
| 86 | + Active dislike. A waste of time. Avoid unless you enjoy suffering. |
| 87 | + </p> |
| 88 | + </div> |
| 89 | + </div> |
| 90 | + <div className="space-y-2 pt-4"> |
| 91 | + <h3 className="text-white font-bold border-b border-gray-800 pb-2">Inspiration</h3> |
| 92 | + <p className="text-sm text-gray-400"> |
| 93 | + This rating system is heavily inspired by the classic <strong>X-Play (G4TV)</strong> scale. |
| 94 | + We believe in the sanctity of the 3-star review: a 3 is not bad, it |
| 95 | + is <strong>average</strong> or <strong>solid</strong>. |
| 96 | + Grade inflation has no place here. |
| 97 | + </p> |
| 98 | + </div> |
| 99 | + <div className="mt-8 pt-6 border-t border-gray-800 text-xs text-gray-600 italic"> |
| 100 | + * Ratings may change upon re-evaluation. |
| 101 | + </div> |
| 102 | + </div> |
| 103 | + ); |
| 104 | +}; |
| 105 | +export default RatingSystemDetail; |
0 commit comments