Skip to content

Commit

Permalink
Merge pull request #1 from BrightTheBackpack/main
Browse files Browse the repository at this point in the history
fix vercel
  • Loading branch information
BrightTheBackpack authored Nov 29, 2024
2 parents 4124477 + 719fbc7 commit 6696d94
Show file tree
Hide file tree
Showing 5 changed files with 5,023 additions and 335 deletions.
15 changes: 0 additions & 15 deletions app/_app.js

This file was deleted.

18 changes: 11 additions & 7 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

/* eslint-disable @typescript-eslint/no-unused-vars */
import { keyframes } from '@emotion/react'
import '@google/model-viewer';
import Script from 'next/script';

// import '@google/model-viewer';
// import Script from 'next/script';
import { useEffect } from 'react';

// import Image from "next/image";
import {
Expand All @@ -19,7 +19,7 @@ import {
import dynamic from 'next/dynamic';

// const ModelViewer = dynamic(() => import('./ModelViewer'), { ssr: false });
import ModelViewer from './ModelViewer.js';
const ModelViewer = dynamic(() => import('./ModelViewer'), { ssr: false });

const fall = ( rotationDirection: number) => keyframes`
from {
Expand All @@ -30,7 +30,11 @@ const fall = ( rotationDirection: number) => keyframes`
}
`;
export default function Home() {

useEffect(() => {
if (typeof window !== 'undefined') {
import('@google/model-viewer');
}
}, []);
return (
<Grid gap = {0} sx={{
backgroundImage: 'linear-gradient(to bottom, #25A8FF, #DCF1FF)',
Expand Down Expand Up @@ -115,8 +119,8 @@ export default function Home() {
// height: '65vh'
}}
>
<ModelViewer/>
{/*
{typeof window !== 'undefined' && <ModelViewer />}
{/*
<Image
src="https://cloud-1mi3pnd3v-hack-club-bot.vercel.app/0image.png"
alt="Example PCB!"
Expand Down
Loading

0 comments on commit 6696d94

Please sign in to comment.