diff --git a/app/page.tsx b/app/page.tsx index 2aea74b..2246dc6 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,100 +1,100 @@ import Link from "next/link"; -import { Button } from "@/components/ui/button"; -import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"; +import {Button} from "@/components/ui/button"; +import {Card, CardHeader, CardTitle, CardContent} from "@/components/ui/card"; import imagesetConfig from "@/imageset.config.json"; import ImageSetConfig from "@/models/ImageSet"; -import { PlusCircledIcon } from "@radix-ui/react-icons"; +import {PlusCircledIcon} from "@radix-ui/react-icons"; import PackageCard from "@/components/PackageCard"; -import { Separator } from "@/components/ui/separator"; +import {Separator} from "@/components/ui/separator"; const typedImageSetConfig = imagesetConfig as ImageSetConfig; const FEATURED_SETS = { - "image-reachthefinals": ["all", "light", "medium", "heavy"], - "image-supervive": [ - "hunter", - "power", - "fighter", - "initiator", - "frontliner", - "protector", - "controller" - ], - "image-wutheringwaves": ["c_all", "c_rarity_5", "c_rarity_4"], - "image-overwatch": ["h_all", "tank", "dps", "sup"], - "image-webdev": ["all", "fe", "be", "fs"], - "image-helldivers2": [ - "Stratagems", - "Primaries", - "Secondaries", - "Grenades", - "Boosters" - ] - // Add more packages and their featured sets here + "image-reachthefinals": ["all", "light", "medium", "heavy"], + "image-supervive": [ + "hunter", + "power", + "fighter", + "initiator", + "frontliner", + "protector", + "controller" + ], + "image-wutheringwaves": ["c_all", "c_rarity_5", "c_rarity_4"], + "image-overwatch": ["h_all", "tank", "dps", "sup"], + "image-helldivers2": [ + "Stratagems", + "Primaries", + "Secondaries", + "Grenades", + "Boosters" + ], + "image-webdev": ["all", "fe", "be", "fs"], + // Add more packages and their featured sets here }; const Home = () => { - return ( -
-
-
-

+ return ( +
+
+
+

Free and Open-Source Tier Lists - + Craft, rank and share your passion with OpenTierBoy. -

-
- -
-
- -
-

- Create a New Tier List -

-
- {/* Featured sets */} - {Object.entries(FEATURED_SETS).map(([packageName, tags]) => { - const packageData = - typedImageSetConfig.packages[packageName]; - if (!packageData) return null; +

+
+ +
+
+ +
+

+ Create a New Tier List +

+
+ {/* Featured sets */} + {Object.entries(FEATURED_SETS).map(([packageName, tags]) => { + const packageData = + typedImageSetConfig.packages[packageName]; + if (!packageData) return null; - return ( - - ); - })} + return ( + + ); + })} - - - Others - - - - - - - -
-
- ); + + + Others + + + + + + + + + + ); }; export default Home; diff --git a/imageset.config.json b/imageset.config.json index 92046aa..56b14bf 100644 --- a/imageset.config.json +++ b/imageset.config.json @@ -2912,7 +2912,7 @@ "backgroundImage": "/splash/supervive-keyart.webp" }, "image-helldivers2": { - "displayName": "Helldivers 2", + "displayName": "HELLDIVERS 2", "images": [ { "filename": "ac8autocannon.webp", @@ -3781,7 +3781,9 @@ "description": "Images of Helldivers 2 secondary weapons", "category": "general" } - } + }, + "googleFont": "Chakra Petch", + "backgroundImage": "/splash/hd2-splash.webp" } } } \ No newline at end of file diff --git a/imageset.custom.json b/imageset.custom.json index 4a80240..7edfa3a 100644 --- a/imageset.custom.json +++ b/imageset.custom.json @@ -27,8 +27,9 @@ "backgroundImage": "/splash/supervive-keyart.webp" }, "image-helldivers2": { - "displayName": "Helldivers 2", - "backgroundImage": "" + "displayName": "HELLDIVERS 2", + "googleFont": "Chakra Petch", + "backgroundImage": "/splash/hd2-splash.webp" } } -} \ No newline at end of file +} diff --git a/lib/fonts.ts b/lib/fonts.ts index 29daafa..a0d4ccf 100644 --- a/lib/fonts.ts +++ b/lib/fonts.ts @@ -1,13 +1,15 @@ -import {Saira, Cinzel, Russo_One} from 'next/font/google'; +import {Saira, Cinzel, Russo_One, Chakra_Petch} from 'next/font/google'; const sairaFont = Saira({subsets: ['latin'], display: 'swap'}); const cinzelFont = Cinzel({subsets: ['latin'], display: 'swap'}); const russoOne = Russo_One({subsets: ['latin'], display: 'swap', weight: ['400']}); +const chakraPetch = Chakra_Petch({subsets: ['latin'], display: 'swap', weight: ['700']}) const fontDefinitions = { 'Saira': sairaFont, 'Cinzel': cinzelFont, 'Russo One': russoOne, + 'Chakra Petch': chakraPetch, }; export type FontName = keyof typeof fontDefinitions; diff --git a/public/splash/hd2-splash.webp b/public/splash/hd2-splash.webp new file mode 100644 index 0000000..1d72c01 Binary files /dev/null and b/public/splash/hd2-splash.webp differ