diff --git a/src/assets/less/site.less b/src/assets/less/site.less index 2d918b57b..7b5a4b123 100644 --- a/src/assets/less/site.less +++ b/src/assets/less/site.less @@ -36,4 +36,5 @@ @import "site/responsive/screen-lg"; @import "site/responsive/screen-md"; @import "site/responsive/screen-sm"; +@import "site/responsive/screen-sm-up"; @import "site/responsive/screen-xs"; diff --git a/src/assets/less/site/responsive/screen-sm-up.less b/src/assets/less/site/responsive/screen-sm-up.less new file mode 100644 index 000000000..b7037e54d --- /dev/null +++ b/src/assets/less/site/responsive/screen-sm-up.less @@ -0,0 +1,18 @@ +@media (min-width: @screen-sm) { + .signup-input { + padding-right: 0; + input { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + border-right-width: 0; + } + } + .signup-button { + padding-left: 0; + .btn { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } + } + +} diff --git a/src/assets/less/site/responsive/screen-sm.less b/src/assets/less/site/responsive/screen-sm.less index 6a46f4d61..4c782ca22 100644 --- a/src/assets/less/site/responsive/screen-sm.less +++ b/src/assets/less/site/responsive/screen-sm.less @@ -44,4 +44,6 @@ } .hide-sm { display: none; } + .v-get-started .get-started-cdn { padding: 5px 22px 22px 22px; } + } diff --git a/src/assets/less/site/responsive/screen-xs.less b/src/assets/less/site/responsive/screen-xs.less index 3ba01b153..7943e2feb 100644 --- a/src/assets/less/site/responsive/screen-xs.less +++ b/src/assets/less/site/responsive/screen-xs.less @@ -95,4 +95,7 @@ width: 50%; } } + .signup-button .btn { white-space: normal; } + .v-get-started .get-started-cdn { padding: 5px 22px 22px 22px; } + } diff --git a/src/cdn/error.html b/src/cdn/error.html new file mode 100644 index 000000000..3e4459f2d --- /dev/null +++ b/src/cdn/error.html @@ -0,0 +1,24 @@ +--- +layout: base +title: Oh noes! +relative_path: ../../ +--- + +
+
+
+
+

Oh noes!

+

+ Something bad happened on our end when sending you an embed code. + We've already been notified and are looking into it. +

+ +

+ Hang tight for just a bit and we should have things fixed up shortly. +

+
+ +
+
+
diff --git a/src/cdn/new.html b/src/cdn/new.html new file mode 100644 index 000000000..2f4d29ec0 --- /dev/null +++ b/src/cdn/new.html @@ -0,0 +1,265 @@ +--- +layout: base +title: Get Started with Font Awesome +navbar_active: get-started +view_class: v-get-started +relative_path: ../../ +--- +{% capture jumbotron_h1 %}  Get Started{% endcapture %} +{% capture jumbotron_p %}Easy ways to get Font Awesome {{ site.fontawesome.version }} onto your website{% endcapture %} + +{% include jumbotron.html %} + +
+ +
+
+ + +

Font Awesome CDN is the easiest way to get Font Awesome on your website or app, all with just a single line of code. No downloading or installing!

+ +
+ + + +
+ + + + +

+ +
+
+ We create new embed codes for each website so you can quickly upgrade and change your preferences all without ever writing code. To do this, we need an email + address so we know which embed codes are yours and you can come back and manage them. +
+
+ +
+
+

Icons on your site. Fast.

+

Don't mess with files locally or in production. You'll get all of Font Awesome's {{ icons| size }} icons plus CSS toolkit - all optimized for speed and no hassle.

+
+ +
+

Super-simple upgrades

+

Since each site gets a unique embed code, you can easily upgrade to the latest version of Font Awesome, all without pushing any code. Easy peasy.

+
+ +
+

Auto accessibility support

+

Font Awesome CDN helps you automate accessibility support more easily so your icons work for the most people possible. Read up on our accessibility best practices.

+
+ +
+

Async your icons

+

Want to speed up your page loads? So do we. Have your icons load in the background so your site loads faster.

+
+
+
+ +
+ or +
+ +
+ + +
+
+

