Skip to content
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

safari tweaks #2951

Merged
merged 1 commit into from
Nov 5, 2024
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
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