Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feat: 3d languages layout #4444

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

Open
iagomartins wants to merge 5 commits into anuraghazra:master
base: master
Choose a base branch
Loading
from iagomartins:feat/3DLangLayout

Conversation

@iagomartins
Copy link

@iagomartins iagomartins commented Sep 19, 2025
edited
Loading

3D Language Visualization Feature

Overview

Added a new 3D layout option for the Top Languages card that displays programming language usage statistics with an isometric 3D bar chart visualization.

Preview

  • Just access my profile page and see the result!

Changes Made

1. New 3D Layout Functions (src/cards/top-languages.js)

  • calculate3DLayoutHeight() - Calculates card height for 3D layout
  • create3DBar() - Creates individual 3D bars with isometric projection
  • lightenColor() - Lightens colors for 3D lighting effects
  • darkenColor() - Darkens colors for 3D shading
  • render3DLayout() - Renders the complete 3D visualization

2. API Validation Update (api/top-langs.js)

  • Added "3d" to the valid layout options array

3. Layout Integration

  • Updated getDefaultLanguagesCountByLayout() to support 3D layout (default: 6 languages)
  • Added 3D layout case in renderTopLanguages() function

Features

  • Isometric 3D bars with depth and perspective
  • Gradient lighting effects (light to dark)
  • Multiple face rendering (front, top, right, back faces)
  • 3D base plane with grid lines for depth perception
  • Language labels and percentages below each bar
  • Smooth animations with staggered appearance

Usage

https://your-vercel-app.vercel.app/api/top-langs?username=USERNAME&layout=3d

Technical Details

  • Pure SVG-based implementation (no external libraries)
  • Maintains compatibility with existing themes and customization options
  • Responsive bar sizing based on card width and language count
  • Color manipulation functions for realistic 3D lighting effects

Copy link

vercel bot commented Sep 19, 2025

@iagomartins is attempting to deploy a commit to the github readme stats Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the lang-card Issues related to the language card. label Sep 19, 2025
@iagomartins iagomartins changed the title (削除) Feature 3d languages layout (削除ここまで) (追記) Feat: 3d languages layout (追記ここまで) Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

lang-card Issues related to the language card.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /