Skip to content

Add links to stats on home page#1070

Merged
dsp-ant merged 4 commits into
mainfrom
ihrpr/add-links
Aug 1, 2025
Merged

Add links to stats on home page#1070
dsp-ant merged 4 commits into
mainfrom
ihrpr/add-links

Conversation

@ihrpr

@ihrpr ihrpr commented Jul 28, 2025

Copy link
Copy Markdown
Contributor

Follow up on #1044, adding links to the stats section.

@jonathanhefner jonathanhefner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I noticed that the links lack typical visual indicators. The following CSS will add some basic indicators:

.stat-card {
  .stat-label {
    font-weight: bold;
    text-decoration: 2px solid underline;
    text-underline-offset: 6px;
  }

  &:hover {
    .stat-number {
      text-shadow: 1px 1px 2px;
    }

    .stat-label {
      text-decoration-thickness: 4px;
    }
  }
}

Before

before.mp4

After

after.mp4

Comment thread docs/overview/index.mdx
<div className="stats-container">
<div className="stats-grid">
<div className="stat-card">
<a href="/docs/sdk" target="_blank" className="stat-card">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since this is an internal link, what is the reason for target="_blank" here?

Suggested change
<a href="/docs/sdk" target="_blank" className="stat-card">
<a href="/docs/sdk" className="stat-card">

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I like to open links in a new tab

Comment thread docs/overview/index.mdx Outdated
@dsp-ant dsp-ant merged commit 04c6e1f into main Aug 1, 2025
7 checks passed
@dsp-ant dsp-ant deleted the ihrpr/add-links branch August 1, 2025 12:43
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.

3 participants