diff --git a/front/app/containers/Admin/pagesAndMenu/containers/ContentBuilder/components/Widgets/HomepageBanner/index.tsx b/front/app/containers/Admin/pagesAndMenu/containers/ContentBuilder/components/Widgets/HomepageBanner/index.tsx
index c10a7ff9d6f6..457282127e33 100644
--- a/front/app/containers/Admin/pagesAndMenu/containers/ContentBuilder/components/Widgets/HomepageBanner/index.tsx
+++ b/front/app/containers/Admin/pagesAndMenu/containers/ContentBuilder/components/Widgets/HomepageBanner/index.tsx
@@ -9,6 +9,7 @@ import {
Label,
Input,
Text,
+ useBreakpoint,
} from '@citizenlab/cl2-component-library';
import { useNode } from '@craftjs/core';
import { useLocation, useSearchParams } from 'react-router-dom';
@@ -41,6 +42,8 @@ import eventEmitter from 'utils/eventEmitter';
import { convertUrlToUploadFile } from 'utils/fileUtils';
import { isValidUrl } from 'utils/validate';
+import { DEFAULT_Y_PADDING } from '../constants';
+
import LayoutSettingField from './LayoutSettingField';
import messages from './messages';
import OverlayControls from './OverlayControls';
@@ -122,6 +125,7 @@ const HomepageBanner = ({ homepageSettings, image }: Props) => {
const { data: authUser } = useAuthUser();
const [search] = useSearchParams();
const locale = useLocale();
+ const isSmallerThanPhone = useBreakpoint('phone');
const isHomepage = pathname === `/${locale}` || pathname === `/${locale}/`;
const showSignedInHeader =
@@ -129,7 +133,10 @@ const HomepageBanner = ({ homepageSettings, image }: Props) => {
search.get('variant') === 'signedIn';
return (
-
+
{showSignedInHeader ? (
{
/>
)}
-
+
);
};
diff --git a/front/app/containers/Admin/pagesAndMenu/containers/ContentBuilder/components/Widgets/Projects/index.tsx b/front/app/containers/Admin/pagesAndMenu/containers/ContentBuilder/components/Widgets/Projects/index.tsx
index 4ed2119db0d5..cbd259cb2c20 100644
--- a/front/app/containers/Admin/pagesAndMenu/containers/ContentBuilder/components/Widgets/Projects/index.tsx
+++ b/front/app/containers/Admin/pagesAndMenu/containers/ContentBuilder/components/Widgets/Projects/index.tsx
@@ -1,6 +1,6 @@
import React from 'react';
-import { Box, colors, media, Text } from '@citizenlab/cl2-component-library';
+import { Box, media, Text } from '@citizenlab/cl2-component-library';
import { useNode } from '@craftjs/core';
import styled from 'styled-components';
import { Multiloc } from 'typings';
@@ -12,15 +12,16 @@ import InputMultilocWithLocaleSwitcher from 'components/UI/InputMultilocWithLoca
import { FormattedMessage, useIntl } from 'utils/cl-intl';
import Link from 'utils/cl-router/Link';
+import { DEFAULT_Y_PADDING } from '../constants';
+
import messages from './messages';
const ProjectSection = styled.div`
width: 100%;
- padding-top: 40px;
- padding-bottom: 40px;
+ padding-top: ${DEFAULT_Y_PADDING};
+ padding-bottom: ${DEFAULT_Y_PADDING};
${media.tablet`
- padding-bottom: 40px;
padding-left: ${DEFAULT_PADDING};
padding-right: ${DEFAULT_PADDING};
`}
@@ -32,7 +33,7 @@ const Projects = ({
currentlyWorkingOnText?: Multiloc;
}) => {
return (
-