site-root: show forges logos on landing page#1986
Merged
dscho merged 3 commits intogit:gh-pagesfrom Apr 3, 2025
Merged
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 <toon@iotcl.com>
dscho
approved these changes
Apr 1, 2025
Member
dscho
left a comment
There was a problem hiding this comment.
I like it! How about merging this PR as-is and letting contributors add more forges in follow-up PRs?
Collaborator
Author
|
@dscho I've fixed the dark mode. |
Collaborator
Author
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 <toon@iotcl.com>
Collaborator
Author
|
Currently deploying to https://to1ne.github.io/git-scm.com/. See: https://github.com/To1ne/git-scm.com/actions/runs/14240442557/job/39908921601 |
Collaborator
Author
|
@dscho demo deploy should be completed. And so is this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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