diff --git a/locales/en.yml b/locales/en.yml index 443353b..4113365 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -4,3 +4,6 @@ en: english: "English" developer: "Developer" download_resume: "Download my resume" + find_me_github: "Find me on github at %{link}" + created_with: "Generated with %{link}." + find_site_github: "Want to see the source ? Go on %{link}." diff --git a/locales/fr.yml b/locales/fr.yml index 397e629..cb98be8 100644 --- a/locales/fr.yml +++ b/locales/fr.yml @@ -4,3 +4,6 @@ fr: english: "Anglais" developer: "Développeur" download_resume: "Télecharger mon CV" + find_me_github: "Contactez moi sur Github à %{link}" + created_with: "Généré avec %{link}." + find_site_github: "Want to see the source ? Go on %{link}." diff --git a/source/layouts/layout.haml b/source/layouts/layout.haml index bb4ee76..ae5c739 100644 --- a/source/layouts/layout.haml +++ b/source/layouts/layout.haml @@ -31,3 +31,7 @@ .content = yield + + %footer + %p= I18n.t(:created_with, link: link_to('Middleman', 'http://middlemanapp.com/')) + %p= I18n.t(:find_site_github, link: link_to('Github', 'https://github.com/gdott9/guillaume.dott.fr')) diff --git a/source/localizable/index.html.haml b/source/localizable/index.html.haml index 1cde82d..21a4b9d 100644 --- a/source/localizable/index.html.haml +++ b/source/localizable/index.html.haml @@ -5,5 +5,4 @@ title: Welcome to Middleman %section.welcome = image_tag 'github-original.png' %p - = I18n.t(:find_me_github) - = link_to 'gdott9', 'https://github.com/gdott9' + = I18n.t(:find_me_github, link: link_to('gdott9', 'https://github.com/gdott9')) diff --git a/source/stylesheets/all.css.sass b/source/stylesheets/all.css.sass index 4926eb4..e4ec6b7 100644 --- a/source/stylesheets/all.css.sass +++ b/source/stylesheets/all.css.sass @@ -82,3 +82,15 @@ nav background-color: rgba(0, 0, 0, 0.7) border: 2px solid white padding: 1.2em + + &.welcome + text-align: center + +footer + padding: 10px + margin-top: 2em + background-color: rgba(0, 0, 0, 0.7) + border: white solid + border-width: 2px 0 + text-align: center +