From 4cbdc19c050c4a1910eaeb9cc4e909d468e9e4d9 Mon Sep 17 00:00:00 2001 From: ggarcia Date: Wed, 27 Jan 2016 08:11:42 -0200 Subject: [PATCH] Finish the home page - Create and test the navigation component. - Test the Home controller. - Add the html and css for the home page. --- Foundation.hs | 16 +- js/components/navigation.js | 67 + js/components/navigaton.test.js | 61 + js/index.js | 12 +- karma.conf.js | 36 + messages/en.msg | 41 + messages/pt-BR.msg | 41 + package.json | 42 + scss/base.scss | 24 + scss/buttons.scss | 16 + scss/landing.scss | 183 + scss/main.scss | 10 + scss/menu.scss | 112 + static/css/style.css | 2109 +++ static/imgs/landing/chronometer.jpg | Bin 0 -> 1078914 bytes static/imgs/landing/file-icons.png | Bin 0 -> 42702 bytes static/js/bundle.js | 19770 +++++++++++++++++++++++++- templates/homepage.hamlet | 91 + test.webpack.js | 4 + test/Handler/HomeSpec.hs | 29 +- test/TestImport.hs | 7 +- webpack.config.js | 15 + 22 files changed, 22656 insertions(+), 30 deletions(-) create mode 100644 js/components/navigation.js create mode 100644 js/components/navigaton.test.js create mode 100644 karma.conf.js create mode 100644 package.json create mode 100644 scss/base.scss create mode 100644 scss/buttons.scss create mode 100644 scss/landing.scss create mode 100644 scss/main.scss create mode 100644 scss/menu.scss create mode 100644 static/css/style.css create mode 100644 static/imgs/landing/chronometer.jpg create mode 100644 static/imgs/landing/file-icons.png create mode 100644 test.webpack.js diff --git a/Foundation.hs b/Foundation.hs index 5f53d15..c7fca41 100644 --- a/Foundation.hs +++ b/Foundation.hs @@ -65,7 +65,21 @@ instance Yesod App where -- you to use normal widget features in default-layout. pc <- widgetToPageContent $ do - + -- add CDN-hosted + addStylesheetRemote "https:////maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" + addStylesheetRemote "https://fonts.googleapis.com/css?family=Roboto:400,300" + + -- Takes a list of css files and generate one big css file. + $(combineStylesheets 'StaticR + [ css_style_css + ]) + + -- this is an array of static js files that yesod will + -- combine into one single js file and load it via a + --