Skip to content

Commit

Permalink
Implement missing base page components for header navigation links
Browse files Browse the repository at this point in the history
This commit provides the missing base page components for the header
navigation links implemented in GH-64 (1). This initial implementation
renders the new empty state (2) component wrapped in the also included
`Section` core container component that represents a base HTML
section (3).

References:
  (1) #64
  (2) https://material.io/design/communication/empty-states.html
  (3) https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section

GH-78
  • Loading branch information
arcticicestudio committed Dec 17, 2018
1 parent 7c85abe commit 6687e3c
Show file tree
Hide file tree
Showing 31 changed files with 658 additions and 5 deletions.
26 changes: 26 additions & 0 deletions src/components/containers/core/Section/Content.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

import styled from "styled-components";

import CoreContent from "containers/core/Content";

/**
* A container for content of the `Section` component.
*
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/
const Content = styled(CoreContent)`
margin-top: ${({ compact }) => !compact && "5em"};
margin-bottom: ${({ compact }) => !compact && "5em"};
`;

export default Content;
6 changes: 5 additions & 1 deletion src/components/containers/core/Section/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@
* License: MIT
*/

export { default } from "./Section";
import Section from "./Section";
import Content from "./Content";

export { Content };
export default Section;
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

import React from "react";

import Section, { Content } from "containers/core/Section";
import EmptyState from "molecules/core/EmptyState";

import { emptyStateIllustrationStyles } from "../../shared/styles";

/**
* The component that represents the landing section of the blog posts page.
*
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/
const SectionBlogPosts = () => (
<Section>
<Content centered compact>
<EmptyState
headline="Oh, there's nothing here yet"
illustrationStyles={emptyStateIllustrationStyles}
subline="Please check back later, we're working hard on this page!"
/>
</Content>
</Section>
);

export default SectionBlogPosts;
10 changes: 10 additions & 0 deletions src/components/organisms/page/blog/SectionBlogPosts/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

export { default } from "./SectionBlogPosts";
20 changes: 20 additions & 0 deletions src/components/organisms/page/blog/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

/**
* @file Provides the components for the blog page.
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/

import SectionBlogPosts from "./SectionBlogPosts";

/* eslint-disable-next-line import/prefer-default-export */
export { SectionBlogPosts };
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

import React from "react";

import Section, { Content } from "containers/core/Section";
import EmptyState from "molecules/core/EmptyState";

import { emptyStateIllustrationStyles } from "../../shared/styles";

/**
* The component that represents the landing section of the community page.
*
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/
const SectionLanding = () => (
<Section>
<Content centered compact>
<EmptyState
headline="Oh, there's nothing here yet"
illustrationStyles={emptyStateIllustrationStyles}
subline="Please check back later, we're working hard on this page!"
/>
</Content>
</Section>
);

export default SectionLanding;
10 changes: 10 additions & 0 deletions src/components/organisms/page/community/SectionLanding/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

export { default } from "./SectionLanding";
20 changes: 20 additions & 0 deletions src/components/organisms/page/community/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

/**
* @file Provides the components for the community page.
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/

import SectionLanding from "./SectionLanding";

/* eslint-disable-next-line import/prefer-default-export */
export { SectionLanding };
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

import React from "react";

import Section, { Content } from "containers/core/Section";
import EmptyState from "molecules/core/EmptyState";

import { emptyStateIllustrationStyles } from "../../shared/styles";

/**
* The component that represents the landing section of the docs page.
*
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/
const SectionLanding = () => (
<Section>
<Content centered compact>
<EmptyState
headline="Oh, there's nothing here yet"
illustrationStyles={emptyStateIllustrationStyles}
subline="Please check back later, we're working hard on this page!"
/>
</Content>
</Section>
);

export default SectionLanding;
10 changes: 10 additions & 0 deletions src/components/organisms/page/docs/SectionLanding/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

export { default } from "./SectionLanding";
20 changes: 20 additions & 0 deletions src/components/organisms/page/docs/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

/**
* @file Provides the components for the docs page.
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/

import SectionLanding from "./SectionLanding";

/* eslint-disable-next-line import/prefer-default-export */
export { SectionLanding };
36 changes: 36 additions & 0 deletions src/components/organisms/page/landing/SectionHero/SectionHero.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

import React from "react";

import Section, { Content } from "containers/core/Section";
import EmptyState from "molecules/core/EmptyState";

import { emptyStateIllustrationStyles } from "../../shared/styles";

/**
* The component that represents the hero section of the landing page.
*
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/
const SectionHero = () => (
<Section>
<Content centered compact>
<EmptyState
headline="Oh, there's nothing here yet"
illustrationStyles={emptyStateIllustrationStyles}
subline="Please check back later, we're working hard on this page!"
/>
</Content>
</Section>
);

export default SectionHero;
10 changes: 10 additions & 0 deletions src/components/organisms/page/landing/SectionHero/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

export { default } from "./SectionHero";
21 changes: 21 additions & 0 deletions src/components/organisms/page/landing/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

/**
* @file Provides the organism components for the landing page.
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @see https://en.wikipedia.org/wiki/Landing_page
* @since 0.3.0
*/

import SectionHero from "./SectionHero";

/* eslint-disable-next-line import/prefer-default-export */
export { SectionHero };
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

import React from "react";

import Section, { Content } from "containers/core/Section";
import EmptyState from "molecules/core/EmptyState";

import { emptyStateIllustrationStyles } from "../../shared/styles";

/**
* The component that represents the landing section of the ports page.
*
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/
const SectionLanding = () => (
<Section>
<Content centered compact>
<EmptyState
headline="Oh, there's nothing here yet"
illustrationStyles={emptyStateIllustrationStyles}
subline="Please check back later, we're working hard on this page!"
/>
</Content>
</Section>
);

export default SectionLanding;
10 changes: 10 additions & 0 deletions src/components/organisms/page/ports/SectionLanding/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

export { default } from "./SectionLanding";
20 changes: 20 additions & 0 deletions src/components/organisms/page/ports/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]>
* Copyright (C) 2018-present Sven Greb <[email protected]>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/

/**
* @file Provides the components for the ports page.
* @author Arctic Ice Studio <[email protected]>
* @author Sven Greb <[email protected]>
* @since 0.3.0
*/

import SectionLanding from "./SectionLanding";

/* eslint-disable-next-line import/prefer-default-export */
export { SectionLanding };
Loading

0 comments on commit 6687e3c

Please sign in to comment.