-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
82 lines (64 loc) · 3.55 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<!-- saved from url=(0039)https://google-fonts.azurewebsites.net/ -->
<html>
<head lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<link href="css/api.css" rel="stylesheet"/>
<title>Google Fonts API</title>
</head>
<body>
<div id="container">
<div id="header">
<img src="img/header.png" alt="" style="max-width:533px;"/>
<p>This api acts as a <a href="http://bower.io/" target="_blank">Bower</a>
proxy to <a href="http://www.google.com/fonts/" target="_blank">Google Fonts</a>. It will scrape out the
fonts from Google's api and package them as a
local bower component.
</p>
</div>
<div id="title">
<h2>Usage</h2>
</div>
<div id="group1">
<span class="text">Choose your google font, once done, examine the link created:</span>
<!-- HTML generated using hilite.me -->
<div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%"><span style="color: #007700"><link</span> <span
style="color: #0000CC">href=</span><span
style="background-color: #fff0f0">'http://fonts.googleapis.com/css?<b>family=Open+Sans</b>'</span> <span
style="color: #0000CC">rel=</span><span
style="background-color: #fff0f0">'stylesheet'</span> <span
style="color: #0000CC">type=</span><span
style="background-color: #fff0f0">'text/css'</span><span
style="color: #007700">></span></pre>
</div>
</div>
<div id="group1">
<span class="text">The scrape out the query string of the URL (<b>bolded</b> in the code snippet) and append it to the following:</span>
<!-- HTML generated using hilite.me -->
<div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%">bower install --save https://google-fonts.azurewebsites.net/googleFonts/<b>nameOfPackage</b>?<b>queryString</b></pre>
</div>
</div>
<div id="title"><h2>Example</h2>
</div>
<div id="group1">
<span class="text">This is an example of what the API code will look like that you put into your code.</span>
<!-- HTML generated using hilite.me -->
<div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%">bower install --save https://google-fonts.azurewebsites.net/googleFonts/openSans?family<span style="color: #333333">=</span>Open+Sans</pre>
</div>
</div>
<div id="group1">
<span class="text">This will install the font into:</span>
<!-- HTML generated using hilite.me -->
<div style="background: #ffffff; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%">bower_components/<b>The name you chose</b>/<b>the font you chose</b>.css</pre>
</div>
</div>
<div id="footer"><img style="float:left; padding: 15px 0 0 20px" src="img/cardinal-logo.png" alt=""/>
<p style="float:right; padding: 0 15px 0 0;"><a href="#">Back to Cardinal Solutions Blog</a></p>
</div>
</div>
</body>