Skip to content

Commit

Permalink
safari tweaks (#2951)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlkluth authored Nov 5, 2024
1 parent 5060d37 commit d472e76
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions website/src/pages/_components/landing-featured-projects.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import React from "react";
import React, { ComponentProps } from "react";
import { FeaturedBadge } from "formidable-oss-badges";

import { LinkButton } from "../../components/link-button";

const projects = [
type ProjectName = ComponentProps<typeof FeaturedBadge>["name"];
type Projects = {
name: ProjectName;
link: string;
description: string;
title?: string;
};

const projects: Projects[] = [
{
name: "spectacle",
link: "https://commerce.nearform.com/open-source/spectacle",
Expand Down Expand Up @@ -41,9 +49,13 @@ export const LandingFeaturedProjects = () => (
<a
href={link}
key={link}
className="col-span-2 sm:col-span-1 block grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 align-center items-center text-theme-2 hover:text-theme-2 dark:text-white dark:hover:text-white"
className="col-span-2 sm:col-span-1 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 align-center items-center text-theme-2 hover:text-theme-2 dark:text-white dark:hover:text-white"
>
<FeaturedBadge name={name} isHoverable className="col-span-1" />
<FeaturedBadge
name={name}
isHoverable
className="col-span-1 max-w-full"
/>
<span className="flex flex-col col-span-1 lg:col-span-2">
<span className="text-xl font-semibold capitalize">
{title || name}
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/_components/landing-showcase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function LandingShowcase() {
<h2 className="my-8 text-4xl font-semibold text-center dark:text-black">
A Few of Our Fans
</h2>
<div className="grid grid-cols-2 md:grid-cols-4 gap-4">
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8 sm:gap-4">
<AirbnbLogo className={logoClass} />
<FiveThirtyEightLogo className={logoClass} />
<RedfinLogo className={logoClass} />
Expand Down

0 comments on commit d472e76

Please sign in to comment.