Skip to content

Commit

Permalink
feat: responsivity - articles
Browse files Browse the repository at this point in the history
  • Loading branch information
AloisSeckar committed Feb 24, 2024
1 parent e5ad76f commit cbd5ddf
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions components/item/Article.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,13 @@
<em>{{ toDate(item.dateCreated) }}</em>
</span>
</div>
<div class="box-content flex">
<div v-if="!detail" class="flex-none pr-4">
<NuxtLink :to="{ path: articlePath }">
<NuxtImg
class="w-40 h-28 border"
provider="cloudinary"
:src="useRuntimeConfig().public.cloudinary.folder + item.thumb"
:alt="item.name"
:title="item.name"
/>
</NuxtLink>
<div class="box-content flex flex-col sm:flex-row">
<div v-if="!detail" class="block sm:inline-block sm:w-44 p-2">
<BaseThumb :name="item.name" :image="item.thumb" :link="articlePath" landscape />
</div>
<div class="flex-1">
<div :class="[detail ? 'w-full pb-2 border-b-2 italic inline-flex' : 'pb-1']">
<div v-if="detail" class="w-52 flex-none">
<div :class="[detail ? 'w-full pb-2 border-b-2 italic flex flex-col sm:flex-row' : 'pb-1']">
<div v-if="detail" class="w-52 p-2 flex-none">
<NuxtImg
class="mx-auto w-48 h-36 mr-4 border"
provider="cloudinary"
Expand All @@ -42,7 +34,7 @@
:title="item.name"
/>
</div>
<div>
<div class="sm:pt-2">
{{ item.dscr }}
</div>
</div>
Expand Down

0 comments on commit cbd5ddf

Please sign in to comment.