diff --git a/packages/example-nextjs14/src/app/(demo)/CodeBlocksNext.tsx b/packages/example-nextjs14/src/app/(demo)/CodeBlocksNext.tsx index b7e2746..62a8814 100644 --- a/packages/example-nextjs14/src/app/(demo)/CodeBlocksNext.tsx +++ b/packages/example-nextjs14/src/app/(demo)/CodeBlocksNext.tsx @@ -7,7 +7,7 @@ import { tooltips } from './tooltips'; export const CodeBlocks = () => { return (
-

Quick start

+

Quick start

1. Define the state
diff --git a/packages/example-nextjs14/src/app/(demo)/TabsBlock.tsx b/packages/example-nextjs14/src/app/(demo)/TabsBlock.tsx new file mode 100644 index 0000000..530aa7e --- /dev/null +++ b/packages/example-nextjs14/src/app/(demo)/TabsBlock.tsx @@ -0,0 +1,10 @@ +import { Tabs } from "../components/Tabs" + +export const TabsBlock = () => { + return ( + <> +

Instructions for:

+ + + ) +} diff --git a/packages/example-nextjs14/src/app/(demo)/page.tsx b/packages/example-nextjs14/src/app/(demo)/page.tsx index 697f01d..bcee7a7 100644 --- a/packages/example-nextjs14/src/app/(demo)/page.tsx +++ b/packages/example-nextjs14/src/app/(demo)/page.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { DemoPart } from '../DemoPart'; import { Description } from '../components/Description'; -import { Tabs } from '../components/Tabs'; +import { TabsBlock } from './TabsBlock'; const CodeBlocks = dynamicImport( () => import('./CodeBlocksNext') @@ -18,7 +18,7 @@ export default async function Home({ searchParams }: { searchParams: object }) { <> - +
diff --git a/packages/example-nextjs14/src/app/(demo)/react-router/CodeBlocksRR.tsx b/packages/example-nextjs14/src/app/(demo)/react-router/CodeBlocksRR.tsx index 552459d..136dcdb 100644 --- a/packages/example-nextjs14/src/app/(demo)/react-router/CodeBlocksRR.tsx +++ b/packages/example-nextjs14/src/app/(demo)/react-router/CodeBlocksRR.tsx @@ -7,7 +7,7 @@ import { tooltips } from '../tooltips'; export const CodeBlocksRR = () => { return (
-

Quick start

+

Quick start

1. Define the state
diff --git a/packages/example-nextjs14/src/app/(demo)/react-router/page.tsx b/packages/example-nextjs14/src/app/(demo)/react-router/page.tsx index 0391b89..a77b8f8 100644 --- a/packages/example-nextjs14/src/app/(demo)/react-router/page.tsx +++ b/packages/example-nextjs14/src/app/(demo)/react-router/page.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { DemoPart } from '../../DemoPart'; import { Description } from '../../components/Description'; -import { Tabs } from '../../components/Tabs'; +import { TabsBlock } from '../TabsBlock'; const CodeBlocks = dynamicImport( () => import('./CodeBlocksRR').then((mod) => mod.CodeBlocksRR), @@ -17,7 +17,7 @@ export default async function Home({ searchParams }: { searchParams: object }) { <> - +
diff --git a/packages/example-nextjs14/src/app/DemoPart.tsx b/packages/example-nextjs14/src/app/DemoPart.tsx index 365e3cf..f11c802 100644 --- a/packages/example-nextjs14/src/app/DemoPart.tsx +++ b/packages/example-nextjs14/src/app/DemoPart.tsx @@ -36,6 +36,9 @@ export function DemoPart({ searchParams }: { searchParams: object }) {
+ +
Type something in a form, changes reflected in URL and state instantly.
+
diff --git a/packages/example-nextjs14/src/app/components/UrlBox.tsx b/packages/example-nextjs14/src/app/components/UrlBox.tsx index 37a32b8..06218d8 100644 --- a/packages/example-nextjs14/src/app/components/UrlBox.tsx +++ b/packages/example-nextjs14/src/app/components/UrlBox.tsx @@ -13,7 +13,7 @@ export const UrlBox = () => { }, [sp]); return ( -
+ .wrapper { - @apply flex flex-col items-center container ml-auto mr-auto bg-gradient-to-t from-stone-50 to-white w-full p-2 py-8 xl:max-w-[1100px] lg:px-[4em] rounded-lg lg:pt-6; + @apply flex flex-col items-center container ml-auto mr-auto bg-gradient-to-t from-stone-50 to-white w-full p-2 py-8 xl:max-w-[1100px] lg:px-[4em] rounded-lg lg:pt-6; & > .header { @apply min-h-[35vh] md:min-h-[25vh] flex flex-col items-center mb-8; @@ -95,6 +94,13 @@ .urlBox { @apply my-3; + + & input { + border: 1px solid gray; + box-shadow: none; + outline: none; + cursor: default; + } } } diff --git a/packages/shared/tailwind.ts b/packages/shared/tailwind.ts index 6478709..b923838 100644 --- a/packages/shared/tailwind.ts +++ b/packages/shared/tailwind.ts @@ -6,6 +6,35 @@ export const sharedConfig: Partial = { fontFamily: { sans: ["var(--font-roboto)", "Helvetica", "Arial", "sans-serif"], }, + + animation: { + typewriter: "typewriter 6s steps(30) forwards", + caret: "typewriter 6s steps(30) forwards, blink 1s steps(11) 10 2s", + }, + keyframes: { + typewriter: { + to: { + left: "100%", + }, + }, + blink: { + "0%": { + opacity: "0", + }, + "0.1%": { + opacity: "1", + }, + "50%": { + opacity: "1", + }, + "50.1%": { + opacity: "0", + }, + "100%": { + opacity: "0", + }, + }, + }, }, }, };