+ Want to manage and host Font Awesome assets yourself? You can + download, + customize, and use the icons and default styling manually. Both CSS and CSS Preprocessor (Sass and Less) formats are included.

+
+ + +
+ +
+

Using CSS

+ +
    +
  1. Copy the entire font-awesome directory into your project.
  2. +
  3. + In the <head> of your html, reference the location to your font-awesome.min.css. +{% highlight html %} + +{% endhighlight %} +
  4. +
  5. Check out the examples to start using Font Awesome!
  6. +
+
+ +
+

Using Sass or Less

+ +

Use this method to customize Font Awesome {{ site.fontawesome.version }} using LESS or SASS.

+
    +
  1. Copy the font-awesome/ directory into your project.
  2. +
  3. + Open your project's font-awesome/less/variables.less or font-awesome/scss/_variables.scss and edit the @fa-font-path or $fa-font-path + variable to point to your font directory. +{% highlight scss %} +@fa-font-path: "../font"; +{% endhighlight %} +

    The font path is relative from your compiled CSS directory.

    +
  4. +
  5. Re-compile your LESS or SASS if using a static compiler. Otherwise, you should be good to go.
  6. +
  7. Check out the examples to start using Font Awesome!
  8. +
+
+
+ +
+ or +
+ +
+ + +

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

+ +
+

LESS Ruby Gem

+

+ Use the Official Font Awesome LESS Ruby Gem to easily get Font + Awesome LESS into a Rails project. Generously maintained by @supercodepoet. +

+
    +
  1. + Add this line to your application's Gemfile: + {% highlight bash %} + gem 'font-awesome-less' + {% endhighlight %} +
  2. +
  3. + And then execute: + {% highlight bash %} + $ bundle + {% endhighlight %} +
  4. +
  5. Or install it yourself as: + {% highlight bash %} + $ gem install font-awesome-less + {% endhighlight %} +
  6. +
+

+ If you use Rails, add this to your e.g. application.less: +

+ {% highlight css %} + @import "font-awesome-sprockets"; + @import "font-awesome"; + {% endhighlight %} +
+ +
+

SASS Ruby Gem

+

+ Use the Official Font Awesome SASS Ruby Gem to easily get Font + Awesome SASS into a Rails or Compass project. Generously maintained by @supercodepoet. +

+
    +
  1. + Add this line to your application's Gemfile: +{% highlight bash %} +gem 'font-awesome-sass' +{% endhighlight %} +
  2. +
  3. + And then execute: +{% highlight bash %} +$ bundle +{% endhighlight %} +
  4. +
  5. Or install it yourself as: +{% highlight bash %} +$ gem install font-awesome-sass +{% endhighlight %} +
  6. +
+

+ If you use Rails, add this to your e.g. application.scss: +

+{% highlight css %} + @import "font-awesome-sprockets"; + @import "font-awesome"; +{% endhighlight %} +
+
+ +
+ +
+ +
+
+

Validators

+

In order to provide the best possible experience to old and buggy browsers, Font Awesome uses CSS browser hacks in several places to target special CSS to certain browser versions in order to work around bugs in the browsers themselves. These hacks understandably cause CSS validators to complain that they are invalid. In a couple places, we also use bleeding-edge CSS features that aren't yet fully standardized, but these are used purely for progressive enhancement.

+

These validation warnings don't matter in practice since the non-hacky portion of our CSS does fully validate and the hacky portions don't interfere with the proper functioning of the non-hacky portion, hence why we deliberately ignore these particular warnings.

+

Getting started - Validators by Bootstrap Team is licensed under CC BY 3.0

+
+ +
+

Internet Explorer 8 and @font-face

+

IE8 has some issues with @font-face when combined with :before. + Font Awesome uses that combination. If a page is cached, and loaded without the mouse over the window + (i.e. hit the refresh button or load something in an iframe) then the page gets rendered before the font loads. + Hovering over the page (body) will show some of the icons and hovering over the remaining icons will show those as well. + See issue #954 for details.

+

Getting started - Internet Explorer 8 and @font-face by Bootstrap Team is licensed under CC BY 3.0

