Skip to content

Commit

Permalink
Fix subscription banner placement on blog page (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
yelyzavetakhokhlova authored Oct 28, 2024
1 parent 2b6a154 commit e9dde3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const TRUSTED_DOMAINS = [
// pass it only to GatsbyLink
export const Link: FC<LinkProps> = ({
children,
to,
to = '',
activeClassName,
partiallyActive,
...other
Expand Down
9 changes: 5 additions & 4 deletions src/containers/BlogPage/BlogPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@
position: relative;
z-index: 20;
margin-top: calc(-1 * var(--header-height));
margin-bottom: 60px;
padding: calc(72px + var(--header-height)) 16px 180px;
background-image: url('./icons/background_blog-page.svg');
background-position: center 0;
background-repeat: no-repeat;
color: var(--white);

@include m.breakpoint(v.$tablet-sm-exact) {
margin-bottom: 0;
}

@include m.breakpoint(v.$desktop-md) {
background-size: cover;
}
Expand Down Expand Up @@ -74,8 +79,4 @@
justify-content: center;
padding: calc(6 * var(--base-spacing)) 0 0;
}

.subscription-banner {
margin-top: 180px;
}
}
2 changes: 1 addition & 1 deletion src/hooks/useAnimationEnabledForSiblingRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const useAnimationEnabledForSiblingRoutes = () => {
const { pathname } = useLocation();

if (typeof window === 'undefined') {
return false;
return true;
}

return !isSameParentRoute(pathname, window.prevLocation?.pathname);
Expand Down

0 comments on commit e9dde3d

Please sign in to comment.