From dd592044bba259a9d4922690d9d146d542165f30 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 23 Jul 2015 14:17:51 -0700 Subject: added customization example --- .gitignore | 1 + config/customization.example/locales/en.yml | 2 + config/customization.example/locales/es.yml | 2 + config/customization.example/public/favicon.ico | Bin 0 -> 1014 bytes .../customization.example/public/img/masthead.png | Bin 0 -> 76967 bytes config/customization.example/stylesheets/tail.scss | 43 +++++++++++++++++++++ .../views/home/_masthead.html.haml | 4 ++ .../views/pages/privacy-policy.en.md | 3 ++ .../views/pages/privacy-policy.es.md | 3 ++ 9 files changed, 58 insertions(+) create mode 100644 config/customization.example/locales/en.yml create mode 100644 config/customization.example/locales/es.yml create mode 100644 config/customization.example/public/favicon.ico create mode 100644 config/customization.example/public/img/masthead.png create mode 100644 config/customization.example/stylesheets/tail.scss create mode 100644 config/customization.example/views/home/_masthead.html.haml create mode 100644 config/customization.example/views/pages/privacy-policy.en.md create mode 100644 config/customization.example/views/pages/privacy-policy.es.md diff --git a/.gitignore b/.gitignore index 427f017..ea3f194 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ test/dummy/tmp/* # ignore the disabled customization directories that # i keep around for testing purposes. config/customization.* +!config/customization.example # ignore all deploy specific configuration config/couchdb.yml diff --git a/config/customization.example/locales/en.yml b/config/customization.example/locales/en.yml new file mode 100644 index 0000000..3c5f370 --- /dev/null +++ b/config/customization.example/locales/en.yml @@ -0,0 +1,2 @@ +en: + login_info: Authenticate to change your "Prehistoric Computer" settings. \ No newline at end of file diff --git a/config/customization.example/locales/es.yml b/config/customization.example/locales/es.yml new file mode 100644 index 0000000..3b056fe --- /dev/null +++ b/config/customization.example/locales/es.yml @@ -0,0 +1,2 @@ +es: + login_info: Autenticar a cambiar la configuración de "Computer Prehistoria." \ No newline at end of file diff --git a/config/customization.example/public/favicon.ico b/config/customization.example/public/favicon.ico new file mode 100644 index 0000000..61e3374 Binary files /dev/null and b/config/customization.example/public/favicon.ico differ diff --git a/config/customization.example/public/img/masthead.png b/config/customization.example/public/img/masthead.png new file mode 100644 index 0000000..1449153 Binary files /dev/null and b/config/customization.example/public/img/masthead.png differ diff --git a/config/customization.example/stylesheets/tail.scss b/config/customization.example/stylesheets/tail.scss new file mode 100644 index 0000000..4c51a34 --- /dev/null +++ b/config/customization.example/stylesheets/tail.scss @@ -0,0 +1,43 @@ +$custom-color: #66bbaa; + +a { + color: $custom-color; +} + +// +// MASTHEAD +// + +#masthead { + background-color: $custom-color; + border-bottom: none; + + // make the masthead clickable by replacing the + // site name link with the masthead image: + .title { + padding: 0px; + .sitename a { + display: block; + background: url(/img/masthead.png) 0 0 no-repeat; + font-size: 0px; + height: 100px; + background-size: auto 100px; + } + } +} + +// make the home page masthead slightly larger +body.home #masthead { + .sitename a { + height: 150px; + background-size: auto 150px; + } +} + +// +// FOOTER +// + +#footer .links { + background-color: $custom-color; +} \ No newline at end of file diff --git a/config/customization.example/views/home/_masthead.html.haml b/config/customization.example/views/home/_masthead.html.haml new file mode 100644 index 0000000..fde5915 --- /dev/null +++ b/config/customization.example/views/home/_masthead.html.haml @@ -0,0 +1,4 @@ +#masthead + .title + %span.sitename + %a{:href => home_path}= APP_CONFIG[:domain] diff --git a/config/customization.example/views/pages/privacy-policy.en.md b/config/customization.example/views/pages/privacy-policy.en.md new file mode 100644 index 0000000..a02337d --- /dev/null +++ b/config/customization.example/views/pages/privacy-policy.en.md @@ -0,0 +1,3 @@ +# Custom Privacy Policy + +This is our privacy policy. \ No newline at end of file diff --git a/config/customization.example/views/pages/privacy-policy.es.md b/config/customization.example/views/pages/privacy-policy.es.md new file mode 100644 index 0000000..167f3a1 --- /dev/null +++ b/config/customization.example/views/pages/privacy-policy.es.md @@ -0,0 +1,3 @@ +# Custom Política de Privacidad + +Esta es nuestra política de privacidad. \ No newline at end of file -- cgit v1.2.3