Skip to content

Commit

Permalink
fixywixy
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge committed Jan 30, 2025
1 parent c6e1057 commit 4a8b585
Show file tree
Hide file tree
Showing 5 changed files with 2,062 additions and 703 deletions.
12 changes: 6 additions & 6 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
},
"browserslist": "defaults, not ie <= 11",
"dependencies": {
"@algolia/autocomplete-core": "^1.17.8",
"@algolia/autocomplete-core": "^1.18.0",
"@headlessui/react": "^2.2.0",
"@headlessui/tailwindcss": "^0.2.1",
"@heroicons/react": "^2.2.0",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/mdx": "^15.1.3",
"@scalar/api-reference-react": "^0.4.8",
"@shikijs/transformers": "^1.26.1",
"@scalar/api-reference-react": "^0.4.21",
"@shikijs/transformers": "^1.29.2",
"@sindresorhus/slugify": "^2.1.1",
"@tailwindcss/typography": "^0.5.15",
"@types/mdast": "^4.0.4",
Expand All @@ -31,11 +31,11 @@
"@uploadthing/react": "workspace:*",
"acorn": "^8.12.1",
"clsx": "^2.1.0",
"fast-glob": "^3.3.2",
"fast-glob": "^3.3.3",
"flexsearch": "^0.7.43",
"mdast-util-to-string": "^4.0.0",
"mdx-annotations": "^0.1.4",
"motion": "^12.0.0-alpha.2",
"motion": "^12.0.6",
"next": "15.1.3",
"next-sitemap": "^4.2.3",
"next-themes": "^0.4.4",
Expand All @@ -50,7 +50,7 @@
"remark-mdx": "^3.1.0",
"remark-unwrap-images": "^4.0.0",
"sharp": "0.33.5",
"shiki": "^1.26.1",
"shiki": "^1.29.2",
"simple-functional-loader": "^1.2.1",
"tailwindcss": "^3.4.16",
"typescript": "5.7.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ export default function ScalarApiRef() {

const ref = useRef<HTMLDivElement>(null);
useMutationObserver(ref, (args) => {
console.log("args", args);
if (
args.filter(
(a) =>
a.type === "attributes" &&
a.target instanceof Element &&
a.target.classList.contains("scalar-app") &&
a.target.classList.contains("references-layout"),
a.target.classList.contains("references-rendered"),
).length > 0
) {
setLoaded(true);
Expand Down
7 changes: 0 additions & 7 deletions docs/src/app/(docs)/client-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ export function Layout({
allSections: Record<string, Array<Section>>;
}) {
let pathname = usePathname();
const [bannerOpen, setBannerOpen] = useState(false);
useEffect(() => {
setTimeout(() => {
setBannerOpen(true);
}, 1000);
}, []);

return (
<SectionProvider sections={allSections[pathname] ?? []}>
Expand All @@ -98,7 +92,6 @@ export function Layout({

<div className="relative flex h-full flex-col px-4 pt-14 sm:px-6 lg:px-8">
{/* <PreviewBanner open={bannerOpen} setOpen={setBannerOpen} /> */}
<div className="h-24 w-full sm:h-8" />
<main className="flex-auto">{children}</main>
<Footer />
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/HeroPattern.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GridPattern } from "@/components/GridPattern";

export function HeroPattern() {
return (
<div className="absolute inset-0 -z-10 mx-0 max-w-none overflow-hidden">
<div className="pointer-events-none absolute inset-0 mx-0 max-w-none overflow-hidden">
<div className="absolute left-1/2 top-0 ml-[-38rem] h-[25rem] w-[81.25rem] dark:[mask-image:linear-gradient(white,transparent)]">
<div className="absolute inset-0 bg-gradient-to-r from-[#f36b6b] to-[#7f1d1d] opacity-40 [mask-image:radial-gradient(farthest-side_at_top,white,transparent)] dark:from-[#f36b6b]/30 dark:to-[#450a0a]/30 dark:opacity-100">
<GridPattern
Expand Down
Loading

0 comments on commit 4a8b585

Please sign in to comment.