Skip to content

Commit

Permalink
fix spline HP
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiano cardelli committed Oct 2, 2024
1 parent 40798ea commit 38aa88a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@nextui-org/react": "^2.3.6",
"@sentry/nextjs": "^8",
"@splinetool/react-spline": "^4.0.0",
"@splinetool/runtime": "^1.9.12",
"@splinetool/runtime": "^1.9.28",
"@tanstack/react-query": "^5.36.0",
"@tanstack/react-virtual": "^3.5.0",
"clsx": "^2.1.1",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions src/home/pages/home-page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// import dynamic from 'next/dynamic';
import dynamic from 'next/dynamic';
import Image from 'next/image';
import Link from 'next/link';
// import React, { Suspense } from 'react';
import React from 'react';
import React, { Suspense } from 'react';

Check failure on line 4 in src/home/pages/home-page.tsx

View workflow job for this annotation

GitHub Actions / Run Lint/Build/Test

'Suspense' is defined but never used. Allowed unused vars must match /^_/u

Check failure on line 4 in src/home/pages/home-page.tsx

View workflow job for this annotation

GitHub Actions / Run Lint/Build/Test

'Suspense' is defined but never used. Allowed unused vars must match /^_/u

// import React from 'react';
import { Button } from '@nextui-org/react';

import { FeatureSwiper } from '@/home/components/feature-swiper';
Expand All @@ -12,20 +12,20 @@ import { FlashIcon } from '@/home/components/icons/flash';
import { Marquee } from '@/home/components/marquee';
import { TestimonialSwiper } from '@/home/components/testimonial-swiper';

// const Spline = dynamic(() => import('@splinetool/react-spline'), {
// ssr: true,
// loading: () => <p>Loading ...</p>,
// });
const Spline = dynamic(() => import('@splinetool/react-spline'), {
ssr: true,
loading: () => <p>Loading ...</p>,
});

export const HomePage = () => {
return (
<div className="overflow-hidden pt-[70px] font-inter-tight lg:pt-0">
<main className="relative max-w-[1340px] px-5 pt-12 text-white md:px-10 lg:px-7 lg:pt-20">
{/* <div className="absolute right-0 top-0 z-0 size-[900px] -translate-y-1/2 translate-x-1/2 lg:translate-x-1/3 lg:translate-y-[-40%] ">
<Suspense fallback={<div>Loading...</div>}>
<div className="absolute right-0 top-0 z-0 size-[900px] -translate-y-1/2 translate-x-1/2 lg:translate-x-1/3 lg:translate-y-[-40%] ">

<Spline scene="https://prod.spline.design/kO6h5vInhIdK643Y/scene.splinecode" />
</Suspense>
</div> */}

</div>
<section className="relative z-10 ">
<div>
<h1 className="w-full font-grotesk text-32 font-medium leading-9 tracking-tighter antialiased md:w-9/12 md:text-48 md:leading-[57px] lg:w-1/2 lg:text-64 lg:leading-[76px]">
Expand Down Expand Up @@ -220,9 +220,9 @@ export const HomePage = () => {
</section>
<section className="relative my-40 text-center md:my-64 lg:my-80">
<div className="absolute inset-x-0 top-0 mx-auto -mt-32 flex h-[350px] w-[320px] items-center justify-center md:-mt-48 md:h-[550px] md:w-[520px] [&_canvas]:!size-[350px] [&_canvas]:md:!size-[550px]">
{/* <Suspense fallback={<div>Loading...</div>}>

<Spline scene="https://prod.spline.design/kO6h5vInhIdK643Y/scene.splinecode" />
</Suspense> */}

</div>
<div className="relative z-10">
<h2 className="mx-auto w-2/3 pb-3 font-grotesk text-2xl font-medium leading-8 tracking-tighter antialiased md:pb-6 md:text-48 md:leading-[57px]">
Expand Down

0 comments on commit 38aa88a

Please sign in to comment.