From d7c062d6e5376e5d2004160bfc10e3d974761d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Thu, 26 Sep 2024 18:09:16 -0400 Subject: [PATCH] feat: add a sponsor page (#343) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## PR Checklist - [x] Addresses an existing open issue: fixes #37 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/boston-ts-website/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/boston-ts-website/blob/main/.github/CONTRIBUTING.md) were taken ## Overview See result at [`/sponsor`](https://boston-ts-website-git-astorije-sponsor-page-squiggle-tools.vercel.app/sponsor). Screenshot of the new Sponsor page We probably want this page out ASAP, but after that, I need to fix the "Sponsor" page hero header. Should we just decrease the font-size or another option? --- app/components/Heading.css.ts | 8 ------ app/components/Heading.tsx | 6 +++- app/routes/sponsor.tsx | 53 +++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 9 deletions(-) create mode 100644 app/routes/sponsor.tsx diff --git a/app/components/Heading.css.ts b/app/components/Heading.css.ts index 7d5ddee..1e91fc5 100644 --- a/app/components/Heading.css.ts +++ b/app/components/Heading.css.ts @@ -15,14 +15,6 @@ export const heading = styleVariants({ }, ], 3: [ - base, - { - fontSize: vars.sizes.subHeading, - lineHeight: vars.lineHeights.medium, - marginTop: "4rem", - }, - ], - 4: [ base, { fontSize: vars.sizes.large, diff --git a/app/components/Heading.tsx b/app/components/Heading.tsx index 6841824..3c8b3f9 100644 --- a/app/components/Heading.tsx +++ b/app/components/Heading.tsx @@ -9,5 +9,9 @@ export interface HeadingProps extends React.PropsWithChildren { } export function Heading({ children, className, level }: HeadingProps) { - return

{children}

; + if (level === 2) { + return

{children}

; + } else { + return

{children}

; + } } diff --git a/app/routes/sponsor.tsx b/app/routes/sponsor.tsx new file mode 100644 index 0000000..2727d82 --- /dev/null +++ b/app/routes/sponsor.tsx @@ -0,0 +1,53 @@ +import { MetaFunction } from "@remix-run/node"; + +import { ExternalAnchor } from "~/components/Anchor"; +import { BodyText } from "~/components/BodyText"; +import { Heading } from "~/components/Heading"; +import { Layout } from "~/components/Layout"; +import { UnorderedList } from "~/components/UnorderedList"; +import { createMeta } from "~/config"; + +const tagline = `Get your name and branding in front of Boston's most active and engaged TypeScript developer community!`; + +export const meta: MetaFunction = () => + createMeta({ page: "Sponsor", tagline }); + +export default function About() { + return ( + + Sponsor Boston TS Club + + + Thinking about sponsoring us? Awesome! We're excited to work with you + and are grateful for your support! + + + Why sponsor us? + + {tagline} + + As a meetup sponsor, you'll receive: + + +
  • A featured mention in our opening slides
  • +
  • A dedicated talk slot to showcase your product
  • +
  • Shout-outs on our social media profiles
  • +
  • The opportunity to distribute your swag at our events
  • +
    + + + We're flexible! If you want to try something different, let us know, + we'd love to make it happen! 💙 + + + Ready to team up? + + + + Email us + {" "} + to get started. + +
    + ); +}