fix: change portfolio image height (#190)
Co-authored-by: hoolek77 <szymon.kin@gmail.com>
This commit is contained in:
parent
6fb26101b0
commit
544ad70d87
2 changed files with 22 additions and 17 deletions
|
|
@ -11,9 +11,9 @@ export interface Project {
|
||||||
*
|
*
|
||||||
* **Ratio**: 1:1
|
* **Ratio**: 1:1
|
||||||
*
|
*
|
||||||
* **Display size**: 120x120px
|
* **Display size**: 56x56px
|
||||||
*/
|
*/
|
||||||
image: Photo;
|
image?: Photo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Date range when you were working on the project.
|
* Date range when you were working on the project.
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,20 @@ const alt = `${name} project thumbnail`;
|
||||||
<div class="flex flex-col gap-6">
|
<div class="flex flex-col gap-6">
|
||||||
<div class="flex flex-col gap-4">
|
<div class="flex flex-col gap-4">
|
||||||
<div class="flex gap-6">
|
<div class="flex gap-6">
|
||||||
|
<div class="flex w-full flex-col gap-4">
|
||||||
|
<div class="flex gap-4">
|
||||||
|
{
|
||||||
|
image && (
|
||||||
<Photo
|
<Photo
|
||||||
src={image}
|
src={image}
|
||||||
alt={alt}
|
alt={alt}
|
||||||
width={200}
|
width={108}
|
||||||
height={200}
|
height={108}
|
||||||
class="rounded-lg object-cover max-w-[120px] overflow-hidden sm:block hidden"
|
class="hidden h-14 w-14 flex-shrink-0 rounded-lg object-cover sm:block"
|
||||||
/>
|
/>
|
||||||
<div class="flex w-full flex-col gap-4">
|
)
|
||||||
<div class="flex justify-between">
|
}
|
||||||
|
<div class="flex w-full justify-between">
|
||||||
<div>
|
<div>
|
||||||
<Typography variant="item-title">{name}</Typography>
|
<Typography variant="item-title">{name}</Typography>
|
||||||
<Timestamp dates={dates} />
|
<Timestamp dates={dates} />
|
||||||
|
|
@ -35,7 +40,7 @@ const alt = `${name} project thumbnail`;
|
||||||
{links.map((link) => <LinkButton {...link} />)}
|
{links.map((link) => <LinkButton {...link} />)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Photo class="rounded-lg object-cover max-w-[120px] sm:hidden" src={image} alt={alt} />
|
</div>
|
||||||
<div class="inline-grid w-full xl:grid-cols-[auto_auto]">
|
<div class="inline-grid w-full xl:grid-cols-[auto_auto]">
|
||||||
{details.map((detail) => <LabelledValue {...detail} />)}
|
{details.map((detail) => <LabelledValue {...detail} />)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue