Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guardian AdLite: Landing Page viewable in Prod #6773

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { css } from '@emotion/react';
import { textSans24 } from '@guardian/source/foundations';
import type { CountryGroupSwitcherProps } from 'components/countryGroupSwitcher/countryGroupSwitcher';
import { GBPCountries } from 'helpers/internationalisation/countryGroup';
import { isProd } from 'helpers/urls/url';
import { getUser } from 'helpers/user/user';
import type { GeoId } from 'pages/geoIdConfig';
import { getGeoIdConfig } from 'pages/geoIdConfig';
Expand Down Expand Up @@ -42,28 +39,13 @@ export function GuardianAdLiteLanding({
}
return (
<LandingPageLayout countrySwitcherProps={countrySwitcherProps}>
{!isProd() ? (
<>
<HeaderCards
geoId={geoId}
returnLink={getReturnAddress()} // defaults to urlSearchParamsReturn if available
isSignedIn={user.isSignedIn}
/>
<PosterComponent />
<AccordianComponent />
</>
) : (
<div
css={css`
position: relative;
${textSans24};
color: white;
text-align: center;
`}
>
Under Construction. Viewable within Code or Dev environments only.
</div>
)}
<HeaderCards
geoId={geoId}
returnLink={getReturnAddress()} // defaults to urlSearchParamsReturn if available
isSignedIn={user.isSignedIn}
/>
<PosterComponent />
<AccordianComponent />
</LandingPageLayout>
);
}
Loading