chore: amend mobile layout

This commit is contained in:
Marios Antonoudiou
2023-12-06 18:35:43 +02:00
parent 143cec27ec
commit ecdcf36acd
2 changed files with 26 additions and 20 deletions

View File

@@ -2,7 +2,7 @@
<UContainer class="flex flex-col gap-5"> <UContainer class="flex flex-col gap-5">
<div class="text-sm text-gray-500">Personal projects</div> <div class="text-sm text-gray-500">Personal projects</div>
<div class="grid grid-cols-3 gap-5"> <div class="grid grid-cols-1 gap-10 md:grid-cols-3 md:gap-5">
<Project <Project
title="Places for Zendesk" title="Places for Zendesk"
image="https://990141.apps.zdusercontent.com/990141/assets/1701544308-8c83d0f02afd0b3d7342e5f19304c4b4/logo.png" image="https://990141.apps.zdusercontent.com/990141/assets/1701544308-8c83d0f02afd0b3d7342e5f19304c4b4/logo.png"

View File

@@ -10,26 +10,32 @@ const props = defineProps<Props>();
</script> </script>
<template> <template>
<div class="flex overflow-auto gap-2 flex-col border rounded-lg p-4"> <div
<NuxtImg class="flex overflow-auto gap-2 items-center md:items-start md:flex-col md:border md:rounded-lg md:p-4"
placeholder >
:src="props.image" <ULink :to="props.url" target="_blank">
:alt="props.title" <NuxtImg
class="block w-16 h-16" placeholder
/> :src="props.image"
<div> :alt="props.title"
<ULink class="block w-16 h-16"
class="font-semibold hover:underline hover:underline-offset-4" />
:to="props.url" </ULink>
target="_blank" <div class="grid row-span-3 gap-2">
>{{ props.title }}</ULink <div>
> <ULink
<div class="text-xs text-slate-600"> class="font-semibold hover:underline hover:underline-offset-4"
<slot name="subtitle"></slot> :to="props.url"
target="_blank"
>{{ props.title }}</ULink
>
<div class="text-xs text-slate-600">
<slot name="subtitle"></slot>
</div>
</div>
<div class="text-sm md:block hidden">
<slot name="description">Lorem ipsum dorcet sit amet</slot>
</div> </div>
</div>
<div class="text-sm">
<slot name="description">Lorem ipsum dorcet sit amet</slot>
</div> </div>
</div> </div>
</template> </template>