Skip to content

Commit 50230d1

Browse files
Move code block sizing to outer div
1 parent 855ec48 commit 50230d1

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/components/CodeBox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const CodeBox = () => {
1313
}
1414
}, []);
1515
return (<>
16-
<div className="absolute rounded-2xl bg-bgDarker1/90 ring-1 ring-white/10 backdrop-blur w-4/5 2xl:w-[1200px] text-left">
16+
<div className="rounded-2xl bg-bgDarker1/90 ring-1 ring-white/10 backdrop-blur text-left">
1717
<div className="absolute -top-px left-20 right-11 h-px bg-gradient-to-r from-primaryColor/0 via-secondaryColor/70 to-primaryColor/0"></div>
1818
<div className="absolute -bottom-px left-11 right-20 h-px bg-gradient-to-r from-primaryColor/0 via-secondaryColor to-primaryColor/0"></div>
1919
<div className="pl-4 pt-4">

src/components/Hero.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,9 @@ export const Hero = () => {
9393
transition={{ duration: 0.5, delay: 0.15 }}
9494
>
9595
<div className="relative w-screen flex justify-center ">
96-
{/* <img
97-
src={dashboard.src}
98-
alt="Dashboard image"
99-
className="w-4/5 2xl:w-[1200px] mx-auto absolute z-10 rounded-xl main-border-gray hero-dashboard-border-gradient lg:top-6 xl:top-0"
100-
/> */}
101-
<CodeBox />
96+
<div className="absolute z-10 w-4/5 2xl:w-[1200px] lg:top-6">
97+
<CodeBox />
98+
</div>
10299
</div>
103100
</motion.div>
104101
<div className="relative w-screen flex justify-center ">

0 commit comments

Comments
 (0)