From de7b839f80b143cf52ae2d00cfd8a66161c23265 Mon Sep 17 00:00:00 2001 From: Dan Ott Date: Mon, 30 Sep 2024 12:01:59 -0400 Subject: [PATCH 1/2] Fix subscribe form --- src/components/NewslettterSubscribe.tsx | 50 ++++--------------------- 1 file changed, 8 insertions(+), 42 deletions(-) diff --git a/src/components/NewslettterSubscribe.tsx b/src/components/NewslettterSubscribe.tsx index 74f711be..54f5c366 100644 --- a/src/components/NewslettterSubscribe.tsx +++ b/src/components/NewslettterSubscribe.tsx @@ -4,49 +4,15 @@ export default function NewsletterSubscribe({ return ( <>

{header}

-
-
- - - - Required - -
- - -
- -
- + Subscribe to the Virtual Coffee Newsletter on beehiiv! +
+

); } From 1817bf2a5645ad2f7597ace2e61143c606ad581c Mon Sep 17 00:00:00 2001 From: Dan Ott Date: Mon, 30 Sep 2024 12:04:18 -0400 Subject: [PATCH 2/2] Formatting --- postcss.config.mjs | 6 +-- src/svg/badges/hacktoberfest-2022.tsx | 4 +- src/svg/badges/hacktoberfest-2023.tsx | 4 +- src/util/types.ts | 12 ++--- tailwind.config.ts | 32 +++++++------- tsconfig.json | 63 +++++++++++---------------- 6 files changed, 54 insertions(+), 67 deletions(-) diff --git a/postcss.config.mjs b/postcss.config.mjs index 1a69fd2a..f6c3605a 100644 --- a/postcss.config.mjs +++ b/postcss.config.mjs @@ -1,8 +1,8 @@ /** @type {import('postcss-load-config').Config} */ const config = { - plugins: { - tailwindcss: {}, - }, + plugins: { + tailwindcss: {}, + }, }; export default config; diff --git a/src/svg/badges/hacktoberfest-2022.tsx b/src/svg/badges/hacktoberfest-2022.tsx index 949482de..1c5597bc 100644 --- a/src/svg/badges/hacktoberfest-2022.tsx +++ b/src/svg/badges/hacktoberfest-2022.tsx @@ -20,11 +20,11 @@ export function Hacktoberfest2022({ {...(ariaHidden ? { 'aria-hidden': 'true', - } + } : { role: 'img', 'aria-labelledby': 'Hacktoberfest2022SvgTitle', - })} + })} > {!ariaHidden && {title}} diff --git a/src/svg/badges/hacktoberfest-2023.tsx b/src/svg/badges/hacktoberfest-2023.tsx index 1cdc9280..5dd3852c 100644 --- a/src/svg/badges/hacktoberfest-2023.tsx +++ b/src/svg/badges/hacktoberfest-2023.tsx @@ -20,11 +20,11 @@ export function Hacktoberfest2023({ {...(ariaHidden ? { 'aria-hidden': 'true', - } + } : { role: 'img', 'aria-labelledby': 'Hacktoberfest2023SvgTitle', - })} + })} > {!ariaHidden && {title}} diff --git a/src/util/types.ts b/src/util/types.ts index 56cab38e..c50921b1 100644 --- a/src/util/types.ts +++ b/src/util/types.ts @@ -67,12 +67,12 @@ export type NextParams< > = ParamsKeys extends never ? never : IsOptional extends true - ? { - [key in ParamsKeys]?: IsCatchall extends true ? string[] : string; - } - : { - [key in ParamsKeys]: IsCatchall extends true ? string[] : string; - }; + ? { + [key in ParamsKeys]?: IsCatchall extends true ? string[] : string; + } + : { + [key in ParamsKeys]: IsCatchall extends true ? string[] : string; + }; export type NextPageProps< ParamsKeys extends string = never, diff --git a/tailwind.config.ts b/tailwind.config.ts index e9a0944e..c0316504 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,20 +1,20 @@ -import type { Config } from "tailwindcss"; +import type { Config } from 'tailwindcss'; const config: Config = { - content: [ - "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", - "./src/components/**/*.{js,ts,jsx,tsx,mdx}", - "./src/app/**/*.{js,ts,jsx,tsx,mdx}", - ], - theme: { - extend: { - backgroundImage: { - "gradient-radial": "radial-gradient(var(--tw-gradient-stops))", - "gradient-conic": - "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", - }, - }, - }, - plugins: [], + content: [ + './src/pages/**/*.{js,ts,jsx,tsx,mdx}', + './src/components/**/*.{js,ts,jsx,tsx,mdx}', + './src/app/**/*.{js,ts,jsx,tsx,mdx}', + ], + theme: { + extend: { + backgroundImage: { + 'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))', + 'gradient-conic': + 'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))', + }, + }, + }, + plugins: [], }; export default config; diff --git a/tsconfig.json b/tsconfig.json index f48e7ee6..96d93121 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,40 +1,27 @@ { - "compilerOptions": { - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": [ - "./src/*" - ] - }, - "target": "ES2017" - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts" - ], - "exclude": [ - "node_modules" - ] + "compilerOptions": { + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./src/*"] + }, + "target": "ES2017" + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] }