Merge branch 'main' into dw/fix-project-id

This commit is contained in:
MufCZ 2024-09-24 12:18:59 +02:00 committed by GitHub
commit 54f076809a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,12 +7,23 @@ const props = defineProps<{
const isLargeScreen = useMediaQuery('(min-width: 1024px)') const isLargeScreen = useMediaQuery('(min-width: 1024px)')
const { usecases, ecosystems, categories } = storeToRefs(useData())
const selectedMobileRating = ref<ProjectRating>() const selectedMobileRating = ref<ProjectRating>()
function onSelectMobileRating(rating: ProjectRating) { function onSelectMobileRating(rating: ProjectRating) {
selectedMobileRating.value = selectedMobileRating.value?.type === rating.type ? undefined : rating selectedMobileRating.value = selectedMobileRating.value?.type === rating.type ? undefined : rating
} }
const projectCategories = computed(() => {
return categories.value.filter(cat => props.project.categories.includes(cat.id)).map(cat => cat.name).join(', ')
})
const projectUsecases = computed(() => {
return usecases.value.filter(u => props.project.usecases?.includes(u.id)).map(u => u.name).join(', ')
})
const projectEcosystems = computed(() => {
return ecosystems.value.filter(e => props.project.ecosystem?.includes(e.id)).map(e => e.name).join(', ')
})
const logo = props.project?.logos?.at(0)?.url const logo = props.project?.logos?.at(0)?.url
</script> </script>
@ -37,10 +48,28 @@ const logo = props.project?.logos?.at(0)?.url
:src="logo ?? '/no-image-1-1.svg'" :src="logo ?? '/no-image-1-1.svg'"
class="bg-app-bg-grey object-cover h-full vertical-align[middle] block w-full h-[300px] " class="bg-app-bg-grey object-cover h-full vertical-align[middle] block w-full h-[300px] "
/> />
<div flex items-center gap-4px absolute top-12px right-12px bg-app-danger text-12px leading-16px font-bold px-8px py-4px rounded-full v-if="project.sunset"> <div
<UnoIcon i-material-symbols-dangerous text-16px /> v-if="project.sunset"
flex
items-center
gap-4px
absolute
top-12px
right-12px
bg-app-danger
text-12px
leading-16px
font-bold
px-8px
py-4px
rounded-full
>
<UnoIcon
i-material-symbols-dangerous
text-16px
/>
SUNSET SUNSET
<p></p> <p />
</div> </div>
</div> </div>
</ClientOnly> </ClientOnly>
@ -100,7 +129,7 @@ const logo = props.project?.logos?.at(0)?.url
text-app-white text-app-white
col-span-9 col-span-9
> >
Swap, Mixer {{ projectUsecases }}
</p> </p>
</div> </div>
<div <div
@ -129,7 +158,7 @@ const logo = props.project?.logos?.at(0)?.url
text-app-white text-app-white
col-span-9 col-span-9
> >
Dapp, Network {{ projectCategories }}
</p> </p>
</div> </div>
<div <div
@ -148,7 +177,7 @@ const logo = props.project?.logos?.at(0)?.url
text-app-white text-app-white
col-span-9 col-span-9
> >
Ethereum, Secret Network {{ projectEcosystems }}
</p> </p>
</div> </div>
</div> </div>