Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-n3m0 authored Aug 24, 2024
2 parents aa97f5b + 6ea201f commit de5c209
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 33 deletions.
40 changes: 19 additions & 21 deletions src/components/ui/lamp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ export const LampContainer = ({
className
)}
>
<div className="relative flex w-full flex-1 scale-y-125 items-center justify-center isolate z-0 ">
{/* Adjusting the width based on the screen size */}
<div className="relative flex w-full flex-1 items-center justify-center isolate z-0 ">
<motion.div
initial={{ opacity: 0.5, width: "10rem" }}
whileInView={{ opacity: 1, width: "20rem" }}
initial={{ opacity: 0.5, width: "8rem" }}
whileInView={{ opacity: 1, width: "18rem" }}
transition={{
delay: 0.3,
duration: 0.8,
Expand All @@ -30,14 +29,14 @@ export const LampContainer = ({
style={{
backgroundImage: `conic-gradient(var(--conic-position), var(--tw-gradient-stops))`,
}}
className="absolute inset-auto right-1/2 h-56 overflow-visible sm:w-[20rem] md:w-[25rem] lg:w-[30rem] bg-gradient-conic from-[#B49955] via-transparent to-transparent text-white [--conic-position:from_70deg_at_center_top]"
className="absolute inset-auto right-1/2 h-36 w-[50vw] max-w-[18rem] bg-gradient-conic from-[#B49955] via-transparent to-transparent text-white [--conic-position:from_70deg_at_center_top]"
>
<div className="absolute w-[100%] left-0 bg-black h-40 bottom-0 z-20 [mask-image:linear-gradient(to_top,white,transparent)]" />
<div className="absolute w-40 h-[100%] left-0 bg-black bottom-0 z-20 [mask-image:linear-gradient(to_right,white,transparent)]" />
<div className="absolute w-full left-0 bg-black h-16 bottom-0 z-20 [mask-image:linear-gradient(to_top,white,transparent)]" />
<div className="absolute w-16 h-full left-0 bg-black bottom-0 z-20 [mask-image:linear-gradient(to_right,white,transparent)]" />
</motion.div>
<motion.div
initial={{ opacity: 0.5, width: "10rem" }}
whileInView={{ opacity: 1, width: "20rem" }}
initial={{ opacity: 0.5, width: "8rem" }}
whileInView={{ opacity: 1, width: "18rem" }}
transition={{
delay: 0.3,
duration: 0.8,
Expand All @@ -46,23 +45,23 @@ export const LampContainer = ({
style={{
backgroundImage: `conic-gradient(var(--conic-position), var(--tw-gradient-stops))`,
}}
className="absolute inset-auto left-1/2 h-56 sm:w-[20rem] md:w-[25rem] lg:w-[30rem] bg-gradient-conic from-transparent via-transparent to-[#B49955] text-white [--conic-position:from_290deg_at_center_top]"
className="absolute inset-auto left-1/2 h-36 w-[50vw] max-w-[18rem] bg-gradient-conic from-transparent via-transparent to-[#B49955] text-white [--conic-position:from_290deg_at_center_top]"
>
<div className="absolute w-40 h-[100%] right-0 bg-black bottom-0 z-20 [mask-image:linear-gradient(to_left,white,transparent)]" />
<div className="absolute w-[100%] right-0 bg-black h-40 bottom-0 z-20 [mask-image:linear-gradient(to_top,white,transparent)]" />
<div className="absolute w-16 h-full right-0 bg-black bottom-0 z-20 [mask-image:linear-gradient(to_left,white,transparent)]" />
<div className="absolute w-full right-0 bg-black h-16 bottom-0 z-20 [mask-image:linear-gradient(to_top,white,transparent)]" />
</motion.div>
<div className="absolute top-1/2 h-48 w-full translate-y-12 scale-x-150 bg-black blur-2xl"></div>
<div className="absolute top-1/2 z-50 h-48 w-full bg-transparent opacity-10 backdrop-blur-md"></div>
<div className="absolute inset-auto z-50 h-36 w-[16rem] sm:w-[20rem] md:w-[24rem] lg:w-[28rem] -translate-y-1/2 rounded-full bg-[#987D39] opacity-50 blur-3xl"></div>
<div className="absolute top-1/2 h-24 w-full translate-y-[6rem] scale-x-125 bg-black blur-2xl"></div>
<div className="absolute top-1/2 z-50 h-24 w-full bg-transparent opacity-10 backdrop-blur-md"></div>
<div className="absolute inset-auto z-50 h-20 w-[50vw] max-w-[16rem] translate-y-1/2 rounded-full bg-[#987D39] opacity-50 blur-3xl"></div>
<motion.div
initial={{ width: "6rem" }}
whileInView={{ width: "12rem" }}
whileInView={{ width: "25rem" }}
transition={{
delay: 0.3,
duration: 0.8,
ease: "easeInOut",
}}
className="absolute inset-auto z-30 h-36 sm:w-[12rem] md:w-[16rem] lg:w-[20rem] -translate-y-[6rem] rounded-full bg-[#FFC020] blur-2xl"
className="absolute inset-auto z-30 h-20 w-[30vw] max-w-48 -translate-y-[4rem] rounded-full bg-[#FFC020] blur-2xl"
></motion.div>
<motion.div
initial={{ width: "10rem" }}
Expand All @@ -72,16 +71,15 @@ export const LampContainer = ({
duration: 0.8,
ease: "easeInOut",
}}
className="absolute inset-auto z-50 h-0.5 sm:w-[20rem] md:w-[25rem] lg:w-[30rem] -translate-y-[7rem] bg-[#FFC020] "
className="absolute inset-auto z-50 h-0.5 w-[60vw] max-w-[18rem] -translate-y-[4.4rem] bg-[#FFC020] "
></motion.div>

<div className="absolute inset-auto z-40 h-44 w-full -translate-y-[12.5rem] bg-black"></div>

</div>

<div className="relative z-50 flex -translate-y-80 flex-col items-center px-5">
<div className="relative z-50 flex -translate-y-40 flex-col items-center px-5">
{children}
</div>
</div>
);
};

17 changes: 5 additions & 12 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { LampContainer } from "../components/ui/lamp";
import { motion } from "framer-motion";
import glowing_penguin from "../assets/images/glowing_penguin.svg";

const Home = () => {
return (
<div className="relative min-h-screen overflow-x-hidden overflow-y-auto">
<div className="relative min-h-screen overflow-hidden font-outfit">
<LampContainer>
<motion.h1
initial={{ opacity: 0.5, y: 100 }}
Expand All @@ -15,22 +14,16 @@ const Home = () => {
ease: "easeInOut",
}}
className="text-center text-white font-semibold font-manrope leading-tight
text-2xl sm:text-3xl sm:leading-[40px]
md:text-4xl md:leading-[50px]
lg:text-5xl lg:leading-[60px]
xl:text-6xl xl:leading-[70px]"
text-3xl sm:text-4xl md:text-5xl lg:text-6xl xl:text-7xl"
>
We appreciate your patience but
<br />
something really cool is coming soon!
</motion.h1>
</LampContainer>
<img
src={glowing_penguin}
alt="Glowing Penguin"
className="absolute right-0 bottom-[-3%]
w-[50%] sm:w-[40%] md:w-[30%] lg:w-[25%] xl:w-[20%]"
/>
<div className="absolute bottom-4 right-4 text-white text-xs opacity-70">
© ArkTech
</div>
</div>
);
};
Expand Down

0 comments on commit de5c209

Please sign in to comment.