From 044f89b8cc636eafa848ecf27ab93c6fc6a4fa1e Mon Sep 17 00:00:00 2001 From: Michael Q Larson Date: Sat, 17 Jan 2015 14:16:29 -0800 Subject: [PATCH] add footer --- public/css/main.less | 27 ++++++++++++++++++--------- views/layout.jade | 1 + views/partials/footer.jade | 36 +++++++++++++----------------------- views/resources/privacy.jade | 13 ++++++------- 4 files changed, 38 insertions(+), 39 deletions(-) diff --git a/public/css/main.less b/public/css/main.less index 4c5cfbd1fb..fd626a92bc 100644 --- a/public/css/main.less +++ b/public/css/main.less @@ -32,15 +32,6 @@ body { margin-bottom: 75px; } -.footer { - width: 100%; - margin-bottom: 0px; - text-align: center; - padding:0px; - height: 200px; - background-color: #4a2b0f; -} - h1, h2 { font-weight: 400; } @@ -494,6 +485,24 @@ thead { } } +.fcc-footer { + width: 100%; + text-align: center; + background-color: #4a2b0f; + height: 40px; + bottom: 0; + position: absolute; + a { + font-size: 28px; + color: #eee; + &:hover { + color: #4a2b0f; + background-color: #eee; + text-decoration: none; + } + } +} + //uncomment this to see the dimensions of all elements outlined in red //* { // border-color: red; diff --git a/views/layout.jade b/views/layout.jade index 8ff03c4c46..1e2fa67ae7 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -23,6 +23,7 @@ html(ng-app='profileValidation') .container include partials/flash block content + include partials/footer != js('application') script. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ diff --git a/views/partials/footer.jade b/views/partials/footer.jade index 99193726ad..d73f8c71df 100644 --- a/views/partials/footer.jade +++ b/views/partials/footer.jade @@ -1,23 +1,13 @@ -.footer.nav.navbar.navbar-nav.visible-xs.visible-sm - ul - li - a(href='/') Challenges - - if (cc && cc[1] < 1) - li - a(href='/challenges/1') Chat - - else - li - a(href='http://chat.freecodecamp.com') Chat - - if (cc && cc[2] < 1) - li - a(href='/challenges/2') Forum - - else - li - a(href='http://forum.freecodecamp.com') Forum - li - a(href='/learn-to-code') About - if user - li - a(href='/profile') [ #{user.points} ] - if !user - a.btn.signup-btn.btn-nav.btn-sm(href='/login') Sign in \ No newline at end of file +.fcc-footer + .col-xs-12 + a(href='http://blog.freecodecamp.com') Blog + |     + a.ion-social-github(title="Free Code Camp on GitHub", href="http://github.com/freecodecamp", target='_blank') + |   + a.ion-social-twitter(title="Free Code Camp on Twitter", href="http://twitter.com/freecodecamp", target='_blank') + |   + a.ion-social-facebook(title="Free Code Camp on Facebook", href="http://facebook.com/freecodecamp", target='_blank') + |   + a.ion-social-linkedin(title="Free Code Camp on LinkedIn", href="http://linkedin.com/company/4831032?free-code-camp", target='_blank') + |   + a(href='/privacy') Privacy diff --git a/views/resources/privacy.jade b/views/resources/privacy.jade index 5ee3d828b5..fecb0aa8ae 100644 --- a/views/resources/privacy.jade +++ b/views/resources/privacy.jade @@ -3,17 +3,16 @@ block content .jumbotron h2.big-text Privacy html. -

Free Code Camp is committed to respecting the privacy of visitors to its Web sites. The guidelines below explain how we protect the privacy of visitors to FreeCodeCamp.com and its features.

+

Free Code Camp is committed to respecting the privacy of visitors to our web sites and web applications. The guidelines below explain how we protect the privacy of visitors to FreeCodeCamp.com and its features.

Personally Identifiable Information

-

Free Code Camp protects the identity of visitors to FreeCodeCamp.com by limiting the collection of personally identifiable information.

+

Free Code Camp protects the identity of visitors to FreeCodeCamp.com by limiting the collection of personally identifiable information.

Free Code Camp does not knowingly collect or solicit personally identifiable information from or about children under 13, except as permitted by law. If we discover we have received any information from a child under 13 in violation of this policy, we will delete that information immediately. If you believe Free Code Camp has any information from or about anyone under 13, please e-mail us at team@freecodecamp.com.

-

All personally identifiable information you provide to us is used by Free Code Camp and its staff to process and manage your account, analyze the demographic of our subscribers, or to deliver services through the site; such information may also be used by the company for prize or information-request fulfillment unless otherwise indicated. Such information will not be posted or published by us, and will be shared with third parties only for the purpose of payment processing.

-

If you choose to provide personally identifiable information to us, you may receive the following types of e-mails from us:

-

When you provide personally identifiable information to us, you can let us know that you do not wish to receive Free Code Camp emails. Each email will also have information available to allow you to "opt out" if you wish to receive no further emails.

-

FreeCodeCamp.com may also use other third-party providers to facilitate the delivery of the services described above, and these third-party providers may be supplied with or have access to personally identifiable information for the sole purpose of providing these services, to you on behalf of Free Code Camp.com.

+

All personally identifiable information you provide to us is used by Free Code Camp and its team to process and manage your account, analyze the demographic of our users, or to deliver services through the site.

+

If you choose to provide personally identifiable information to us, you may receive occasional e-mails from us that are relevant to Free Code Camp, getting a job, or learning to code in general.

+

Free Code Camp may also use other third-party providers to facilitate the delivery of the services described above, and these third-party providers may be supplied with or have access to personally identifiable information for the sole purpose of providing these services, to you on behalf of Free Code Camp.

Free Code Camp may also disclose personally identifiable information in special legal circumstances. For instance, such information may be used where it is necessary to protect our copyright or intellectual property rights, or if the law requires us to do so.

Anonymous Information

-

Anonymous aggregated data may be provided to other companies we do business with for statistical purposes. For example, we may report to advertisers that a certain percentage of our site's visitors are adults between the ages of 25 and 35.

+

Anonymous aggregated data may be provided to other organizations we associate with for statistical purposes. For example, we may report to an organization that a certain percentage of our site's visitors are adults between the ages of 25 and 35.

Cookies and Beacons—Use by Free Code Camp; Opting Out

We use cookies and software logs to monitor the use of FreeCodeCamp.com and to gather non-personal information about visitors to the site. Cookies are small files that Free Code Camp transfers to the hard drives of visitors for record-keeping purposes. These monitoring systems allow us to track general information about our visitors, such as the type of browsers (for example, Firefox or Internet Explorer), the operating systems (for instance, Windows or Macintosh), or the Internet providers (for instance, Comcast) they use. This information is used for statistical and market research purposes to tailor content to usage patterns and to provide services requested by our customers. To delete these cookies, please see your browser's privacy settings.

A beacon is an electronic file object (typically a transparent image) placed in the code of a Web page. We use third party beacons to monitor the traffic patterns of visitors from one Free Code Camp.com page to another and to improve site performance.