Files
dredgenews/resources/js/pages/Index.vue
T
dredgy 439139a057
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
Done
2026-07-04 23:09:00 +10:00

45 lines
813 B
Vue

<script setup lang="ts">
import MainLayout from '@/layouts/MainLayout.vue';
import CategorySection from '@/components/CategorySection.vue';
defineOptions({
layout: MainLayout,
});
interface Story {
source: string;
time: string | null;
headline: string;
deck?: string | null;
image?: string | null;
link: string;
}
interface Category {
label: string;
hero: boolean;
items: Story[];
}
defineProps<{
categories: Category[];
}>();
</script>
<template>
<div class="feed">
<CategorySection
v-for="(category, index) in categories"
:key="category.label"
:category="category"
:index="index"
/>
</div>
</template>
<style scoped lang="sass">
.feed
display: flex
flex-direction: column
</style>