Skip to content

Commit 9c0a1a6

Browse files
committed
add fullstack courses page
1 parent d6bfdec commit 9c0a1a6

File tree

4 files changed

+27
-11
lines changed

4 files changed

+27
-11
lines changed

packages/gatsby-theme/src/components/TutorialListing.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,7 @@ const TutorialListing: React.FunctionComponent<TutorialListingProps> = ({
2222
tutorial,
2323
}) => {
2424
return (
25-
<Card
26-
width={[1]}
27-
p={4}
28-
my={4}
29-
borderRadius={8}
30-
boxShadow="small"
31-
key={tutorial.id}
32-
>
25+
<Card width={[1]} p={4} my={4} borderRadius={8} boxShadow="small">
3326
<Link to={getTutorialOverviewSlug(tutorial.fileAbsolutePath)}>
3427
<Heading>{tutorial.frontmatter.tutorialTitle}</Heading>
3528
</Link>

packages/gatsby-theme/src/components/shared/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ const Nav = withTheme(
5151
</Container>
5252
<Container justifyContent="center">
5353
<NavLink to="/fundamentals">Fundamentals</NavLink>
54-
<NavLink to="/guides">Guides</NavLink>
55-
<NavLink to="/community">Community</NavLink>
54+
<NavLink to="/courses">FullStack Course</NavLink>
55+
<NavLink to="/community">Community Tutorials</NavLink>
5656
<NavLink to="/components">Components</NavLink>
5757
</Container>
5858
<Container justifyContent="flex-end">

packages/gatsby-theme/src/pages/community.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ const Community = data => {
1212
<Content>
1313
<Heading> Community Tutorials </Heading>
1414
{tutorials.map(tutorial => {
15-
return <TutorialListing tutorial={tutorial.node} />;
15+
return (
16+
<div key={tutorial.node.id}>
17+
<TutorialListing tutorial={tutorial.node} />
18+
</div>
19+
);
1620
})}
1721
</Content>
1822
</Layout>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import * as React from 'react';
2+
import Layout from '../components/layout';
3+
import { Content } from '../components/shared/styledHelpers';
4+
import { Heading, Text } from '../components/shared/base';
5+
6+
const courses = () => {
7+
return (
8+
<Layout>
9+
<Content>
10+
<Heading> Fullstack Course </Heading>
11+
<Text>A general introduction to GraphQL for frontend and backend developers.</Text>
12+
<Text> Read this tutorial to learn about GraphQL's basic concepts and prepare
13+
yourself for a hands-on beginner tutorial.</Text>
14+
</Content>
15+
</Layout>
16+
);
17+
};
18+
19+
export default courses;

0 commit comments

Comments
 (0)