-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
323 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,33 @@ | ||
import dynamic from 'next/dynamic'; | ||
import { useEffect, useState } from 'react'; | ||
|
||
const ModelViewer = dynamic(() => import('../ModelViewer'), { ssr: false }); | ||
|
||
const tipitytopity = ()=> { | ||
return ( | ||
<div className="flex flex-col mb-8 md:flex-row items-center justify-center gap-4 pr-0 md:pr-12 w-full mx-auto pt-[10vh] md:pt-0 bg-[url('https://cloud-clj0ujnpv-hack-club-bot.vercel.app/0image.png')] border-b-4 bg-no-repeat bg-center bg-cover sm:h-[120vh] md:h-[95vh]"> | ||
{typeof window !== 'undefined' && <ModelViewer />} | ||
{/* | ||
<Image | ||
src="https://cloud-1mi3pnd3v-hack-club-bot.vercel.app/0image.png" | ||
alt="Example PCB!" | ||
style={{ width: '35%', height: '34%' }} | ||
sx={{ | ||
width: '300px', | ||
height: '200px', | ||
// borderRadius: '16px', | ||
// divShadow: '0px 4px 6px rgba(0, 0, 0, 0.1)', | ||
'&:hover': { | ||
transform: 'scale(1.1)', | ||
transition: 'transform 0.3s ease-in-out', | ||
}, | ||
}} | ||
/> */} | ||
<div className="flex flex-col items-start ml-0 md:ml-[2vw] max-w-full"> | ||
<h1 className="text-[2.8rem] md:text-[7rem] font-bold text-center md:text-left text-white [text-shadow:_0_4px_4px_rgb(0_0_0_/_25%)]"> | ||
Hacky Holidays! | ||
</h1> | ||
<h2 className="text-[0.7rem] md:text-[1.9rem] font-bold text-white [text-shadow:_0_4px_4px_rgb(0_0_0_/_25%)] md:-mt-4"> | ||
Design a PCB holiday decoration this winter, get one shipped! | ||
</h2> | ||
<a href = "/guide"> | ||
<button className="mx-auto mb-10 md:mx-0 text-[0.8rem] md:text-[calc(0.6vw+0.6vh)] font-bold text-white bg-[#f76f63] rounded-[2rem] px-4 py-2 md:px-8 md:py-4 mt-4 [text-shadow:_0_4px_4px_rgb(0_0_0_/_25%)] text-center align-middle"> <b> Learn to Make a Decoration ➜</b> | ||
</button> | ||
</a> | ||
const tipitytopity = () => { | ||
const [isClient, setIsClient] = useState(false); | ||
|
||
</div> | ||
</div> | ||
useEffect(() => { | ||
setIsClient(true); | ||
}, []); | ||
|
||
) | ||
} | ||
return ( | ||
<div className="flex flex-col mb-8 md:flex-row items-center justify-center gap-4 pr-0 md:pr-12 w-full mx-auto pt-[10vh] md:pt-0 bg-[url('https://cloud-clj0ujnpv-hack-club-bot.vercel.app/0image.png')] border-b-4 bg-no-repeat bg-center bg-cover sm:h-[120vh] md:h-[95vh]"> | ||
{isClient && <ModelViewer />} | ||
<div className="flex flex-col items-start ml-0 md:ml-[2vw] max-w-full"> | ||
<h1 className="text-[2.8rem] md:text-[7rem] font-bold text-center md:text-left text-white [text-shadow:_0_4px_4px_rgb(0_0_0_/_25%)]"> | ||
Hacky Holidays! | ||
</h1> | ||
<h2 className="text-[0.7rem] md:text-[1.9rem] font-bold text-white [text-shadow:_0_4px_4px_rgb(0_0_0_/_25%)] md:-mt-4"> | ||
Design a PCB holiday decoration this winter, get one shipped! | ||
</h2> | ||
<a href="/guide"> | ||
<button className="mx-auto mb-10 md:mx-0 text-[0.8rem] md:text-[calc(0.6vw+0.6vh)] font-bold text-white bg-[#f76f63] rounded-[2rem] px-4 py-2 md:px-8 md:py-4 mt-4 [text-shadow:_0_4px_4px_rgb(0_0_0_/_25%)] text-center align-middle"> | ||
<b> Learn to Make a Decoration ➜</b> | ||
</button> | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default tipitytopity; | ||
export default tipitytopity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.