Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions app/components/ui/FeaturedOn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import React from "react";
* is a wall — whereas marks stay legible in a row for as long as the list
* grows. Adding a directory is one entry in LISTINGS.
*
* The marks are drawn as inline SVG instead of the vendors' PNGs because both
* The marks are drawn as inline SVG instead of the vendors' PNGs because those
* ship with an opaque background (white for Product Hunt, pale blue for
* LaunchBuff) that reads as a visible tile in dark mode. Neutral parts use
* currentColor so they invert with the theme; brand colours stay fixed.
* LaunchBuff, black for Aura++) that reads as a visible tile in dark mode.
* Neutral parts use currentColor so they invert with the theme; brand colours
* stay fixed.
*
* `variant="onDark"` is for the footer, which is hard-coded `bg-black` in both
* themes — the token palette would paint a white card on it.
Expand All @@ -37,6 +38,22 @@ const LaunchBuffMark = (props) => (
</svg>
);

// Aura++ is a black tile with a white serif A, which would disappear against
// the black footer. So it is one path with fill-rule="evenodd": the tile is
// currentColor, the letter is punched through to whatever is behind it, and
// the A's counter fills back in (nesting depth 1 fill, 2 hole, 3 fill). That
// keeps it legible on light and dark without a <mask>, whose id would collide
// when several copies of this mark render on one page.
const AuraPlusPlusMark = (props) => (
<svg viewBox="0 0 24 24" role="img" aria-label="Aura++" {...props}>
<path
fill="currentColor"
fillRule="evenodd"
d="M3 0h18a3 3 0 0 1 3 3v18a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3ZM12 4l7.6 16h-3.2l-1.5-4.1H9.1L7.6 20H4.4Zm0 4.4 1.9 5.2h-3.8Z"
/>
</svg>
);

/**
* Single source of truth for directory listings — the hero pill, the footer
* pill, and the About page section all render from this. Adding a directory is
Expand All @@ -53,6 +70,11 @@ export const LISTINGS = [
href: "https://launchbuff.com/products/dsa-visualizer-znscln",
Mark: LaunchBuffMark,
},
{
name: "Aura++",
href: "https://auraplusplus.com/projects/dsa-visualizer",
Mark: AuraPlusPlusMark,
},
];

const VARIANTS = {
Expand Down
2 changes: 1 addition & 1 deletion app/components/ui/ListedOnSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function ListedOnSection({ className = "" }) {
{/* divide-* draws the separator only *between* items, so the rule count
stays correct however many listings the array grows to. It runs
horizontally when the row stacks on narrow screens. */}
<ul className="grid divide-y divide-gray-200 overflow-hidden rounded-xl border border-gray-200 bg-white sm:grid-flow-col sm:auto-cols-fr sm:divide-x sm:divide-y-0 dark:divide-gray-700 dark:border-gray-700 dark:bg-neutral-950">
<ul className="grid divide-y divide-gray-200 overflow-hidden rounded-xl border border-gray-200 bg-white md:grid-flow-col md:auto-cols-fr md:divide-x md:divide-y-0 dark:divide-gray-700 dark:border-gray-700 dark:bg-neutral-950">
{LISTINGS.map(({ name, href, Mark }) => (
<li key={name}>
<a
Expand Down