Skip to content

Commit

Permalink
Update actualidad page layout: enhance header sections, improve autho…
Browse files Browse the repository at this point in the history
…r display, and refine image presentation
  • Loading branch information
guillecro committed Jan 31, 2025
1 parent 34e410c commit 486d44b
Showing 1 changed file with 38 additions and 14 deletions.
52 changes: 38 additions & 14 deletions pages/actualidad/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,43 @@ useSeoMeta({
</script>

<template>
<div class="bg-[#D9D9D9] text-black py-10">
<UContainer>
<p class="font-oswald text-5xl uppercase leading-tight text-electricViolet-600 my-2">{{ data.title }}</p>
<p class="font-oswald font-extralight text-2xl my-2">{{ data.subtitle }}</p>
<p class="italic text-sm text-gray-500">Publicado el {{ formatDate(data.createdAt) }}</p>
<div class="aspect-w-5 aspect-h-2 my-8">
<img v-if="data.imageUrl" :src="data.imageUrl" class="object-cover w-full h-full rounded-xl">
</div>
<div class="border-gray-400 border px-3 py-5 rounded-lg w-full prose focus:outline-none max-w-none" v-html="data.text" />
<div class="flex flex-row gap-2 my-5">
<UBadge color="gray">{{data.category.name}}</UBadge>
<UBadge color="gray">{{data.section.name}}</UBadge>
</div>
</UContainer>
<div>
<div class="my-4 md:my-10 text-center">
<UContainer>
<div v-if="data.section.name == 'Juventudes'">
<p class="font-oswald font-light text-2xl md:text-3xl leading-tight text-[#D4F779] w-10/12 mx-auto">¿QUÉ PIENSA LA JUVENTUD SOBRE LA INCIDENCIA Y LA PARTICIPACIÓN?</p>
</div>
<div v-else class="space-y-1">
<p class="text-[#D4F779] font-bold">NOTICIAS, EVENTOS Y ACTUALIDAD</p>
<p class="font-oswald font-light text-2xl md:text-3xl leading-tight text-[#ffffff]">¿EN QUE VÁ LA JUVENTUD?</p>
</div>
</UContainer>

</div>
<div class="bg-slate-100 text-black py-4 md:py-10 ">
<UContainer>
<div class="text-center w-full md:w-10/12 md:mx-auto">
<div class="flex flex-row gap-2 my-5 w-full items-center justify-center">
<UBadge color="pumpkin" size="lg" :ui="{ rounded: 'rounded-full'}">{{data.category.name}}</UBadge>
</div>
<p class="font-oswald text-3xl md:text-6xl uppercase text-justify md:text-center text-electricViolet my-2">{{ data.title }}</p>
<p class="font-inter font-light text-justify md:text-center text-xl md:text-2xl my-3">{{ data.subtitle }}</p>
<div class="flex md:flex-col items-center w-full my-5">
<UAvatar :src="data.author.imageUrl" size="3xl" class="mr-3 mb-0 md:mr-3 md:mb-3" :alt="data.author.fullName" />
<div class="flex flex-col items-start md:items-center w-full">
<p class="text-lg">Por {{ data.author.fullName }}</p>
<p class="text-gray-500 text-sm">Publicado {{ formatDate(data.createdAt) }}</p>
</div>
</div>
</div>
<div v-if="data.imageUrl" class="aspect-w-5 aspect-h-2 my-8">
<img :src="data.imageUrl" class="object-cover w-full h-full rounded-xl border border-slate-300 shadow-lg">
</div>
<div class=" w-full md:w-8/12 md:mx-auto">
<div class="px-3 py-5 rounded-lg w-full prose focus:outline-none max-w-none" v-html="data.text" />
</div>
</UContainer>
</div>
</div>

</template>

0 comments on commit 486d44b

Please sign in to comment.