Skip to content

Commit

Permalink
good pop out position
Browse files Browse the repository at this point in the history
  • Loading branch information
thejackshelton committed Jan 15, 2025
1 parent 6e2e0a1 commit 3ea7bbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion apps/website/src/components/home/logo-hover/logo-hover.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
line-height: 1;
}

.logo-hover {
position: relative;
width: fit-content;
}

.intro h1 span {
font-size: var(--step-5);
display: flex;
Expand All @@ -27,9 +32,10 @@
color: hsl(var(--light));
opacity: 0;
scale: 0;
left: 50%;
top: 0;
transition: scale 200ms ease, opacity 200ms ease;
pointer-events: none;
top: 0;
background: var(--off-black);
border: 1px solid white;
border-radius: 9999999px;
Expand Down
4 changes: 2 additions & 2 deletions apps/website/src/components/home/logo-hover/logo-hover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const LogoHover = component$(() => {
});

return (
<>
<div class="logo-hover">
<h1>
<span
onMouseEnter$={() => handleMouseEnter(qwikLogoRef, qwikRect)}
Expand Down Expand Up @@ -85,6 +85,6 @@ export const LogoHover = component$(() => {
</h1>
<QwikIcon ref={qwikLogoRef} class="qwik-logo tooltip" />
<AstroIcon ref={astroLogoRef} class="astro-logo tooltip" />
</>
</div>
);
});

0 comments on commit 3ea7bbc

Please sign in to comment.