Skip to content

Commit 769950d

Browse files
committed
Formatting
1 parent 5d671c9 commit 769950d

22 files changed

+87
-92
lines changed

src/components/code-example.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1+
import { Tab, TabGroup, TabList, TabPanel, TabPanels } from "@headlessui/react";
12
import {
2-
transformerNotationWordHighlight,
33
transformerNotationDiff,
44
transformerNotationHighlight,
5+
transformerNotationWordHighlight,
56
} from "@shikijs/transformers";
6-
import { createHighlighter } from "shiki";
7-
import theme from "./syntax-highlighter/theme.json";
87
import { clsx } from "clsx";
98
import dedent from "dedent";
10-
import { Tab, TabGroup, TabList, TabPanel, TabPanels } from "@headlessui/react";
9+
import { createHighlighter } from "shiki";
10+
import theme from "./syntax-highlighter/theme.json";
1111

12+
import { highlightClasses } from "./highlight-classes";
1213
import atApplyInjection from "./syntax-highlighter/at-apply.json";
1314
import atRulesInjection from "./syntax-highlighter/at-rules.json";
1415
import themeFnInjection from "./syntax-highlighter/theme-fn.json";
15-
import { highlightClasses } from "./highlight-classes";
1616

1717
export function js(strings: TemplateStringsArray, ...args: any[]) {
1818
return { lang: "js", code: dedent(strings, ...args) };
@@ -57,7 +57,7 @@ export async function CodeExample({
5757

5858
export function CodeExampleWrapper({ className, children }: { className?: string; children: React.ReactNode }) {
5959
return (
60-
<div className="rounded-xl bg-gray-950 in-data-stack:mt-0 in-[figure]:-mx-1 in-[figure]:-mb-1 in-data-stack:rounded-none in-data-stack:[:first-child>&]:rounded-t-xl in-data-stack:[:last-child>&]:rounded-b-xl">
60+
<div className="rounded-xl bg-gray-950 in-data-stack:mt-0 in-data-stack:rounded-none in-[figure]:-mx-1 in-[figure]:-mb-1 in-data-stack:[:first-child>&]:rounded-t-xl in-data-stack:[:last-child>&]:rounded-b-xl">
6161
<div
6262
className={clsx(
6363
"rounded-xl p-1 text-sm scheme-dark in-data-stack:not-first:rounded-t-none dark:bg-white/5 dark:inset-ring dark:inset-ring-white/10",

src/components/content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import css from "dedent";
12
import { Fragment } from "react";
23
import { CodeExample } from "./code-example";
3-
import css from "dedent";
44

55
const screens = {
66
sm: "small",

src/components/dynamic-viewport-example.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use client";
22

3-
import React, { useState, useRef } from "react";
4-
import { motion, useScroll, useMotionValueEvent } from "framer-motion";
53
import clsx from "clsx";
6-
import { Stripes } from "./stripes";
4+
import { motion, useMotionValueEvent, useScroll } from "framer-motion";
5+
import { useRef, useState } from "react";
76
import { Example } from "./example";
7+
import { Stripes } from "./stripes";
88

99
const viewport = {
1010
lvh: 491,

src/components/fathom.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
22

33
import { load, trackPageview } from "fathom-client";
4-
import { useEffect, Suspense } from "react";
54
import { usePathname, useSearchParams } from "next/navigation";
5+
import { Suspense, useEffect } from "react";
66

77
function TrackPageView() {
88
const pathname = usePathname();

src/components/footer.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import React from "react";
2-
import ThemeToggle from "./theme-toggle";
3-
import Link from "next/link";
41
import clsx from "clsx";
2+
import Link from "next/link";
3+
import ThemeToggle from "./theme-toggle";
54

65
export function FooterSitemap({ className }: { className?: string }) {
76
return (

src/components/highlight.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { Components, toJsxRuntime } from "hast-util-to-jsx-runtime";
12
import { Fragment, type JSX } from "react";
23
import { jsx, jsxs } from "react/jsx-runtime";
34
import { createHighlighter, ShikiTransformer } from "shiki";
4-
import { Components, toJsxRuntime } from "hast-util-to-jsx-runtime";
55
import atApplyInjection from "./syntax-highlighter/at-apply.json";
66
import atRulesInjection from "./syntax-highlighter/at-rules.json";
77
import themeFnInjection from "./syntax-highlighter/theme-fn.json";

src/components/home/build-anything-section.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
import { BentoItem } from "./bento";
2-
import GridContainer from "../grid-container";
3-
import CategoryHeader from "./category-header";
41
import Image from "next/image";
52
import React from "react";
6-
import openai from "./build-anything-section/openai.png";
7-
import opal from "./build-anything-section/opal.png";
3+
import GridContainer from "../grid-container";
4+
import { BentoItem } from "./bento";
5+
import clerk from "./build-anything-section/clerk.png";
86
import feastables from "./build-anything-section/feastables.png";
7+
import googleIo from "./build-anything-section/googleio.png";
98
import gumroad from "./build-anything-section/gumroad.png";
10-
import skims from "./build-anything-section/skims.png";
9+
import midjourney from "./build-anything-section/midjourney.png";
10+
import nasa from "./build-anything-section/nasa.png";
11+
import opal from "./build-anything-section/opal.png";
12+
import openai from "./build-anything-section/openai.png";
13+
import poolside from "./build-anything-section/poolside.png";
1114
import reddit from "./build-anything-section/reddit.png";
1215
import rivian from "./build-anything-section/rivian.png";
1316
import shopify from "./build-anything-section/shopify.png";
14-
import clerk from "./build-anything-section/clerk.png";
15-
import verge from "./build-anything-section/verge.png";
16-
import googleIo from "./build-anything-section/googleio.png";
17+
import skims from "./build-anything-section/skims.png";
1718
import ted from "./build-anything-section/ted.png";
18-
import poolside from "./build-anything-section/poolside.png";
19-
import midjourney from "./build-anything-section/midjourney.png";
20-
import nasa from "./build-anything-section/nasa.png";
19+
import verge from "./build-anything-section/verge.png";
20+
import CategoryHeader from "./category-header";
2121

2222
export default function BuildAnythingSection() {
2323
return (

src/components/home/explainer-section.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import React from "react";
1+
import clsx from "clsx";
22
import type { Element, ElementContent } from "hast";
3+
import React from "react";
34
import type { ShikiTransformer } from "shiki";
4-
import clsx from "clsx";
5-
import GridContainer from "../grid-container";
6-
import CategoryHeader from "./category-header";
75
import { html } from "../code-example";
6+
import { generateCss } from "../generated-css";
7+
import GridContainer from "../grid-container";
8+
import { HighlightedCode } from "../highlight";
9+
import { getTextContent } from "../highlight-classes";
810
import { AnchoredToBottom } from "./anchored-to-bottom";
11+
import CategoryHeader from "./category-header";
912
import {
1013
EditorAnimation,
1114
EditorKeyframe,
1215
ShowOutputClassAnimation,
1316
TerminalAnimation,
1417
TypingAnimation,
1518
} from "./explainer/animation";
16-
import { HighlightedCode } from "../highlight";
17-
import { getTextContent } from "../highlight-classes";
18-
import { generateCss } from "../generated-css";
1919

2020
export default function ExplainerSection() {
2121
let timeline: EditorKeyframe[] = [

src/components/home/explainer/animation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use client";
22

3-
import { createContext, Fragment, useContext, useEffect, useRef, useState } from "react";
43
import clsx from "clsx";
54
import { useInView } from "framer-motion";
5+
import { createContext, Fragment, useContext, useEffect, useRef, useState } from "react";
66

77
export interface EditorKeyframe {
88
class?: string;

src/components/home/hero.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
"use client";
22

33
import clsx from "clsx";
4+
import { motion } from "framer-motion";
5+
import React, { useEffect, useState } from "react";
46
import GridContainer from "../grid-container";
57
import { SearchButton } from "../search";
8+
import cover from "./cover.png";
69
import { Editor } from "./editor";
710
import LinkButton from "./link-button";
8-
import React, { useEffect, useState } from "react";
9-
import { motion } from "framer-motion";
10-
import cover from "./cover.png";
1111

1212
const SYMBOL = { color: "var(--color-slate-400)" };
1313
const ELEMENT = { color: "var(--color-pink-400)" };

0 commit comments

Comments
 (0)