index.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <!DOCTYPE html>
  2. <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
  3. <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
  4. <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
  5. <!--[if (gte IE 9)|!(IE)]><!-->
  6. <html lang="en" xmlns="http://www.w3.org/1999/html"> <!--<![endif]-->
  7. <head>
  8. <!-- Basic Page Needs
  9. ================================================== -->
  10. <meta charset="utf-8" />
  11. <title>Get Started with Font Awesome</title>
  12. <meta name="description" content="Font Awesome, the iconic font designed for use with Bootstrap">
  13. <meta name="author" content="Dave Gandy">
  14. <meta name="viewport" content="initial-scale=1; maximum-scale=1">
  15. <!--[if lt IE 9]>
  16. <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
  17. <![endif]-->
  18. <!-- CSS
  19. ================================================== -->
  20. <link rel="stylesheet" href="../assets/css/site.css">
  21. <link rel="stylesheet" href="../assets/css/pygments.css">
  22. <link rel="stylesheet" href="../assets/font-awesome/css/font-awesome.min.css">
  23. <!--[if IE 7]>
  24. <link rel="stylesheet" href="../assets/font-awesome/css/font-awesome-ie7.min.css">
  25. <![endif]-->
  26. <!-- Le fav and touch icons -->
  27. <link rel="shortcut icon" href="../assets/ico/favicon.ico">
  28. <script type="text/javascript" src="//use.typekit.net/wnc7ioh.js"></script>
  29. <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
  30. <script type="text/javascript">
  31. var _gaq = _gaq || [];
  32. _gaq.push(['_setAccount', 'UA-30136587-1']);
  33. _gaq.push(['_trackPageview']);
  34. (function() {
  35. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  36. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  37. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  38. })();
  39. </script>
  40. </head>
  41. <body data-spy="scroll" data-target=".navbar">
  42. <div class="wrapper"> <!-- necessary for sticky footer. wrap all content except footer -->
  43. <div class="navbar navbar-inverse navbar-static-top hidden-print">
  44. <div class="navbar-inner">
  45. <div class="container">
  46. <a class="brand" href="../"><i class="icon-flag"></i> Font Awesome</a>
  47. <ul class="nav">
  48. <li><a href="../">Home</a></li>
  49. <li class="active"><a href="../get-started/">Get Started</a></li>
  50. <li class="dropdown-split-left"><a href="../icons/">Icons</a></li>
  51. <li class="dropdown dropdown-split-right">
  52. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  53. <i class="icon-caret-down"></i>
  54. </a>
  55. <ul class="dropdown-menu pull-right">
  56. <li><a href="../icons/"><i class="icon-flag icon-fixed-width"></i>&nbsp; Icons</a></li>
  57. <li class="divider"></li>
  58. <li><a href="../icons/#new"><i class="icon-shield icon-fixed-width"></i>&nbsp; New Icons in 3.1.0</a></li>
  59. <li><a href="../icons/#web-application"><i class="icon-camera-retro icon-fixed-width"></i>&nbsp; Web Application Icons</a></li>
  60. <li><a href="../icons/#text-editor"><i class="icon-file-alt icon-fixed-width"></i>&nbsp; Text Editor Icons</a></li>
  61. <li><a href="../icons/#directional"><i class="icon-hand-right icon-fixed-width"></i>&nbsp; Directional Icons</a></li>
  62. <li><a href="../icons/#video-player"><i class="icon-play-sign icon-fixed-width"></i>&nbsp; Video Player Icons</a></li>
  63. <li><a href="../icons/#brand"><i class="icon-github icon-fixed-width"></i>&nbsp; Brand Icons</a></li>
  64. <li><a href="../icons/#medical"><i class="icon-medkit icon-fixed-width"></i>&nbsp; Medical Icons</a></li>
  65. </ul>
  66. </li>
  67. <li class="dropdown-split-left"><a href="../examples/">Examples</a></li>
  68. <li class="dropdown dropdown-split-right">
  69. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  70. <i class="icon-caret-down"></i>
  71. </a>
  72. <ul class="dropdown-menu pull-right">
  73. <li><a href="../examples/">Examples</a></li>
  74. <li class="divider"></li>
  75. <li><a href="../examples/#new-styles">New Styles</a></li>
  76. <li><a href="../examples/#inline-icons">Inline Icons</a></li>
  77. <li><a href="../examples/#larger-icons">Larger Icons</a></li>
  78. <li><a href="../examples/#bordered-pulled">Bordered & Pulled</a></li>
  79. <li><a href="../examples/#buttons">Buttons</a></li>
  80. <li><a href="../examples/#button-groups">Button Groups</a></li>
  81. <li><a href="../examples/#button-dropdowns">Button Dropdowns</a></li>
  82. <li><a href="../examples/#bulleted-lists">Bulleted Lists</a></li>
  83. <li><a href="../examples/#navigation">Navigation</a></li>
  84. <li><a href="../examples/#form-inputs">Form Inputs</a></li>
  85. <li><a href="../examples/#animated-spinner">Animated Spinner</a></li>
  86. <li><a href="../examples/#rotated-flipped">Rotated &amp; Flipped</a></li>
  87. <li><a href="../examples/#stacked">Stacked</a></li>
  88. <li><a href="../examples/#custom">Custom CSS</a></li>
  89. </ul>
  90. </li>
  91. <li><a href="../whats-new/">What's New</a></li>
  92. <li><a href="../community/">Community</a></li>
  93. <li><a href="../license/">License</a></li>
  94. </ul>
  95. <ul class="nav pull-right">
  96. <li><a href="mailto:dave@fontawesome.io"><i class="icon-envelope"></i>&nbsp; Me</a></li>
  97. </ul>
  98. </div>
  99. </div>
  100. </div>
  101. <div class="jumbotron jumbotron-ad hidden-print">
  102. <div class="container">
  103. <h1><i class="icon-cogs icon-large"></i>&nbsp; Get Started</h1>
  104. <p>Easy ways to get Font Awesome 3.1.0 onto your website</p>
  105. </div>
  106. </div>
  107. <div id="social-buttons" class="hidden-print">
  108. <div class="container">
  109. <ul class="unstyled inline">
  110. <li>
  111. <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=FortAwesome&repo=Font-Awesome&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
  112. </li>
  113. <li>
  114. <iframe class="github-btn" src="http://ghbtns.com/github-btn.html?user=FortAwesome&repo=Font-Awesome&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="102px" height="20px"></iframe>
  115. </li>
  116. <li class="follow-btn">
  117. <a href="https://twitter.com/fortaweso_me" class="twitter-follow-button" data-link-color="#0069D6" data-show-count="true">Follow @fortaweso_me</a>
  118. </li>
  119. <li class="tweet-btn">
  120. <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://fontawesome.io" data-text="#FontAwesome, the iconic font designed for Bootstrap" data-counturl="http://fortawesome.github.com/Font-Awesome/" data-count="horizontal" data-via="fortaweso_me" data-related="byscuits:Creator of Font Awesome">Tweet</a>
  121. </li>
  122. </ul>
  123. <!--<div class="watch">-->
  124. <!--<a class="btn btn-mini" href="https://github.com/FortAwesome/Font-Awesome" target="_blank"><i class="icon-github icon-large"></i> Watch</a>-->
  125. <!--<a id="watchers" class="count btn btn-mini" href="https://github.com/FortAwesome/Font-Awesome">9000+</a>-->
  126. <!--</div>-->
  127. <!--<div class="fork">-->
  128. <!--<a class="btn btn-mini" href="https://github.com/FortAwesome/Font-Awesome" target="_blank"><i class="icon-github icon-large"></i> Fork</a>-->
  129. <!--<a id="forks" class="count btn btn-mini" href="#">800+</a>-->
  130. <!--</div>-->
  131. <!--<div class="follow">-->
  132. <!--<a class="btn btn-mini" href="http://twitter.com/fortaweso_me/" target="_blank"><i class="icon-twitter icon-large"></i> Follow @fortaweso_me</a>-->
  133. <!--<span id="followers" class="count btn btn-mini">2500+</span>-->
  134. <!--</div>-->
  135. </div>
  136. </div>
  137. <div class="container">
  138. <section class="hidden-print">
  139. <div class="row stripe-ad">
  140. <div class="span8">
  141. <p class="lead">
  142. Setting up Font Awesome can be as simple as adding two lines of code to your website, or you can be a pro and
  143. customize the LESS yourself! Font Awesome even plays nicely with
  144. <a href="http://getbootstrap.com">Bootstrap</a>!
  145. </p>
  146. </div>
  147. <div class="span4">
  148. <div id="carbonads-container"><div class="carbonad"><div id="azcarbon"></div><script type="text/javascript">var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = "http://engine.carbonads.com/z/32291/azcarbon_2_1_0_HORIZ"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script></div></div>
  149. </div>
  150. </div>
  151. </section>
  152. <div id="bootstrapcdn">
  153. <h2 class="page-header">EASIEST: <a href="http://www.bootstrapcdn.com/#tab_fontawesome">BootstrapCDN</a></h2>
  154. <p>Add Font Awesome + Bootstrap into your website with two lines of code. You don't even have to download or install anything!</p>
  155. <ol>
  156. <li>
  157. Paste the following code into the <code>&lt;head&gt;</code> section of your site's HTML.
  158. <div class="highlight"><pre><code class="html"><span class="nt">&lt;link</span> <span class="na">href=</span><span class="s">&quot;//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css&quot;</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span><span class="nt">&gt;</span>
  159. <span class="nt">&lt;link</span> <span class="na">href=</span><span class="s">&quot;//netdna.bootstrapcdn.com/font-awesome/3.1.0/css/font-awesome.css&quot;</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span><span class="nt">&gt;</span>
  160. </code></pre></div>
  161. <div class="alert alert-info margin-top">
  162. <i class="icon-info-sign"></i> Want to use Font Awesome by itself without Bootstrap? Just don't include the first line.
  163. </div>
  164. </li>
  165. <li>
  166. Pat yourself on the back for your scalable-vector-icons-on-the-website
  167. <a href="http://37signals.com/svn/posts/312-lingo-judo">judo solution</a> in two lines of code.
  168. </li>
  169. <li>
  170. Check out the <a href="../examples/">examples</a> to start using Font Awesome!
  171. </li>
  172. </ol>
  173. </div>
  174. <section id="default-css">
  175. <h2 class="page-header">EASY: Default CSS</h2>
  176. <p>Use this method to get the default Font Awesome CSS with the default Bootstrap CSS.</p>
  177. <ol>
  178. <li>Copy the <code>font-awesome</code> directory into your project.</li>
  179. <li>
  180. In the <code>&lt;head&gt;</code> of your html, reference the location to your font-awesome.min.css.
  181. <div class="highlight"><pre><code class="html"><span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">href=</span><span class="s">&quot;path/to/bootstrap/css/bootstrap.min.css&quot;</span><span class="nt">&gt;</span>
  182. <span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">href=</span><span class="s">&quot;path/to/font-awesome/css/font-awesome.min.css&quot;</span><span class="nt">&gt;</span>
  183. </code></pre></div>
  184. </li>
  185. <li>Check out the <a href="../examples/">examples</a> to start using Font Awesome!</li>
  186. </ol>
  187. </section>
  188. <section id="custom-less">
  189. <h2 class="page-header">PRO: Custom LESS</h2>
  190. <p>Use this method to customize Font Awesome and Bootstrap 2.3.1 using LESS.</p>
  191. <ol>
  192. <li>Copy the <code>font-awesome</code> directory into your project.</li>
  193. <li>Open bootstrap.less and replace <code>@import "sprites.less";</code> with <code>@import "path/to/font-awesome/less/font-awesome.less";</code></li>
  194. <li>
  195. Open your project's font-awesome.less and edit the <code>@FontAwesomePath</code> variable to point to your font directory.
  196. <div class="highlight"><pre><code class="html">@FontAwesomePath: &quot;../font&quot;;
  197. </code></pre></div>
  198. <p class="alert alert-info"><i class="icon-info-sign"></i> The font path is relative from your compiled CSS directory.</p>
  199. </li>
  200. <li>Re-compile your LESS if using a static compiler. Otherwise, you should be good to go.</li>
  201. <li>Check out the <a href="../examples/">examples</a> to start using Font Awesome!</li>
  202. </ol>
  203. </section>
  204. <section id="not-using-bootstrap">
  205. <h2 class="page-header">Not using Bootstrap?</h2>
  206. <p>Font Awesome works just as well without Bootstrap.</p>
  207. <ol>
  208. <li>Copy the <code>font-awesome</code> directory into your project.</li>
  209. <li>Follow the above directions and skip the Bootstrap parts.</li>
  210. <li>Open your project's font-awesome.less or font-awesome.min.css and edit the font location to point it to your font directory (see above examples).</li>
  211. <li>Check out the <a href="../examples/">examples</a> to start using Font Awesome!</li>
  212. </ol>
  213. </section>
  214. <section class="need-ie7">
  215. <h2 class="page-header">Need IE7 Support?</h2>
  216. <p>Font Awesome supports IE7. If you need it, you have my condolences.</p>
  217. <ol>
  218. <li>Get Font Awesome working properly in a modern browser.</li>
  219. <li>Copy font-awesome-ie7.min.css into your project.</li>
  220. <li>
  221. In the <code>&lt;head&gt;</code> of your html, reference the location to your font-awesome-ie7.min.css.
  222. <div class="highlight"><pre><code class="html"><span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">href=</span><span class="s">&quot;path/to/bootstrap/css/bootstrap.min.css&quot;</span><span class="nt">&gt;</span>
  223. <span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">&quot;stylesheet&quot;</span> <span class="na">href=</span><span class="s">&quot;path/to/font-awesome/css/font-awesome.min.css&quot;</span><span class="nt">&gt;</span>
  224. <span class="c">&lt;!--[if IE 7]&gt;</span>
  225. <span class="c"> &lt;link rel=&quot;stylesheet&quot; href=&quot;path/to/font-awesome/css/font-awesome-ie7.min.css&quot;&gt;</span>
  226. <span class="c">&lt;![endif]--&gt;</span>
  227. </code></pre></div>
  228. </li>
  229. <li>Go complain to whoever decided your project needs IE7 support.</li>
  230. </ol>
  231. </section>
  232. </div>
  233. <div class="push"><!-- necessary for sticky footer --></div>
  234. </div>
  235. <footer class="footer hidden-print">
  236. <div class="container text-center">
  237. <div>
  238. <i class="icon-flag"></i> Font Awesome 3.1.0 &middot;
  239. Created and Maintained by Dave Gandy &middot;
  240. <a href="http://twitter.com/byscuits">@byscuits</a>
  241. </div>
  242. <div>
  243. Font Awesome font licensed under <a href="http://scripts.sil.org/OFL">SIL OFL 1.1</a> &middot;
  244. Code licensed under <a href="http://opensource.org/licenses/mit-license.html">MIT License</a> &middot;
  245. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>
  246. </div>
  247. <div>
  248. Thanks to <a href="http://maxcdn.com"><i class="icon-maxcdn"></i> MaxCDN</a> for providing the excellent <a href="http://www.bootstrapcdn.com/#tab_fontawesome">BootstrapCDN for Font Awesome</a>
  249. </div>
  250. <div class="project">
  251. <a href="https://github.com/FortAwesome/Font-Awesome">GitHub Project</a> &middot;
  252. <a href="https://github.com/FortAwesome/Font-Awesome/issues">Issues</a>
  253. </div>
  254. </div>
  255. </footer>
  256. <script src="http://platform.twitter.com/widgets.js"></script>
  257. <script src="../assets/js/jquery-1.7.1.min.js"></script>
  258. <script src="../assets/js/underscore.min.js"></script>
  259. <script src="../assets/js/backbone.min.js"></script>
  260. <!--<script src="../assets/js/prettify.min.js"></script>-->
  261. <script src="../assets/js/bootstrap-2.3.1.min.js"></script>
  262. <script src="../assets/js/site.js"></script>
  263. </body>
  264. </html>