+
+
+ +
+
+

Need IE7 Support?

+

IE8 has some issues with @font-face when combined with :before. + Font Awesome uses that combination. If a page is cached, and loaded without the mouse over the window + (i.e. hit the refresh button or load something in an iframe) then the page gets rendered before the font loads. + Hovering over the page (body) will show some of the icons and hovering over the remaining icons will show those as well. + See issue #954 for details.

+

Getting started - Internet Explorer 8 and @font-face by Bootstrap Team is licensed under CC BY 3.0

+
+ +
+

Troubleshooting

+

If you're having trouble with Font Awesome, make sure to check out the + troubleshooting wiki page. + Generously maintained by @gtagliala.

+
+
+ +{% include modals/download.html %} diff --git a/src/cdn/success.html b/src/cdn/success.html new file mode 100644 index 000000000..059a2f2dc --- /dev/null +++ b/src/cdn/success.html @@ -0,0 +1,24 @@ +--- +layout: base +title: Your Embed Code is on the way! +relative_path: ../../ +--- + +
+
+
+
+

On the way!

+

+ We just sent you an email with your new Font Awesome CDN embed code and instructions + for what to do next! +

+ +
+ If you don't see the email, maybe check your spam. +
+
+ +
+
+
diff --git a/src/get-started.html b/src/get-started.html index 8fcb08d47..6ca5d082b 100644 --- a/src/get-started.html +++ b/src/get-started.html @@ -2,256 +2,181 @@ layout: base title: Get Started with Font Awesome navbar_active: get-started -view_class: v-get-started relative_path: ../ --- {% capture jumbotron_h1 %}  Get Started{% endcapture %} {% capture jumbotron_p %}Easy ways to get Font Awesome {{ site.fontawesome.version }} onto your website{% endcapture %} {% include jumbotron.html %} - -
+{% include stripe-social.html %}
-
- + {% capture stripe_ad_content %} +

+ Setting up Font Awesome can be as simple as adding two lines of code to your website, or you can be a pro and + customize the LESS yourself! Font Awesome even plays nicely with + Bootstrap 3! +

+ {% endcapture %} + {% include stripe-ad.html %} -

Add Font Awesome into your website or app with a single line of code. You don't even have to worry about downloading or installing anything!

- -
-
- - -
- -
- -
-
- - - - -

- -
-
-
Why we need your email address
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-
-
- -
-
-

Add icons, quickly & easily

-

Don't worry where you put your files locally or in production. You'll get all of Font Awesome's {{ icons | version:site.fontawesome.minor_version | size }} icons plus style support - all optimized for speed without the hassle.

-
- -
-

Automate Accessibility Support

-

Icons and symbols can really enhance your site and app. We want to help you make sure those enhancements reach the most people possible. That's why have best practices when it comes to web accessibility. Want those added in easily for your site or app, our CDN can do that.

-
- -
-

Load your icons asynchronously

-

Make sure your interface loads on time with your icons. Don't want page loads to slow down for another request. We don't either. Have them load in the background, once your page has one.

-
-
-
- -
- or +
+ +

Thanks to the generous folks at MaxCDN, you can use Bootstrap CDN to add Font Awesome into your website with a single line of code. You don't even have to download or install anything!

+
    +
  1. + Paste the following code into the <head> section of your site's HTML. +{% highlight html %} + +{% endhighlight %} +

    Immediately after release, it takes a bit of time for BootstrapCDN to catch up and get the newest version live on their CDN.

    +
  2. +
  3. + Pat yourself on the back for your scalable-vector-icons-on-the-website + judo solution in a single line of code. +
  4. +
  5. + Check out the examples to start using Font Awesome! +
  6. +
-
- - -
-
-

Want to manage and host Font Awesome assets yourself? You can download, customize, and use the icons and default styling manually. Both CSS and CSS Preprocessor (Sass and Less) formats are included.

-
- - -
- -
-

Using CSS

- -
    -
  1. Copy the entire font-awesome directory into your project.
  2. -
  3. - In the <head> of your html, reference the location to your font-awesome.min.css. +
    + +

    Use this method to get the default Font Awesome CSS.

    +
      +
    1. Copy the entire font-awesome directory into your project.
    2. +
    3. + In the <head> of your html, reference the location to your font-awesome.min.css. {% highlight html %} {% endhighlight %} -
    4. -
    5. Check out the examples to start using Font Awesome!
    6. -
    -
- -
-

Using Sass or Less

- -

Use this method to customize Font Awesome {{ site.fontawesome.version }} using LESS or SASS.

-
    -
  1. Copy the font-awesome/ directory into your project.
  2. -
  3. - Open your project's font-awesome/less/variables.less or font-awesome/scss/_variables.scss and edit the @fa-font-path or $fa-font-path - variable to point to your font directory. -{% highlight scss %} -@fa-font-path: "../font"; -{% endhighlight %} -

    The font path is relative from your compiled CSS directory.

    -
  4. -
  5. Re-compile your LESS or SASS if using a static compiler. Otherwise, you should be good to go.
  6. -
  7. Check out the examples to start using Font Awesome!
  8. -
-
+ +
  • Check out the examples to start using Font Awesome!
  • +
    -
    - or -
    - -
    - - -

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

    - -
    -

    LESS Ruby Gem

    -

    - Use the Official Font Awesome LESS Ruby Gem to easily get Font - Awesome LESS into a Rails project. Generously maintained by @supercodepoet. -

    -
      -
    1. - Add this line to your application's Gemfile: - {% highlight bash %} - gem 'font-awesome-less' - {% endhighlight %} -
    2. -
    3. - And then execute: - {% highlight bash %} - $ bundle - {% endhighlight %} -
    4. -
    5. Or install it yourself as: - {% highlight bash %} - $ gem install font-awesome-less - {% endhighlight %} -
    6. -
    -

    - If you use Rails, add this to your e.g. application.less: -

    - {% highlight css %} - @import "font-awesome-sprockets"; - @import "font-awesome"; - {% endhighlight %} -
    - -
    -

    SASS Ruby Gem

    -

    - Use the Official Font Awesome SASS Ruby Gem to easily get Font - Awesome SASS into a Rails or Compass project. Generously maintained by @supercodepoet. -

    -
      -
    1. - Add this line to your application's Gemfile: +
      + +

      + Use the Official Font Awesome LESS Ruby Gem to easily get Font + Awesome LESS into a Rails project. Generously maintained by @supercodepoet. +

      +
        +
      1. + Add this line to your application's Gemfile: {% highlight bash %} -gem 'font-awesome-sass' +gem 'font-awesome-less' {% endhighlight %} -
      2. -
      3. - And then execute: +
      4. +
      5. + And then execute: {% highlight bash %} $ bundle {% endhighlight %} -
      6. -
      7. Or install it yourself as: +
      8. +
      9. Or install it yourself as: {% highlight bash %} -$ gem install font-awesome-sass +$ gem install font-awesome-less {% endhighlight %} -
      10. -
      -

      - If you use Rails, add this to your e.g. application.scss: -

      +
    2. +
    +

    + If you use Rails, add this to your e.g. application.less: +

    {% highlight css %} @import "font-awesome-sprockets"; @import "font-awesome"; {% endhighlight %} -
    -
    - +
    + +

    + Use the Official Font Awesome SASS Ruby Gem to easily get Font + Awesome SASS into a Rails or Compass project. Generously maintained by @supercodepoet. +

    +
      +
    1. + Add this line to your application's Gemfile: +{% highlight bash %} +gem 'font-awesome-sass' +{% endhighlight %} +
    2. +
    3. + And then execute: +{% highlight bash %} +$ bundle +{% endhighlight %} +
    4. +
    5. Or install it yourself as: +{% highlight bash %} +$ gem install font-awesome-sass +{% endhighlight %} +
    6. +
    +

    + If you use Rails, add this to your e.g. application.scss: +

    +{% highlight css %} + @import "font-awesome-sprockets"; + @import "font-awesome"; +{% endhighlight %}
    -
    -
    -

    Validators

    -

    In order to provide the best possible experience to old and buggy browsers, Font Awesome uses CSS browser hacks in several places to target special CSS to certain browser versions in order to work around bugs in the browsers themselves. These hacks understandably cause CSS validators to complain that they are invalid. In a couple places, we also use bleeding-edge CSS features that aren't yet fully standardized, but these are used purely for progressive enhancement.

    -

    These validation warnings don't matter in practice since the non-hacky portion of our CSS does fully validate and the hacky portions don't interfere with the proper functioning of the non-hacky portion, hence why we deliberately ignore these particular warnings.

    -

    Getting started - Validators by Bootstrap Team is licensed under CC BY 3.0

    -
    +
    + +

    Use this method to customize Font Awesome {{ site.fontawesome.version }} using LESS or SASS.

    +
      +
    1. Copy the font-awesome/ directory into your project.
    2. +
    3. + Open your project's font-awesome/less/variables.less or font-awesome/scss/_variables.scss and edit the @fa-font-path or $fa-font-path + variable to point to your font directory. +{% highlight scss %} +@fa-font-path: "../font"; +{% endhighlight %} +

      The font path is relative from your compiled CSS directory.

      +
    4. +
    5. Re-compile your LESS or SASS if using a static compiler. Otherwise, you should be good to go.
    6. +
    7. Check out the examples to start using Font Awesome!
    8. +
    +
    -
    -

    Internet Explorer 8 and @font-face

    -

    IE8 has some issues with @font-face when combined with :before. - Font Awesome uses that combination. If a page is cached, and loaded without the mouse over the window - (i.e. hit the refresh button or load something in an iframe) then the page gets rendered before the font loads. - Hovering over the page (body) will show some of the icons and hovering over the remaining icons will show those as well. - See issue #954 for details.

    -

    Getting started - Internet Explorer 8 and @font-face by Bootstrap Team is licensed under CC BY 3.0

    -
    -
    +
    + +

    In order to provide the best possible experience to old and buggy browsers, Font Awesome uses CSS browser hacks in several places to target special CSS to certain browser versions in order to work around bugs in the browsers themselves. These hacks understandably cause CSS validators to complain that they are invalid. In a couple places, we also use bleeding-edge CSS features that aren't yet fully standardized, but these are used purely for progressive enhancement.

    +

    These validation warnings don't matter in practice since the non-hacky portion of our CSS does fully validate and the hacky portions don't interfere with the proper functioning of the non-hacky portion, hence why we deliberately ignore these particular warnings.

    +

    Getting started - Validators by Bootstrap Team is licensed under CC BY 3.0

    +
    -
    -
    -

    Need IE7 Support?

    -

    IE8 has some issues with @font-face when combined with :before. - Font Awesome uses that combination. If a page is cached, and loaded without the mouse over the window - (i.e. hit the refresh button or load something in an iframe) then the page gets rendered before the font loads. - Hovering over the page (body) will show some of the icons and hovering over the remaining icons will show those as well. - See issue #954 for details.

    -

    Getting started - Internet Explorer 8 and @font-face by Bootstrap Team is licensed under CC BY 3.0

    -
    +
    + +

    + IE8 has some issues with @font-face when combined with :before. + Font Awesome uses that combination. If a page is cached, and loaded without the mouse over the window + (i.e. hit the refresh button or load something in an iframe) then the page gets rendered before the font loads. + Hovering over the page (body) will show some of the icons and hovering over the remaining icons will show those as well. + See issue #954 for details. +

    +

    Getting started - Internet Explorer 8 and @font-face by Bootstrap Team is licensed under CC BY 3.0

    +
    -
    -

    Troubleshooting

    -

    If you're having trouble with Font Awesome, make sure to check out the - troubleshooting wiki page. - Generously maintained by @gtagliala.

    -
    -
    +
    + +

    + If you need IE7 support, you have my condolences. Really. Font Awesome {{ site.fontawesome.version }} + doesn't support IE7, but an older version does. You'll need to check out the + 3.2.1 instructions for using IE7. Then go complain to + whomever decided your project needs IE7 support. +

    +
    -{% include modals/download.html %} +
    + +

    + If you're having trouble with Font Awesome, make sure to check out the + troubleshooting wiki page. + Generously maintained by @gtagliala. +

    +
    +