diff --git a/pages/tags.tsx b/pages/tags.tsx index 9db05c3..e7c539c 100644 --- a/pages/tags.tsx +++ b/pages/tags.tsx @@ -15,14 +15,27 @@ const useStyles = makeStyles(() => ({ // eslint-disable-next-line @typescript-eslint/no-explicit-any export default function Tags(props: any) { const classes = useStyles(); - const Mane6=['rarity',"applejack","twilight sparkle","fluttershy","rainbow dash","pinkie pie"] + const characters=["ahuizotl","amethyst star","amira","angel bunny","apple bloom","apple bumpkin","athena sparkle","autumn blaze","babs seed","berry dreams","berry punch","big macintosh","big daddy mccolt","blossomforth","bon bon","braeburn","bright mac","bulk biceps","chancellor puddinghead","cheerilee","cherry jubilee","cinder glow","clover the clever","coco pommel","coloratura","daybreaker","daring do","derpy hooves","discord","diamond tiara","fancypants","flim","flam","fleur-de-lis","flash sentry","granny smith","joan pommelway","lemon hearts","lyra heartstrings","maud pie","mayor mare","scootaloo","shining armor","silver spoon","silverstream","smart cookie","snips","snails",`soarin'`,"spike","spitfire","star swirl the bearded","star hunter","starlight glimmer","steven magnet","sugar belle","sunset shimmer","sweetie belle","tank","tempest shadow","thorax","trixie","twilight sparkle (alicorn)","twinkleshine","unicorn twilight","ursa","vapor trail","vinyl scratch","winona","zecora"] + const Mane6=["rarity","applejack","twilight sparkle","fluttershy","rainbow dash","pinkie pie"] + const Seasons=["winter","spring","summer","autumn"] + const Styles=["traditional art","watercolor painting","acrylic painting","digital painting","oil painting","painting","bob ross","classic art","concept art","digital art","fine art emulation","fine art parody","pixel art","sketch","monochrome"] const Tags=[] const Mane6_tags=[] - for(const [tag_name,number_of_pictures] of props.tags){ - const tag= - if(Mane6.includes(tag_name)){ + const Seasons_tags=[] + const Characters_tags=[] + const Styles_tags=[] + for (const [tag_name, number_of_pictures] of props.tags) { + const tag = + if (Mane6.includes(tag_name)) { Mane6_tags.push(tag) - }else{ + } else if (Seasons.includes(tag_name)) { + Seasons_tags.push(tag) + }else if(characters.includes(tag_name)){ + Characters_tags.push(tag) + }else if(Styles.includes(tag_name)){ + Styles_tags.push(tag) + } + else { Tags.push(tag) } } @@ -33,6 +46,18 @@ export default function Tags(props: any) { Mane 6 {Mane6_tags} + + Characters + + {Characters_tags} + + Seasons + + {Seasons_tags} + + Styles + + {Styles_tags} Other