Add district-styled pages for all 3 main RMO pages

This commit is contained in:
Eli Ribble 2026-04-03 18:50:23 +00:00
parent c0e414bdc3
commit 51fe851c5a
No known key found for this signature in database
15 changed files with 1268 additions and 1089 deletions

View file

@ -0,0 +1,29 @@
<style scoped></style>
<template>
<Water :slug="slug">
<template #header>
<!-- Introduction Section -->
<HeaderDistrict :district="district" />
</template>
</Water>
</template>
<script setup lang="ts">
import { ref } from "vue";
import { computedAsync } from "@vueuse/core";
import Water from "@/rmo/content/Water.vue";
import type { District } from "@/rmo/type";
import { useDistrictStore } from "@/rmo/store/district";
import HeaderDistrict from "@/components/HeaderDistrict.vue";
interface Props {
slug: string;
}
const props = defineProps<Props>();
const districtStore = useDistrictStore();
const district = computedAsync(async (): Promise<District | undefined> => {
const districts = await districtStore.get();
return districts.find((district: District) => district.slug == props.slug);
});
</script>