Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve highlights #62

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Improve highlights #62

wants to merge 2 commits into from

Conversation

augustocb
Copy link
Contributor

No description provided.

width={180}
height={180}
class="rounded-xl sm:rounded-3xl hover:shadow-xl"
class=""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

porque removemos o width/height? é importante para redimensionarmos as imagens. Se for para fazer o estilo, podemos mexer no class

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

acho que dá pra manter a largura, daí a altura fica proporcional. o que acha?

Copy link
Contributor

@tlgimenes tlgimenes Feb 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pode ser sim. So precisa botar um numero fixo ai se nao a url gerada para a imagem final no imagekit vai com um h-NaN, tipo assim:
image

Dai pode botar um width={width} height={aspect_ratio * width}

{title && <h2 class="text-lg md:text-2xl">{title}</h2>}
<div class="w-full p-2 flex flex-col gap-4 items-center">
{title && (
<h2 class="text-[13px] text-uppercase font-semibold tracking-[5px]">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants