Skip to content

Commit 297cd57

Browse files
site: make the doc link more linky.
1 parent ffa60ee commit 297cd57

File tree

2 files changed

+83
-20
lines changed

2 files changed

+83
-20
lines changed

docs/css/main.css

+74-10
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,9 @@ h2, h3 {
357357
.featuring-links {
358358
list-style: none;
359359
margin: 0;
360-
padding: 0;
360+
padding: 8px;
361+
background-color: #eee;
362+
border-radius: 5px;
361363
}
362364

363365
.btn,
@@ -402,6 +404,68 @@ h2, h3 {
402404
width: 2em;
403405
}
404406

407+
.docs-link {
408+
text-align: center;
409+
font-size: 1.4em;
410+
font-weight: normal;
411+
margin-bottom: 1.3em;
412+
}
413+
414+
.docs-link img {
415+
background-color: #5d6061;
416+
-webkit-border-radius: 5px;
417+
-moz-border-radius: 5px;
418+
border-radius: 5px;
419+
padding: 4px;
420+
width: 4%;
421+
margin-top: -3px;
422+
margin-left: 8px;
423+
margin-right: 8px;
424+
/* Transitions */
425+
-webkit-transition: all 0.5s ease;
426+
-moz-transition: all 0.5s ease;
427+
-ms-transition: all 0.5s ease;
428+
-o-transition: all 0.5s ease;
429+
transition: all 0.5s ease;
430+
}
431+
432+
.docs-link a {
433+
color: #4285f4;
434+
text-decoration: none;
435+
/* Transitions */
436+
-webkit-transition: all 0.3s ease;
437+
-moz-transition: all 0.3s ease;
438+
-ms-transition: all 0.3s ease;
439+
-o-transition: all 0.3s ease;
440+
transition: all 0.3s ease;
441+
}
442+
443+
.docs-link .supplementary-text {
444+
font-size: .8em;
445+
color: rgba(93, 96, 97, .8);
446+
}
447+
448+
.docs-link a:hover .link-text {
449+
text-decoration: underline;
450+
}
451+
452+
.docs-link a:hover img {
453+
background-color: #4285f4;
454+
-webkit-border-radius: 80px;
455+
-moz-border-radius: 80px;
456+
border-radius: 80px;
457+
transform: rotate(135deg);
458+
-webkit-box-shadow: 4px 4px 4px #eee;
459+
-moz-box-shadow: 4px 4px 4px #eee;
460+
box-shadow: 4px 4px 4px #eee;
461+
}
462+
463+
.docs-link a:active img {
464+
-webkit-box-shadow: 4px 4px 4px #ddd;
465+
-moz-box-shadow: 4px 4px 4px #ddd;
466+
box-shadow: 4px 4px 4px #ddd;
467+
}
468+
405469
.ext-link {
406470
display: block;
407471
padding: 1em;
@@ -880,7 +944,7 @@ h2, h3 {
880944
Modify as content requires.
881945
========================================================================== */
882946

883-
@media only screen and (min-width: 35em) {
947+
@media only screen and (min-width: 36em) {
884948

885949
/*
886950
Main
@@ -902,10 +966,6 @@ h2, h3 {
902966
display: inline-block;
903967
}
904968

905-
.featuring-links li:first-child {
906-
display: block;
907-
}
908-
909969
.featuring-links .btn {
910970
display: inline-block;
911971
padding: 1em 2.4em;
@@ -1139,6 +1199,14 @@ h2, h3 {
11391199
padding: 1em 1.5em;
11401200
}
11411201

1202+
/*
1203+
Doc Link
1204+
*/
1205+
.docs-link {
1206+
font-size: 1.7em;
1207+
margin-bottom: 1.1em;
1208+
}
1209+
11421210
/*
11431211
Featuring
11441212
*/
@@ -1151,10 +1219,6 @@ h2, h3 {
11511219
font-size: 1em;
11521220
}
11531221

1154-
.featuring-links li:first-child {
1155-
display: inline-block;
1156-
}
1157-
11581222
.featuring-links .btn {
11591223
margin-right: 0.5em;
11601224
}

docs/home.html

+9-10
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ <h2>One-line npm install</h2>
1919

2020
<section class="block featuring">
2121
<div class="container">
22+
<div class="docs-link">
23+
<a href="#/docs" title="gcloud-node docs">
24+
<span class="supplementary-text">See the</span><img src="img/icon-lang-nodejs.svg" alt="Node.js icon"><span class="link-text">API Documentation</span>
25+
</a>
26+
</div>
2227
<ul class="featuring-links">
23-
<li>
24-
<a href="#/docs" title="gcloud-node docs" class="btn">
25-
<img src="img/icon-lang-nodejs.svg" alt="Node.js icon" />
26-
Docs
27-
</a>
28-
</li>
2928
<li>
3029
<a href="https://github.com/GoogleCloudPlatform/gcloud-node" title="gcloud-node on GitHub" class="ext-link">
3130
<img src="img/icon-link-github.svg" alt="GitHub icon" />
@@ -59,7 +58,7 @@ <h2>One-line npm install</h2>
5958
<div class="col col-left">
6059
<h3 class="block-title">What is it?</h3>
6160

62-
<p><code>gcloud-node</code> is a client library for accessing Google Cloud Platform services that significantly reduces the boilerplate code you have to write. The library is provides high-level API abstractions so they're easier to understand. And, it embraces idioms of Node.js, such as returning Readable streams or errors as the first object in callbacks. All this means you spend more time creating code that matters to you.</p>
61+
<p><code>gcloud-node</code> is a client library for accessing Google Cloud Platform services that significantly reduces the boilerplate code you have to write. The library is provides high-level API abstractions so they're easier to understand. And, it embraces idioms of Node.js, such as returning Readable streams or errors as the first object in callbacks. All this means you spend more time creating code that matters to you.</p>
6362
<p><code>gcloud-node</code> is configured to access Google Cloud services and authorize (OAuth2) automatically on your behalf. With a one line install and a private key, you are up and ready to go. Better yet, if you are running on a Google Compute Engine instance, the one line install is enough!</p>
6463

6564
</div><!-- end of .col.col-left -->
@@ -86,13 +85,13 @@ <h4>Retrieve Datastore Entities</h4>
8685
<section class="block">
8786
<div class="container clearfix">
8887
<h3 class="block-title">FAQ</h3>
89-
88+
9089
<h4 class="">What is the relationship between <code>gcloud-node</code> and the <code>gcloud</code> commandline tool?</h4>
9190
<p>Both the <code>gcloud</code> commandline tool and <code>gcloud-node</code> are part of the Google Cloud SDK: a collection of tools and libraries that enable you to easily create and manage resources on Google Cloud Platform. The <code>gcloud</code> commandline tool can be used to manage both your development workflow and your Google Cloud Platform resources while <code>gcloud-node</code> is the Google Cloud Client Library for Node.js.</p>
92-
91+
9392
<h4 class="">What is the relationship between <code>gcloud-node</code> and the <code>Google APIs NodeJS Client</code>?</h4>
9493
<p>The <code>Google APIs NodeJS Client</code> is a client library for using the broad set of Google APIs. <code>gcloud-node</code> is built specifically for the Google Cloud Platform and is the recommended way to integrate Google Cloud APIs into your Node.js applications. If your application requires both Google Cloud and other Google APIs, the 2 libraries may be used by your application.</p>
95-
94+
9695
</div>
9796
</section> <!-- end of FAQ -->
9897
</article><!-- end of .main -->

0 commit comments

Comments
 (0)