You've already forked AstralRinth
forked from didirus/AstralRinth
* launcher base gui initial * Bootstraps router, Omorphia, and prettier. * Adds pages. Adds Vuex. SideBar nav contains user section and pages section. * Adds Instance markup. Instances added to Home page. * Adds News to home page. * Adds settings to nav. Other touches. * Polishing initial base GUI. * Moves some styling to assets. Changes px values to rem. * Removes pointless border-radius CSS. * Implements Omorphia vars. * Adds trending mods section. * Updates home page. * Swaps Vuex implementation for Pinia. * Fixes invalid CSS on instance list item hover. * Adds @ path resolve for imports. * Fix some styling of row display * Cleaning up styles and markup. * Fixes overall layout issues. * Cleans up more styling. Modifies AppBar coloring. * Allows pagination arrows to conditionally appear in RowDisplay. * Adds paging behavior in RowDisplay. * Updates nav and settings button styling. * Brings in Knossos style for trending mods. Polishes News CSS. * Updates Omorphia. Starts addressing PR comments. * Addresses some more PR comments. * Changes side navigation styling. Active route class implemented. * Combines trending and popular row. * Makes images more realistic. Adds CTA to instances. * Converts all instances to card style. Converts more styles to rem. * Moves Navigation and UserSection into App.vue * Adds Modrinth favicon. * Removes unused styling. * Adds transition to news card. --------- Co-authored-by: Jai A <jaiagr+gpg@pm.me> Co-authored-by: CodexAdrian <83074853+CodexAdrian@users.noreply.github.com>
32 lines
920 B
Vue
32 lines
920 B
Vue
<script setup>
|
|
import { useInstances, useNews } from '@/store/state'
|
|
import RowDisplay from '@/components/RowDisplay.vue'
|
|
|
|
const instances = useInstances()
|
|
const news = useNews()
|
|
instances.fetchInstances()
|
|
news.fetchNews()
|
|
|
|
// Remove once state is populated with real data
|
|
const recentInstances = instances.instances.slice(0, 4)
|
|
const popularInstances = instances.instances.filter((i) => i.downloads > 50 || i.trending)
|
|
</script>
|
|
|
|
<template>
|
|
<div class="page-container">
|
|
<RowDisplay label="Jump back in" :instances="recentInstances" :canPaginate="false" />
|
|
<RowDisplay label="Popular packs" :instances="popularInstances" :canPaginate="true" />
|
|
<RowDisplay label="News & updates" :news="news.news" :canPaginate="true" />
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.page-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
</style>
|