-
Notifications
You must be signed in to change notification settings - Fork 1.3k
site-root: show forges logos on landing page #1986
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
Conversation
We're about to replace the company project logos on the landing page with logos of forges. Thus remove the logos we no longer need. Signed-off-by: Toon Claes <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it! How about merging this PR as-is and letting contributors add more forges in follow-up PRs?
|
@dscho I've fixed the dark mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Replace the project and company logos by logos of forges that provide Git hosting. SVG images are used to properly scale on any screen size. The SVG images are embedded directly into the HTML. This allows us to use CSS custom properties (like `var(--logos-1)`) for the colors. Using this method the colors can easily adapt to dark/light mode. The SVG images are created in Inkscape. One source file `all.svg` has all the logos. In this file placeholder colors are used. The placeholder colors are replaced by `var(--xyz)` by the Hugo rendering pipeline. The placeholder colors are: * `#aaaaaa` -> `var(--logos-1)` * `#999999` -> `var(--logos-2)` * `#666666` -> `var(--logos-3)` * `#333333` -> `var(--logos-4)` These are lightest to darkest in light mode, and reverse in dark mode.
We don't want to endorse any brand more than any other, so randomize the logos. We use Hugo to randomize the order every build. Also in CSS the order is randomized using a seed and some math. And in JS we set that set every time the page reloads. Signed-off-by: Toon Claes <[email protected]>
|
Currently deploying to https://to1ne.github.io/git-scm.com/. See: https://github.com/To1ne/git-scm.com/actions/runs/14240442557/job/39908921601 |
|
@dscho demo deploy should be completed. And so is this PR. |

Changes
Replace the project and company logos by logos of forges that provide
Git hosting.
SVG images are used to properly scale on any screen size. The SVG images
are embedded directly into the HTML. This allows us to use CSS custom
properties (like
var(--logos-1)) for the colors. Using this method thecolors can easily adapt to dark/light mode.
The SVG images are created in Inkscape. One source file
all.svghasall the logos. In this file placeholder colors are used. The placeholder
colors are replaced by
var(--xyz)by the Hugo rendering pipeline. Theplaceholder colors are:
#aaaaaa->var(--logos-1)#999999->var(--logos-2)#666666->var(--logos-3)#333333->var(--logos-4)These are lightest to darkest in light mode, and reverse in dark mode.
TODO
Context
I don't think it's still relevant to show which projects use Git, because nowadays a lot of projects use Git. Instead link to sites where Git users can host their repositories.
Because we want to be neutral toward any Git forge, I'd like to shuffle the logos around randomly on each page visit.
Screenshots