Skip to content

Conversation

@To1ne
Copy link
Collaborator

@To1ne To1ne commented Apr 1, 2025

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 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.

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

Screen Shot 2025-04-03 at 07 42 06
Screen Shot 2025-04-03 at 07 41 57

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]>
Copy link
Member

@dscho dscho left a 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?

@To1ne To1ne force-pushed the toon-forges-logos branch from 8361b6c to 7c56ab3 Compare April 3, 2025 05:40
@To1ne To1ne changed the title WIP: show forges logos site-root: show forges logos on landing page Apr 3, 2025
@To1ne
Copy link
Collaborator Author

To1ne commented Apr 3, 2025

@dscho I've fixed the dark mode.

Copy link
Member

@dscho dscho left a comment

Choose a reason for hiding this comment

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

Nice!

@To1ne
Copy link
Collaborator Author

To1ne commented Apr 3, 2025

Even looks decent without CSS:

image

To1ne added 2 commits April 3, 2025 12:09
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]>
@To1ne To1ne force-pushed the toon-forges-logos branch from 7c56ab3 to 984f3ff Compare April 3, 2025 10:10
@To1ne
Copy link
Collaborator Author

To1ne commented Apr 3, 2025

@To1ne
Copy link
Collaborator Author

To1ne commented Apr 3, 2025

@dscho demo deploy should be completed. And so is this PR.

@dscho dscho merged commit dd454e4 into git:gh-pages Apr 3, 2025
1 check passed
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.

2 participants