From f3234ef39234a5303f22c76923db4340f3a337d0 Mon Sep 17 00:00:00 2001 From: Sangelo Date: Sun, 11 Jun 2023 15:08:14 +0200 Subject: [PATCH] Initial Work on Mod Info Cards --- src/lib/modules/ModInfo.svelte | 61 +++ src/routes/+page.svelte | 5 +- src/routes/modlist/+page.svelte | 361 +++++++++--------- static/assets/icons/platforms/curse-white.svg | 10 + static/assets/icons/platforms/curse.svg | 10 + .../assets/icons/platforms/modrinth-white.svg | 11 + static/assets/icons/platforms/modrinth.svg | 11 + static/assets/modlist/list.json | 16 + 8 files changed, 312 insertions(+), 173 deletions(-) create mode 100644 src/lib/modules/ModInfo.svelte create mode 100644 static/assets/icons/platforms/curse-white.svg create mode 100644 static/assets/icons/platforms/curse.svg create mode 100644 static/assets/icons/platforms/modrinth-white.svg create mode 100644 static/assets/icons/platforms/modrinth.svg create mode 100644 static/assets/modlist/list.json diff --git a/src/lib/modules/ModInfo.svelte b/src/lib/modules/ModInfo.svelte new file mode 100644 index 0000000..3777206 --- /dev/null +++ b/src/lib/modules/ModInfo.svelte @@ -0,0 +1,61 @@ + + +
+
+ {#each mods as mod, index (mod.name)} +
+ {mod.name} +
+
+

{mod.name} | by {mod.author}

+

+ {#if mod.description} + {@html mod.description} + {/if} +

+

+ Platforms: + {#each mod.platforms as platform} + {#if platform.url} + + {platform.name} + + {:else if platform.name} + + {platform.name} + + {/if} + {/each} +

+

+ {mod.loaders} | {mod.version} +

+
+
+
+ {/each} +
+
+ + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1ee2cf9..9e9dabd 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -46,6 +46,9 @@ .buttons { margin-left: 25%; margin-right: 25%; - margin-bottom: 2em; + margin-bottom: 1em; + } + .buttons [role="button"] { + margin-bottom: 1em; } \ No newline at end of file diff --git a/src/routes/modlist/+page.svelte b/src/routes/modlist/+page.svelte index aa7968f..c50c460 100644 --- a/src/routes/modlist/+page.svelte +++ b/src/routes/modlist/+page.svelte @@ -1,185 +1,202 @@ + +

Modlist

+ +
+ +
+
+
+
    +
      +
    • +
    • Ad Astra!
    • +
    • Ada Paxels
    • +
    • Adorn
    • +
    • Advancement Plaques
    • +
    • AdventureZ
    • +
    • Alloy Forgery
    • +
    • Amethyst Tools
    • +
    • Angling Mod
    • +
    • Another Furniture
    • +
    • AntiGhost
    • +
    • Applied Energistics 2
    • +
    • Architectury
    • +
    • Auditory
    • +
    • Balm
    • +
    • Biome Makeover
    • +
    • Blocks
    • +
    • Boat Item View Fabric
    • +
    • Botarium
    • +
    • Chisel Refabricated
    • +
    • Chunky
    • +
    • Cloth Config v8
    • +
    • Continuity
    • +
    • Controlling For Fabric
    • +
    • Crafting Tweaks
    • +
    • Create Crafts and Additions
    • +
    • Croptopia
    • +
    • Detail Armor Bar
    • +
    • Eating Animaton
    • +
    • EldritchMobs
    • +
    • Enchanted Vertical Slabs
    • +
    • Enchanting Infuser
    • +
    • EntityCulling-Fabric
    • +
    • Extractinator
    • +
    • ExtrasSounds
    • +
    • Fabric language Kotlin
    • +
    • Fabric Waystones
    • +
    • Factory Blocks Mod
    • +
    • Falling Leaves
    • +
    • Fastback
    • +
    • FerriteCore
    • +
    • Frame
    • +
    • Global Packs
    • +
    • Hold That Chunk
    • +
    • Icarus
    • +
    • Iceberg
    • +
    • Indium
    • +
    • Interactic
    • +
    • Jade Addons
    • +
    • Konkrete
    • +
    • Ksyxis
    • +
    • Labels
    • +
    • Language Reload
    • +
    +
+
+
+
    +
  • Legendary Tooltips
  • +
  • Limits' Grapple
  • +
  • Ma Enchants
  • +
  • Macaw's Bridges
  • +
  • Macaw's Bridges BYG
  • +
  • Macaw's Doors
  • +
  • Macaw's Fences and Walls
  • +
  • Macaw's Furniture
  • +
  • Macaw's Paintings
  • +
  • Macaw's Paths and Pavings
  • +
  • Macaw's Roofs BYG
  • +
  • Macaw's Trapdoors
  • +
  • Macaw's Trapdoors
  • +
  • Macaw's Windows
  • +
  • Main Menu Credits
  • +
  • Mimic
  • +
  • Missing Wilds
  • +
  • MixinTrace
  • +
  • Mod Menu
  • +
  • Moonlight
  • +
  • More Chat History
  • +
  • MoreCreativeTabs
  • +
  • Mythic Metals
  • +
  • Mythic Upgrades
  • +
  • Naturalist
  • +
  • Nature's Compass
  • +
  • NiceLoad
  • +
  • No chat Reports
  • +
  • No Mob Farm
  • +
  • NotEnoughAnimations
  • +
  • Numismatic Overhaul
  • +
  • OPAC Create Mod Support
  • +
  • Open parties and claims
  • +
  • Pehkui
  • +
  • Polymorph
  • +
  • Powah!
  • +
  • Prism
  • +
  • Puzzle
  • +
  • Quartz Elevator
  • +
  • Quilt Loading Screen
  • +
  • Quiltgoslightyfasterlol
  • +
  • Recipe Book Is Pain
  • +
  • Reesse's Sodium Options
  • +
  • Resourcefulconfig
  • +
  • Roughly Enough Items
  • +
  • Satin
  • +
  • ServerCore
  • +
  • Sky Villages
  • +
  • Smooth boot
  • +
  • Sodium
  • +
  • Sodium Extra
  • +
  • Sound physics Remastered
  • +
  • Starlight
  • +
  • TerraBlender
  • +
  • Travaler's Backpack
  • +
  • Twigs
  • +
  • Villager Hats
  • +
  • Xareo's Minimap
  • +
  • Xareo's World Map
  • +
  • Your'e in Grave Danger
  • +
  • Your Reputation
  • +
  • YUNG's Better Desert Temples
  • +
  • YUNG's Better Dungeons
  • +
  • YUNG's Better Mineshaft
  • +
  • YUNG's Better Ocean Monuments
  • +
  • YUNG's Better Strongholds
  • +
+
+
+
+ + Optional Mods +
    -
      -
    • Accurate Maps
    • -
    • Ad Astra!
    • -
    • Ada Paxels
    • -
    • Adorn
    • -
    • Advancement Plaques
    • -
    • AdventureZ
    • -
    • Alloy Forgery
    • -
    • Amethyst Tools
    • -
    • Angling Mod
    • -
    • Another Furniture
    • -
    • AntiGhost
    • -
    • Applied Energistics 2
    • -
    • Architectury
    • -
    • Auditory
    • -
    • Balm
    • -
    • Biome Makeover
    • -
    • Blocks
    • -
    • Boat Item View Fabric
    • -
    • Botarium
    • -
    • Chisel Refabricated
    • -
    • Chunky
    • -
    • Cloth Config v8
    • -
    • Continuity
    • -
    • Controlling For Fabric
    • -
    • Crafting Tweaks
    • -
    • Create Crafts and Additions
    • -
    • Croptopia
    • -
    • Detail Armor Bar
    • -
    • Eating Animaton
    • -
    • EldritchMobs
    • -
    • Enchanted Vertical Slabs
    • -
    • Enchanting Infuser
    • -
    • EntityCulling-Fabric
    • -
    • Extractinator
    • -
    • ExtrasSounds
    • -
    • Fabric language Kotlin
    • -
    • Fabric Waystones
    • -
    • Factory Blocks Mod
    • -
    • Falling Leaves
    • -
    • Fastback
    • -
    • FerriteCore
    • -
    • Frame
    • -
    • Global Packs
    • -
    • Hold That Chunk
    • -
    • Icarus
    • -
    • Iceberg
    • -
    • Indium
    • -
    • Interactic
    • -
    • Jade Addons
    • -
    • Konkrete
    • -
    • Ksyxis
    • -
    • Labels
    • -
    • Language Reload
    • - -
    - +
  • 3D Skin Layers
  • +
  • Animatica
  • +
  • AppleSkin
  • +
  • Better F3
  • +
  • CapeTweaks
  • +
  • Chat Heads
  • +
  • Chunks fade in
  • +
  • CIT Resewn
  • +
  • ClickTrough
  • +
  • DashLoader
  • +
  • Draggable Resource Packs
  • +
  • Dynamic FPS
    -
  • Legendary Tooltips
  • -
  • Limits' Grapple
  • -
  • Ma Enchants
  • -
  • Macaw's Bridges
  • -
  • Macaw's Bridges BYG
  • -
  • Macaw's Doors
  • -
  • Macaw's Fences and Walls
  • -
  • Macaw's Furniture
  • -
  • Macaw's Paintings
  • -
  • Macaw's Paths and Pavings
  • -
  • Macaw's Roofs BYG
  • -
  • Macaw's Trapdoors
  • -
  • Macaw's Trapdoors
  • -
  • Macaw's Windows
  • -
  • Main Menu Credits
  • -
  • Mimic
  • -
  • Missing Wilds
  • -
  • MixinTrace
  • -
  • Mod Menu
  • -
  • Moonlight
  • -
  • More Chat History
  • -
  • MoreCreativeTabs
  • -
  • Mythic Metals
  • -
  • Mythic Upgrades
  • -
  • Naturalist
  • -
  • Nature's Compass
  • -
  • NiceLoad
  • -
  • No chat Reports
  • -
  • No Mob Farm
  • -
  • NotEnoughAnimations
  • -
  • Numismatic Overhaul
  • -
  • OPAC Create Mod Support
  • -
  • Open parties and claims
  • -
  • Pehkui
  • -
  • Polymorph
  • -
  • Powah!
  • -
  • Prism
  • -
  • Puzzle
  • -
  • Quartz Elevator
  • -
  • Quilt Loading Screen
  • -
  • Quiltgoslightyfasterlol
  • -
  • Recipe Book Is Pain
  • -
  • Reesse's Sodium Options
  • -
  • Resourcefulconfig
  • -
  • Roughly Enough Items
  • -
  • Satin
  • -
  • ServerCore
  • -
  • Sky Villages
  • -
  • Smooth boot
  • -
  • Sodium
  • -
  • Sodium Extra
  • -
  • Sound physics Remastered
  • -
  • Starlight
  • -
  • TerraBlender
  • -
  • Travaler's Backpack
  • -
  • Twigs
  • -
  • Villager Hats
  • -
  • Xareo's Minimap
  • -
  • Xareo's World Map
  • -
  • Your'e in Grave Danger
  • -
  • Your Reputation
  • -
  • YUNG's Better Desert Temples
  • -
  • YUNG's Better Dungeons
  • -
  • YUNG's Better Mineshaft
  • -
  • YUNG's Better Ocean Monuments
  • -
  • YUNG's Better Strongholds
  • +
  • Effective 💦
  • +
  • EmuNO
  • +
  • Iris shaders
  • +
  • Jade 🔍
  • +
  • Kappa
  • +
  • LambdaBetterGrass
  • +
  • LambDynamicLights
  • +
  • Mouse Wheelie
  • +
  • Ok Zoomer
  • +
  • Presence Footsteps
  • +
  • Reese’s Sodium Options
  • +
  • Too many Binds
-
- Optional Mods -
-
-
    -
  • 3D Skin Layers
  • -
  • Animatica
  • -
  • AppleSkin
  • -
  • Better F3
  • -
  • CapeTweaks
  • -
  • Chat Heads
  • -
  • Chunks fade in
  • -
  • CIT Resewn
  • -
  • ClickTrough
  • -
  • DashLoader
  • -
  • Draggable Resource Packs
  • -
  • Dynamic FPS
  • -
-
-
-
    -
  • Effective 💦
  • -
  • EmuNO
  • -
  • Iris shaders
  • -
  • Jade 🔍
  • -
  • Kappa
  • -
  • LambdaBetterGrass
  • -
  • LambDynamicLights
  • -
  • Mouse Wheelie
  • -
  • Ok Zoomer
  • -
  • Presence Footsteps
  • -
  • Reese’s Sodium Options
  • -
  • Too many Binds
  • -
-
-
- -
+
- \ No newline at end of file + .column { + width: 50%; + float: left; + } + diff --git a/static/assets/icons/platforms/curse-white.svg b/static/assets/icons/platforms/curse-white.svg new file mode 100644 index 0000000..987cd41 --- /dev/null +++ b/static/assets/icons/platforms/curse-white.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/static/assets/icons/platforms/curse.svg b/static/assets/icons/platforms/curse.svg new file mode 100644 index 0000000..d9b1693 --- /dev/null +++ b/static/assets/icons/platforms/curse.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/static/assets/icons/platforms/modrinth-white.svg b/static/assets/icons/platforms/modrinth-white.svg new file mode 100644 index 0000000..7a67ef8 --- /dev/null +++ b/static/assets/icons/platforms/modrinth-white.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/static/assets/icons/platforms/modrinth.svg b/static/assets/icons/platforms/modrinth.svg new file mode 100644 index 0000000..e06a5fa --- /dev/null +++ b/static/assets/icons/platforms/modrinth.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/static/assets/modlist/list.json b/static/assets/modlist/list.json new file mode 100644 index 0000000..0f47341 --- /dev/null +++ b/static/assets/modlist/list.json @@ -0,0 +1,16 @@ +[ + { + "name": "Accurate Maps", + "description": "Accurate Maps works by sending extra info to the client about the block being represented in the map.
With that extra info, the client can then calculate the color of the block in a more accurate way. If the map being rendered does not have additional info, the renderer will fall back to the vanilla colors, so mods that use the vanilla map system to render custom stuff will not be affected.", + "loaders": ["Fabric"], + "version": "1.19.2", + "author": "D4rkness_King", + "platforms": [ + { + "name": "Modrinth", + "id": "modrinth", + "url": "https://modrinth.com/mod/accurate-maps" + } + ] + } +]