Skip to content

Hopefully fix sponsors page on 2023 website #627

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

Merged
merged 2 commits into from
Jun 3, 2024
Merged
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
26 changes: 10 additions & 16 deletions components/sponsor-tiers/sponsor-tiers.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import clsx from "clsx";
import { Title } from "components/typography/title";

import * as React from "react";
import { SVGProps } from "react";
import type { SVGProps } from "react";

const Ribbon = (props: SVGProps<SVGSVGElement>) => (
<svg
Expand Down Expand Up @@ -62,9 +61,6 @@ const SponsorTier = ({
price: number | string;
features: string[];
}) => {
// TODO: this component is inside a prose container, so we need to reset some styles
// we can use no-prose

const formattedPrice =
typeof price === "number"
? new Intl.NumberFormat("en", {
Expand All @@ -76,7 +72,7 @@ const SponsorTier = ({
: price;

return (
<div className="bg-white text-black rounded-2xl p-6 relative">
<div className="bg-white text-black rounded-2xl p-6 relative not-prose z-0">
<div className="h-[160px]">
<Ribbon
className={clsx("absolute right-6 -top-6", {
Expand All @@ -88,6 +84,7 @@ const SponsorTier = ({
"text-sponsor-bronze": title === "Bronze",
"text-sponsor-patron": title === "Patron",
})}
style={{ zIndex: -1 }}
/>

<Title level={3} className="mt-0 !mb-2">
Expand All @@ -99,7 +96,6 @@ const SponsorTier = ({
{totalSlots ? (
<>
<span>{totalSlots}</span> slot{totalSlots == 1 ? "" : "s"}{" "}

available
</>
) : (
Expand All @@ -120,7 +116,7 @@ const SponsorTier = ({

export const SponsorTiers = () => {
return (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-10">
<div className="grid grid-cols-1 sm:grid-cols-2 gap-10">
<SponsorTier
title="Keystone"
totalSlots={1}
Expand Down Expand Up @@ -193,21 +189,19 @@ export const SponsorTiers = () => {
]}
/>

<div className="space-y-10">
<SponsorTier
title="Bronze"
price={2000}
totalSlots={"limited"}
features={["Logo & recruiting ad on EuroPython website and more!"]}
/>

<SponsorTier
title="Patron"
price={1000}
totalSlots={"limited"}
features={["Logo on EuroPython website, welcome tweet and more!"]}
/>
</div>
<SponsorTier
title="Patron"
price={1000}
totalSlots={"limited"}
features={["Logo on EuroPython website, welcome tweet and more!"]}
/>
</div>
);
};
Loading