Skip to content

Commit 7234421

Browse files
authored
Update footer links (graphql#1089)
Includes some of the newer additions to the site and minor rearranging and renaming of links to make more sense.
1 parent 4bbd9bd commit 7234421

File tree

11 files changed

+69
-42
lines changed

11 files changed

+69
-42
lines changed

gatsby-node.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@ exports.createPages = async ({ graphql, actions }) => {
201201
category: "GraphQL Foundation",
202202
},
203203
},
204+
{
205+
frontmatter: {
206+
sidebarTitle: "GraphQL Landscape",
207+
title: "GraphQL Landscape",
208+
permalink: "https://landscape.graphql.org/",
209+
date: null,
210+
category: "GraphQL Foundation",
211+
},
212+
},
204213
],
205214
},
206215
],

src/assets/css/_css/graphql.less

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ footer {
208208

209209
.nav-home {
210210
display: table;
211-
margin: -12px 20px 0 0;
211+
margin: -12px 20px 0 -10px;
212212
padding: 10px;
213213
width: 50px;
214214
height: 50px;
@@ -224,15 +224,21 @@ footer {
224224
}
225225
}
226226

227-
a {
227+
a, span {
228228
color: white;
229229
display: table;
230230
margin: 2px -10px;
231231
padding: 3px 10px;
232-
&:hover,
233-
&:focus {
234-
color: @rhodamine-color;
235-
text-decoration: none;
232+
position: relative;
233+
234+
img {
235+
opacity: 0.6;
236+
position: absolute;
237+
height: 0.85em;
238+
right: ~"calc(100% - 4px)";
239+
top: 50%;
240+
transform: translateY(-50%);
241+
user-select: none;
236242
}
237243
}
238244

@@ -241,11 +247,11 @@ footer {
241247
margin: 0 0 10px;
242248

243249
&,
244-
& > a {
250+
& > a, & > span {
245251
color: lighten(@dark-color, 50%);
246252
}
247253

248-
& > a {
254+
& > a, & > span {
249255
margin: 0 -10px;
250256
}
251257
}

src/components/Footer/index.tsx

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Link from "../Link"
44
interface LinkItem {
55
text: string
66
href: string
7+
icon?: string
78
}
89

910
interface FooterLinks {
@@ -17,57 +18,65 @@ const getLinks = (sourcePath: string): FooterLinks[] => [
1718
text: "Learn",
1819
href: "/learn/",
1920
subsections: [
20-
{ text: "Introduction", href: "/learn/" },
21-
{ text: "Query Language", href: "/learn/queries/" },
22-
{ text: "Type System", href: "/learn/schema/" },
23-
{ text: "Execution", href: "/learn/execution/" },
21+
{ text: "Introduction to GraphQL", href: "/learn/" },
2422
{ text: "Best Practices", href: "/learn/best-practices/" },
23+
{ text: "Frequently Asked Questions", href: "/faq/" },
24+
{ text: "Training Courses", href: "/community/users/#training-courses" },
2525
],
2626
},
2727
{
28-
text: "Spec and Code",
28+
text: "Code",
2929
href: "/code",
3030
subsections: [
31-
{ text: "Specification", href: "https://spec.graphql.org" },
32-
{ text: "Languages", href: "/code/#languages" },
33-
{ text: "Tools", href: "/code/#tools" },
34-
{ text: "Services", href: "/code/#services" },
3531
{
36-
text: "Edit this page ✎",
37-
href:
38-
"https://github.com/graphql/graphql.github.io/edit/source/" +
39-
sourcePath,
32+
text: "GitHub",
33+
href: "https://github.com/graphql",
34+
icon: "/img/logos/github.svg",
4035
},
36+
{ text: "GraphQL Specification", href: "https://spec.graphql.org" },
37+
{ text: "Libraries & Tools", href: "/code/" },
38+
{ text: "Services & Vendors", href: "/code/#services" },
4139
],
4240
},
4341
{
4442
text: "Community",
4543
href: "/community",
4644
subsections: [
47-
{ text: "Code of Conduct", href: "/codeofconduct/" },
48-
{ text: "GitHub", href: "https://github.com/graphql" },
4945
{
50-
text: "Stack Overflow",
51-
href: "http://stackoverflow.com/questions/tagged/graphql",
46+
text: "@graphql",
47+
href: "https://twitter.com/graphql",
48+
icon: "/img/logos/twitter.svg",
49+
},
50+
{
51+
text: "Discord",
52+
href: "https://discord.graphql.org/",
53+
icon: "/img/logos/discord.svg",
5254
},
5355
{
54-
text: "Facebook Group",
55-
href: "https://www.facebook.com/groups/graphql.community/",
56+
text: "Stack Overflow",
57+
href: "http://stackoverflow.com/questions/tagged/graphql",
58+
icon: "/img/logos/stackoverflow.svg",
5659
},
57-
{ text: "Twitter", href: "https://twitter.com/GraphQL" },
58-
{ text: "Upcoming Events", href: "/community/upcoming-events/" },
60+
{ text: "Resources", href: "/community/users/" },
61+
{ text: "Events", href: "/community/upcoming-events/" },
62+
{ text: "Landscape", href: "https://landscape.graphql.org" },
5963
],
6064
},
6165
{
62-
text: "GraphQL Foundation",
63-
href: "/foundation/",
66+
text: "& More",
6467
subsections: [
65-
{ text: "About", href: "/foundation/" },
66-
{ text: "Join", href: "/foundation/join/" },
67-
{ text: "Current members", href: "/foundation/members/" },
68-
{ text: "Landscape", href: "https://landscape.graphql.org" },
68+
{ text: "News Blog", href: "/blog/" },
69+
{ text: "GraphQL Foundation", href: "/foundation/" },
6970
{ text: "Artwork", href: "https://github.com/graphql/artwork" },
70-
{ text: "Contact", href: "/foundation/contact/" },
71+
{ text: "Code of Conduct", href: "/codeofconduct/" },
72+
{ text: "Contact Us", href: "/foundation/contact/" },
73+
{
74+
text: "Edit this page",
75+
href:
76+
"https://github.com/graphql/graphql.github.io/edit/source/" +
77+
sourcePath,
78+
icon: "/img/edit.svg",
79+
},
7180
],
7281
},
7382
]
@@ -84,11 +93,12 @@ const Footer = ({ sourcePath }: { sourcePath: string }) => {
8493
{section.href ? (
8594
<Link href={section.href}>{section.text}</Link>
8695
) : (
87-
section.text
96+
<span>{section.text}</span>
8897
)}
8998
</h5>
9099
{section.subsections.map((subsection: any, i) => (
91100
<Link key={i} href={subsection.href}>
101+
{subsection.icon && <img src={subsection.icon} />}
92102
{subsection.text}
93103
</Link>
94104
))}

src/components/HeaderLinks/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ const links: LinkItem[] = [
4343
text: "News",
4444
href: "/blog/",
4545
},
46-
{
47-
section: "landscape",
48-
text: "Landscape",
49-
href: "https://l.graphql.org/"
50-
},
5146
]
5247

5348
export default () => (

src/content/community/Community-Resources.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Please follow these channels for updates and information:
2323
* **GitHub:** [github.com/graphql](https://github.com/graphql)
2424
* **Discord** [discord.graphql.org](https://discord.graphql.org)
2525
* We're in the process of moving our official chat to Discord, but you may find historical discussion on ~~**Slack:** [slack.graphql.org](https://slack.graphql.org) ([get an invite](https://slack-invite.graphql.org))~~.
26+
* **Facebook Group:** [fb.com/groups/graphql.community/](https://www.facebook.com/groups/graphql.community/)
2627
* **Google Calendar:** [calendar.graphql.org](https://calendar.graphql.org)
2728
* **Blog:** [graphql.org/blog](/blog/)
2829

src/content/community/Community-Users.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Please be patient and polite. These are not explicitly user support channels, al
3737

3838
* [GraphQL Foundation Discord](https://discord.graphql.org)
3939
* We're in the process of moving our official chat to Discord, but you may find historical discussion in ~~[#general on the GraphQL Slack](https://graphql.slack.com/messages/general/) [(Get an invite)](https://graphql-slack.herokuapp.com/)~~.
40+
* [GraphQL Community Facebook Group](https://www.facebook.com/groups/graphql.community/)
4041
* [Everything GraphQL: Curated By The Guild](https://discord.gg/xud7bH9)
4142
* [#help-graphql on the ReactiFlux Discord](http://join.reactiflux.com/)
4243
* [#graphql on freenode IRC](https://freenode.net/)

static/img/edit.svg

Lines changed: 1 addition & 0 deletions
Loading

static/img/logos/discord.svg

Lines changed: 1 addition & 0 deletions
Loading

static/img/logos/github.svg

Lines changed: 1 addition & 0 deletions
Loading

static/img/logos/stackoverflow.svg

Lines changed: 1 addition & 0 deletions
Loading

static/img/logos/twitter.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)