Skip to content

Commit 2260cf7

Browse files
committed
intro page
1 parent 2a81a7e commit 2260cf7

21 files changed

+1460
-12
lines changed
333 KB
Loading
838 KB
Loading

public/styles/img/disc-earth.png

1.22 MB
Loading
377 KB
Loading
438 KB
Loading

public/styles/img/disc.jpg

494 KB
Loading

src/components/Footer/Footer.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export const Footer: FC = () => {
99
return (
1010
<Box
1111
as="footer"
12-
mt={3}
1312
py={6}
1413
display="flex"
1514
flexDirection={{ base: 'column', md: 'row' }}

src/components/Layout/Layout.tsx

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ const LandingTabs = dynamic(
2424
);
2525

2626
const LANDING_PAGES = ['/', '/classic-form', '/paper-form'];
27+
const INTRO_PAGE = ['/intro', '/astrophysics', '/heliophysics', '/planetary', '/earth', '/biophysical'];
2728
export const Layout: FC = ({ children }) => {
2829
const router = useRouter();
2930

3031
const isLandingPage = LANDING_PAGES.includes(router.pathname);
3132

33+
const isIntroPage = INTRO_PAGE.includes(router.pathname);
34+
3235
const [isPrint] = useMediaQuery('print');
3336

3437
return (
@@ -39,15 +42,22 @@ export const Layout: FC = ({ children }) => {
3942
<meta name="charset" content="utf-8" />
4043
<Favicons />
4144
</Head>
42-
<SkipNavLink id="main-content">Skip to content</SkipNavLink>
43-
{isPrint ? null : <NavBar />}
44-
{isPrint ? null : <Notification />}
45-
<main>
46-
{isLandingPage && <LandingTabs />}
47-
<Container maxW={isLandingPage ? 'container.md' : 'container.xl'} id="main-content">
48-
{children}
49-
</Container>
50-
</main>
45+
{isIntroPage ? (
46+
<>{children}</>
47+
) : (
48+
<>
49+
<SkipNavLink id="main-content">Skip to content</SkipNavLink>
50+
{isPrint ? null : <NavBar />}
51+
{isPrint ? null : <Notification />}
52+
53+
<main>
54+
{isLandingPage && <LandingTabs />}
55+
<Container maxW={isLandingPage ? 'container.md' : 'container.xl'} id="main-content" mb={6}>
56+
{children}
57+
</Container>
58+
</main>
59+
</>
60+
)}
5161
{isPrint ? null : <Footer />}
5262
</Flex>
5363
);

src/components/images/ScixAndTextLogo-H.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { forwardRef, Ref, SVGProps } from 'react';
33
const logo = (props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => (
44
<svg
55
xmlns="http://www.w3.org/2000/svg"
6-
width="168.153"
7-
height="61.516"
86
x="0"
97
y="0"
108
version="1.1"

src/components/images/ScixLogoAndAbbrAndLink_H.tsx

Lines changed: 144 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)