From d3f059dc656a2506bff87adc4304d45667a3ac00 Mon Sep 17 00:00:00 2001 From: Julian Benegas Date: Thu, 12 Oct 2023 15:46:57 +0200 Subject: [PATCH] set debug to true --- .../src/app/components/cyllinder/index.tsx | 10 +++---- .../src/app/sections/falling-caps/index.tsx | 18 +------------ website/src/app/sections/footer/index.tsx | 19 +++++++------ website/src/app/sections/hero/index.tsx | 2 +- .../app/sections/horizontal-marquee/index.tsx | 2 +- .../app/sections/lab-cylinder/intro/index.tsx | 2 +- .../src/app/sections/last-parallax/index.tsx | 27 +++++++++++++++---- 7 files changed, 40 insertions(+), 40 deletions(-) diff --git a/website/src/app/components/cyllinder/index.tsx b/website/src/app/components/cyllinder/index.tsx index a454348..4829dbc 100644 --- a/website/src/app/components/cyllinder/index.tsx +++ b/website/src/app/components/cyllinder/index.tsx @@ -5,9 +5,8 @@ import Image from "next/image"; import s from "./cyllinder.module.scss"; import clsx from "clsx"; -import { defaultConfig, useMapToCylinder } from "./helpers"; +import { useMapToCylinder } from "./helpers"; import { Experiment } from "../../../lib/types"; -import { useMedia } from "../../../hooks/use-media"; import Link from "next/link"; import { useViewportSize } from "~/hooks/use-viewport"; @@ -22,8 +21,7 @@ const itemsInViewAtOnce = 7; const itemsPadding = 4; export const Cyllinder: React.FC = ({ experiments }) => { - const { height, aspect } = useViewportSize(); - const isMobileSize = useMedia("(max-width: 768px)"); + const { height } = useViewportSize(); const pinSpacerHeight = `calc(3 * ${itemHeight} * ${ Math.max(itemsInViewAtOnce, experiments.length) + itemsPadding })`; @@ -51,9 +49,7 @@ export const Cyllinder: React.FC = ({ experiments }) => { callbacks={{ onRefresh: () => update(progress.value), }} - // debug={{ - // label: "cylinder", - // }} + debug={{ label: "Cylinder" }} >
{ const wordsArray = text.split(" "); @@ -45,23 +44,8 @@ export const FallingCaps = () => { [] ); - const perWordTimeline = useMemo( - () => - getTimeline({ - start: 0, - end: 50, - /* Chunk per word */ - chunks: splittedText.length, - overlap: 0.7, - }), - [splittedText] - ); - return ( - +
diff --git a/website/src/app/sections/footer/index.tsx b/website/src/app/sections/footer/index.tsx index 95d49f4..e24ab08 100644 --- a/website/src/app/sections/footer/index.tsx +++ b/website/src/app/sections/footer/index.tsx @@ -4,8 +4,7 @@ import Image from "next/image"; import bsmtTeamImg from "../../../../public/footer/basement-team-footer.jpg"; import * as Scrollytelling from "~/lib/scrollytelling-client"; import QRImg from "../../../../public/footer/QR.svg"; -import confetti from "canvas-confetti" - +import confetti from "canvas-confetti"; import s from "./footer.module.scss"; import Link from "next/link"; @@ -22,10 +21,7 @@ export const Footer = () => { const isDesktopSm = useMedia("(min-width: 1024px)"); return ( - +