Skip to content

Commit f8f21b2

Browse files
édouard wautierédouard wautier
authored andcommitted
Fixing transparency issue on front home
1 parent 991c478 commit f8f21b2

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

front/components/home/scrollingHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const ScrollingHeader = ({
3131
invisibleFirstElements.forEach((element: Element) => {
3232
if (element instanceof HTMLElement) {
3333
if (isScrolled2) {
34-
element.style.opacity = "1";
34+
element.classList.remove("opacity-0");
3535
} else {
36-
element.style.opacity = "0";
36+
element.classList.add("opacity-0");
3737
}
3838
}
3939
});

front/pages/index.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,10 @@ export default function Home({
117117
<Header />
118118
<ScrollingHeader showItemY={logoY}>
119119
<div className="flex h-full w-full items-center gap-10 px-4">
120-
<div
121-
style={{ opacity: 0 }}
122-
className="invisibleFirst hidden h-[24px] w-[96px] transition-all duration-500 ease-out md:block"
123-
>
120+
<div className="invisibleFirst hidden h-[24px] w-[96px] opacity-0 transition-all duration-500 ease-out md:block">
124121
<Logo className="h-[24px] w-[96px]" />
125122
</div>
126-
<div
127-
style={{ opacity: 0 }}
128-
className="invisibleFirst hidden flex-row justify-start gap-6 transition-all duration-500 ease-out lg:flex"
129-
>
123+
<div className="invisibleFirst hidden flex-row justify-start gap-6 opacity-0 transition-all duration-500 ease-out lg:flex">
130124
<P size="xs">
131125
<A variant="tertiary" href="#sectionProduct">
132126
The product
@@ -137,11 +131,6 @@ export default function Home({
137131
Price plans
138132
</A>
139133
</P>
140-
{/* <P size="xs">
141-
<A variant="tertiary" href="#section3">
142-
Testimonials
143-
</A>
144-
</P> */}
145134
</div>
146135
<div className="flex-grow" />
147136
<Button.List>

0 commit comments

Comments
 (0)