|
| 1 | +'use client'; |
| 2 | + |
| 3 | +import React from 'react'; |
| 4 | +import { Badge } from '../types'; |
| 5 | + |
| 6 | +interface BadgeListProps { |
| 7 | + badges: Badge[]; |
| 8 | +} |
| 9 | + |
| 10 | +export const BadgeList: React.FC<BadgeListProps> = ({ badges }) => { |
| 11 | + return ( |
| 12 | + <div className="w-full max-w-5xl mx-auto px-4"> |
| 13 | + <div className="flex items-center gap-4 mb-4 pl-2"> |
| 14 | + <h2 className="text-xl font-medium text-[#1a4023]">取得したバッチ</h2> |
| 15 | + <div className="relative"> |
| 16 | + <select className="text-gray-700 appearance-none bg-white border border-border-[#1a4023] rounded px-4 py-1 pr-8 text-sm focus:outline-none "> |
| 17 | + <option>全て</option> |
| 18 | + <option>座学</option> |
| 19 | + <option>実技</option> |
| 20 | + </select> |
| 21 | + <div className="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"> |
| 22 | + <svg className="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> |
| 23 | + <path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/> |
| 24 | + </svg> |
| 25 | + </div> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + |
| 29 | + <div className="border-2 border-[#1a4023] rounded-[40px] bg-[#f8fff8] p-8 lg:p-12 min-h-[250px] lg:min-h-[300px] flex items-center justify-around relative overflow-hidden"> |
| 30 | + {/* Large Trophy on the left */} |
| 31 | + <div className="flex flex-col items-center justify-center transform scale-125 lg:scale-150"> |
| 32 | + <span className="text-[100px] lg:text-[120px] drop-shadow-lg filter">🏆</span> |
| 33 | + </div> |
| 34 | + |
| 35 | + {/* Medals on the right */} |
| 36 | + <div className="flex gap-8 lg:gap-12 items-end"> |
| 37 | + {/* Gold - 1st */} |
| 38 | + <div className="flex flex-col items-center"> |
| 39 | + <div className="relative"> |
| 40 | + <span className="text-[60px] lg:text-[80px] drop-shadow-md">🥇</span> |
| 41 | + |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + |
| 45 | + {/* Silver - 2nd */} |
| 46 | + <div className="flex flex-col items-center"> |
| 47 | + <div className="relative"> |
| 48 | + <span className="text-[60px] lg:text-[80px] drop-shadow-md">🥈</span> |
| 49 | + |
| 50 | + </div> |
| 51 | + </div> |
| 52 | + |
| 53 | + {/* Bronze - 3rd */} |
| 54 | + <div className="flex flex-col items-center"> |
| 55 | + <div className="relative"> |
| 56 | + <span className="text-[60px] lg:text-[80px] drop-shadow-md">🥉</span> |
| 57 | + |
| 58 | + </div> |
| 59 | + </div> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + ); |
| 64 | +}; |
0 commit comments