Skip to content

Commit 5486956

Browse files
committed
Design improvements
1 parent ef0191f commit 5486956

File tree

2 files changed

+49
-19
lines changed

2 files changed

+49
-19
lines changed

src/assets/css/_css/code.less

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,46 @@
5454
}
5555
.intro-note {
5656
margin-top: 20px;
57+
display: flex;
58+
strong {
59+
width: 50%;
60+
margin-right: 5%;
61+
font-size: 24px;
62+
line-height: 36px;
63+
}
64+
.goto-section {
65+
display: flex;
66+
flex-direction: row;
67+
width: 40%;
68+
p {
69+
width: 20%;
70+
margin: 0;
71+
color: #8C8C8C;
72+
font-weight: bold;
73+
}
74+
.sections {
75+
display: flex;
76+
width: 80%;
77+
flex-direction: column;
78+
a {
79+
h3 {
80+
margin: 0 0 14px 0;
81+
border-left: 1px solid #B7B7B7;
82+
font-weight: bold;
83+
padding-left: 15px;
84+
}
85+
}
86+
}
87+
}
5788
}
5889
.inner-content {
5990
max-width: 100%;
6091
}
92+
.language-box {
93+
border: 1px inset #979797;
94+
.article_title {
95+
text-align: left;
96+
font-size: 24px;
97+
}
98+
}
6199
}

src/pages/code.tsx

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function buildLanguagesMenu(pageContext: any) {
2323
const slug = toSlug(languageName)
2424
return (
2525
<div className="column">
26-
<div className="article">
26+
<div className="article language-box">
2727
<a href={`#${slug}`}>
2828
<h3 className="article_category">
2929
<img
@@ -133,37 +133,29 @@ export default ({ pageContext }: any) => {
133133
to help you get started working which support GraphQL in all
134134
sorts of languages.
135135
</strong>{" "}
136-
<div className="container-bl1">
137-
<div className="column">
138-
<a href="#languages">
139-
<h3>Languages</h3>
140-
</a>
141-
</div>
142-
<div className="column">
136+
<div className="goto-section">
137+
<p>Go to</p>
138+
<div className="sections">
143139
<a href="#generic-tools">
144140
<h3>Tools</h3>
145141
</a>
146-
</div>
147-
<div className="column">
148142
<a href="#services">
149143
<h3>Services</h3>
150144
</a>
151-
</div>
152-
<div className="column">
153145
<a href="#more-stuff">
154146
<h3>More Stuff</h3>
155147
</a>
156148
</div>
157149
</div>
158-
<Marked pageContext={pageContext}>{`
159-
## Languages
160-
`}</Marked>
161-
<p>
162-
This page will help you get started with GraphQL in languages
163-
you are already using.
164-
</p>
165150
</div>
166151

152+
<Marked pageContext={pageContext}>{`
153+
## Language Support
154+
`}</Marked>
155+
<p>
156+
This page will help you get started with GraphQL in languages you
157+
are already using.
158+
</p>
167159
{buildLanguagesMenu(pageContext)}
168160
{buildLanguagesContent(pageContext)}
169161
<h2>

0 commit comments

Comments
 (0)