Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prod #84

Merged
merged 9 commits into from
Dec 3, 2024
Merged

prod #84

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 121 additions & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"@tanstack/react-query": "^5.53.3",
"framer-motion": "^11.11.17",
"framer-motion": "^11.12.0",
"lucide-react": "^0.417.0",
"motion": "^11.12.0",
"next": "^14.2.10",
Expand Down
Binary file added public/tatooine.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import What from "@/components/What";

const Home = () => {
return (
<div className="flex flex-col items-center justify-center">
<div className="flex flex-col items-center justify-center gap-10">
<Landing />
<About />
<What />
Expand Down
120 changes: 93 additions & 27 deletions src/components/What.tsx
Original file line number Diff line number Diff line change
@@ -1,38 +1,104 @@
"use client";
import React from "react";
import Title from "./Title";
import Header from "./Header";
import Image from "next/image";
import planet from "@/public/tatooine.webp";
import { motion } from "framer-motion";

const What = () => {
return (
<>
<div className="relative flex w-full flex-col md:flex-row">
<div className="flex flex-col gap-y-4 px-4 pt-6 text-center md:w-1/2 md:pl-[8%] md:pt-[9%]">
<div className="flex flex-col gap-6 md:gap-9">
<Title text="Forge The Future" />
const delayedPopup = {
hidden: {
opacity: 0,
},
visible: {
opacity: 1,
transition: {
duration: 1,
},
},
};

const fadeIn = {
hidden: {
opacity: 0,
y: 20,
},
visible: {
opacity: 1,
y: 0,
transition: {
duration: 1,
},
},
};

<p className="text-base text-white sm:text-lg md:text-xl lg:text-2xl">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut
enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
</p>
const whatAnimation = {
hidden: {
opacity: 0,
scale: 0,
x: -500,
},
visible: {
opacity: 1,
scale: 1,
x: 0,
},
};

<p className="text-base text-white sm:text-lg md:text-xl lg:text-2xl">
Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum.
</p>
</div>
</div>
const What = () => {
return (
<div className="relative flex w-full flex-col md:flex-row">
<motion.div
variants={delayedPopup}
initial="hidden"
whileInView="visible"
className="flex flex-col gap-y-4 px-4 pt-6 text-center md:w-1/2 md:pl-[8%] md:pt-[9%]"
>
<motion.div
className="flex flex-col gap-6 md:gap-9"
variants={fadeIn}
initial="hidden"
whileInView="visible"
>
<Title text="Forge The Future" />
<motion.div
className="text-base text-white sm:text-lg md:text-xl lg:text-2xl"
variants={fadeIn}
initial="hidden"
whileInView="visible"
>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat.
</motion.div>
<motion.p
className="text-base text-white sm:text-lg md:text-xl lg:text-2xl"
variants={fadeIn}
initial="hidden"
whileInView="visible"
>
Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit
anim id est laborum.
</motion.p>
</motion.div>
</motion.div>

<div className="flex w-full items-center justify-center px-4 py-6 md:w-1/2 md:items-end md:justify-start">
<div className="flex w-full justify-center text-center text-4xl md:text-left lg:text-8xl">
<Header title="What We Do" />
</div>
</div>
<div className="flex w-full items-center justify-center px-4 py-6 md:w-1/2 md:items-end md:justify-start">
<motion.div
className="flex w-full flex-col items-center justify-center text-center text-4xl md:text-left lg:text-8xl"
variants={whatAnimation}
initial="hidden"
whileInView="visible"
transition={{ ease: "easeOut", duration: 1 }}
>
<Image src={planet} alt="planet" className="w-4/5" />
<Header title="What We Do" />
</motion.div>
</div>
</>
</div>
);
};

Expand Down
Loading