Skip to content

Commit

Permalink
Added footer
Browse files Browse the repository at this point in the history
  • Loading branch information
GIT-Gizmo committed Mar 27, 2024
1 parent a907259 commit 53e0d8c
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 30 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"aipicker",
"colorpicker",
"Customizer",
"davegizmo",
"drei",
"editortabs",
"filepicker",
Expand Down
16 changes: 16 additions & 0 deletions client/src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { motion } from "framer-motion";

import { slideAnimation } from "../config/motion";

const Footer = () => {

return (
<>
<motion.footer className="text-gray-800 w-fit mx-auto pb-1" {...slideAnimation('up')}>
created with <span className="text-red-600">❤️</span> by <a href="https://davegizmo.vercel.app" target="_blank" className="underline">davegizmo</a>
</motion.footer>
</>
)
}

export default Footer
65 changes: 35 additions & 30 deletions client/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,47 @@ import {
headTextAnimation,
slideAnimation
} from "../config/motion";
import Footer from "../components/Footer";

const Home = () => {
const snap = useSnapshot(state);

return (
<AnimatePresence>
{snap.intro && (
<motion.section className="home" {...slideAnimation('left')} >
<motion.header {...slideAnimation('down')}>
<img src="./ai.webp"
alt="logo"
className="w-12 h-12 object-contain"/>
</motion.header>

<motion.div className="home-content" {...headContainerAnimation}>
<motion.div {...headTextAnimation}>
<h1 className="head-text">
LET&apos;S <br className="xl:block hidden"/> DO IT.
</h1>
</motion.div>
<motion.div {...headContentAnimation} className="flex flex-col gap-5">
<p className="max-w-md text-gray-600 font-normal">
Design your dream shirt in 3D with our groundbreaking customization tool. <strong>Let your creativity loose</strong>{" "}and express yourself.
</p>

<CustomButton
type="filled"
title="Customize it"
handleClick={() => state.intro = false}
customStyles="w-fit px-4 py-2.5 font-bold text-sm"
/>
<>
<AnimatePresence>
{snap.intro && (
<motion.article className="home" {...slideAnimation('left')} >
<motion.header {...slideAnimation('down')}>
<img src="./ai.webp"
alt="logo"
className="w-12 h-12 object-contain"/>
</motion.header>
<motion.div className="home-content" {...headContainerAnimation}>
<motion.div {...headTextAnimation}>
<h1 className="head-text">
LET&apos;S <br className="xl:block hidden"/> DO IT.
</h1>
</motion.div>
<motion.div {...headContentAnimation} className="flex flex-col gap-5">
<p className="max-w-md text-gray-600 font-normal">
Design your dream shirt in 3D with our groundbreaking customization tool. <strong>Let your creativity loose</strong>{" "}and express yourself.
</p>
<CustomButton
type="filled"
title="Customize it"
handleClick={() => state.intro = false}
customStyles="w-fit px-4 py-2.5 font-bold text-sm"
/>
</motion.div>
</motion.div>
</motion.div>
</motion.section>
)}
</AnimatePresence>
</motion.article>
)}
</AnimatePresence>

<motion.div className="z-10 w-full absolute bottom-0">
<Footer />
</motion.div>
</>
)
}

Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

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

0 comments on commit 53e0d8c

Please sign in to comment.