Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Allow adding links to logos #278

Merged
merged 8 commits into from
Jan 11, 2023
Merged

Allow adding links to logos #278

merged 8 commits into from
Jan 11, 2023

Conversation

yathomasi
Copy link
Contributor

@yathomasi yathomasi commented Dec 27, 2022

@shcheklein shcheklein temporarily deployed to mlem-ai-allow-adding-li-quv7up December 27, 2022 05:44 Inactive
@github-actions
Copy link

Link Check Report

There were no links to check!

@shcheklein shcheklein temporarily deployed to mlem-ai-allow-adding-li-quv7up December 29, 2022 09:17 Inactive
src: fastapiLogo,
alt: 'FastAPI logo'
alt: 'FastAPI logo',
link: '/doc/user-guide/serving/fastapi'
Copy link
Contributor

@aguschin aguschin Dec 29, 2022

Choose a reason for hiding this comment

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

Thanks a lot @yathomasi! I see the border is around logos, can we make them around boxes for logos maybe? Otherwise it looks inconsistent somehow
image
and
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, great suggestion. I have updated it a bit. Let me how you think.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks! Looks much better! Could we also make them always the same height? Now this is how it looks for me:
image
and
image

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks a ton! Works as expected now! Now I need to get feedback from @iterative/mlem and update "Working with models" page.

@@ -114,94 +124,130 @@ const logosData: Array<{
widthMd: 88,
widthLg: 124,
src: rabbitmqLogo,
alt: 'RabbitMQ logo'
alt: 'RabbitMQ logo',
link: '/doc/user-guide/serving/rabbitmq'
Copy link
Contributor

Choose a reason for hiding this comment

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

This page is empty. Maybe not add a link at all? https://mlem.ai/doc/user-guide/serving/rabbitmq

Copy link
Contributor

Choose a reason for hiding this comment

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

@omesser @mike0sv, WDYT about these questions?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would add a link once there is a bit more content (like linking to a working example and some explanations of how it works and how to build an app with it)

},
{
widthSm: 66,
widthMd: 88,
widthLg: 124,
src: onnxLogo,
alt: 'ONNX logo'
alt: 'ONNX logo',
link: '/doc/user-guide/models'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to add mentions of all ML frameworks to https://mlem.ai/doc/user-guide/models
So these links are meaningful.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree, the existing model object-references pages e.g. https://mlem.ai/doc/object-reference/model/onnx are pretty useless as far as user docs go and not worth linking to from the front page

@yathomasi yathomasi temporarily deployed to mlem-ai-allow-adding-li-quv7up December 30, 2022 04:26 Inactive
@yathomasi yathomasi temporarily deployed to mlem-ai-allow-adding-li-quv7up December 30, 2022 06:33 Inactive
@yathomasi yathomasi temporarily deployed to mlem-ai-allow-adding-li-quv7up December 30, 2022 06:51 Inactive
@yathomasi yathomasi temporarily deployed to mlem-ai-allow-adding-li-quv7up December 30, 2022 07:02 Inactive
@yathomasi yathomasi requested a review from rogermparent January 9, 2023 16:41
@shcheklein shcheklein temporarily deployed to mlem-ai-allow-adding-li-quv7up January 10, 2023 10:51 Inactive
@shcheklein shcheklein temporarily deployed to mlem-ai-allow-adding-li-quv7up January 10, 2023 10:53 Inactive
@aguschin aguschin marked this pull request as ready for review January 10, 2023 11:08
@aguschin aguschin requested a review from a team as a code owner January 10, 2023 11:08
Copy link
Contributor

@aguschin aguschin left a comment

Choose a reason for hiding this comment

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

Looks good to me. I assume we need a review from @rogermparent as well?

Comment on lines +410 to +427
{logosData.map((logoDetails, i) =>
logoDetails?.link ? (
<Link
href={logoDetails.link}
key={i}
className={cn(
styles.header__list,
'hover:border-purple-800 active:bg-gray-200 transition-colors'
)}
>
<LogoImage {...logoDetails} />
</Link>
) : (
<li key={i} className={cn(styles.header__list)}>
<LogoImage {...logoDetails} />
</li>
)
)}
Copy link
Contributor

@rogermparent rogermparent Jan 10, 2023

Choose a reason for hiding this comment

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

Theoretically if any logoDetails were undefined, this would blow up with a weird error as it attempts to spread an undefined logoDetails. That said, that specific scenario is probably not going to happen.

Copy link
Contributor

@rogermparent rogermparent left a comment

Choose a reason for hiding this comment

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

Looks alright to me. Nice work!

@aguschin aguschin merged commit 7f41c28 into main Jan 11, 2023
@aguschin aguschin deleted the allow-adding-link-to-logo branch January 11, 2023 07:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Remove white background from logos
5 participants