First ogImage try
All checks were successful
pipeline / build-and-push-images (push) Successful in 19m29s
pipeline / deploy (push) Successful in 9s

This commit is contained in:
2024-12-04 22:25:33 +01:00
parent 110e187adb
commit e8e30df859
2 changed files with 97 additions and 0 deletions

View File

@@ -5,6 +5,14 @@ const championAlias = route.params.alias as string
const { data : championData } : {data : Ref<ChampionData>} = await useFetch("/api/champion/" + championAlias.toLowerCase())
const championId = championData.value.id
defineOgImageComponent('OgChampion', {
title: championData.value.name,
id: championId,
winrate: championData.value.winrate,
pickrate: championData.value.pickrate,
gameCount: championData.value.gameCount,
})
const laneState = ref(0)
const state = ref("runes")
const lane = ref(championData.value.lanes[laneState.value])