diff --git a/hackatonApp/scss/home-items.scss b/hackatonApp/scss/home-items.scss index 73521cb..b663a3c 100644 --- a/hackatonApp/scss/home-items.scss +++ b/hackatonApp/scss/home-items.scss @@ -180,3 +180,10 @@ $pre-img-ratios: append($pre-img-ratios, $home-categories-img-ratio); } } } +input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"] { + border: 10px; + margin-top: 10px; + margin-left: 10px; + margin-bottom: 10px; + font-size: 20px; +} \ No newline at end of file diff --git a/hackatonApp/www/home-categories.json b/hackatonApp/www/home-categories.json index 4ae532c..da43340 100644 --- a/hackatonApp/www/home-categories.json +++ b/hackatonApp/www/home-categories.json @@ -7,47 +7,69 @@ { "id":"Trenitalia", "title":"Trenitalia", - "description":"The latest stories from the World section of the BBC News web site.", - "image":"img/trenitalialogo.png", - "url":"http://feeds.bbci.co.uk/news/world/rss.xml" - + "description":"", + "image":"img/trenitalialogo.png" }, { "id":"Trenitalia", "title":"Trenitalia", - "description":"Reuters.com is your source for breaking news, business, financial and investing news, including personal finance and stocks. Reuters is the leading global provider of news, financial information and technology solutions to the world's media, financial institutions, businesses and individuals.", - "image":"img/trenitalialogo.png", - "url":"http://feeds.reuters.com/Reuters/worldNews" + "description":"", + "image":"img/trenitalialogo.png" }, { "id":"Trenitalia", "title":"Trenitalia", - "description":"CNN.com delivers up-to-the-minute news and information on the latest top stories, weather, entertainment, politics and more.", - "image":"img/trenitalialogo.png", - "url":"http://rss.cnn.com/rss/cnn_world.rss" + "description":"", + "image":"img/trenitalialogo.png" }, { "id":"Trenitalia", "title":"Trenitalia", - "description":"Latest World news, comment and analysis from the Guardian, the world's leading liberal voice", - "image":"img/trenitalialogo.png", - "url":"http://www.theguardian.com/world/rss" + "description":"", + "image":"img/trenitalialogo.png" } ] }, { "id":"addticketwithphoto", "title":"Aggiungi un biglietto", - "image":"img/feeds/sports.jpg" + "image":"img/Camera.png" }, { "id":"shop", "title":"Spendi i crediti", - "image":"img/feeds/business.jpg" + "image":"img/Cart.png", + "home_sources":[ + { + "id":"McDonald", + "title":"McDonald", + "description":"Sconto di 2 euro sul BigMac.", + "image":"img/mcdonaldlogo.png" + + }, + { + "id":"McDonald", + "title":"McDonald", + "description":"Reuters.com is your source for breaking news, business, financial and investing news, including personal finance and stocks. Reuters is the leading global provider of news, financial information and technology solutions to the world's media, financial institutions, businesses and individuals.", + "image":"img/mcdonaldlogo.png" + }, + { + "id":"McDonald", + "title":"McDonald", + "description":"CNN.com delivers up-to-the-minute news and information on the latest top stories, weather, entertainment, politics and more.", + "image":"img/mcdonaldlogo.png" + }, + { + "id":"McDonald", + "title":"McDonald", + "description":"Latest World news, comment and analysis from the Guardian, the world's leading liberal voice", + "image":"img/mcdonaldlogo.png" + } + ] }, { - "id":"ranks", - "title":"Classifica", + "id":"settings", + "title":"Impostazioni", "image":"img/feeds/entertainment.jpg" } ] diff --git a/hackatonApp/www/img/Camera.png b/hackatonApp/www/img/Camera.png new file mode 100644 index 0000000..d6ab414 Binary files /dev/null and b/hackatonApp/www/img/Camera.png differ diff --git a/hackatonApp/www/img/Cart.png b/hackatonApp/www/img/Cart.png new file mode 100644 index 0000000..13bbabb Binary files /dev/null and b/hackatonApp/www/img/Cart.png differ diff --git a/hackatonApp/www/img/mcdonaldlogo.png b/hackatonApp/www/img/mcdonaldlogo.png new file mode 100644 index 0000000..cbeed01 Binary files /dev/null and b/hackatonApp/www/img/mcdonaldlogo.png differ diff --git a/hackatonApp/www/js/controllers.js b/hackatonApp/www/js/controllers.js index deb32a6..37f8dd6 100644 --- a/hackatonApp/www/js/controllers.js +++ b/hackatonApp/www/js/controllers.js @@ -544,7 +544,6 @@ angular.module('your_app_name.controllers', []) { case "addticketwithphoto": { - console.log("ciao"); takePicture(); break; } @@ -557,6 +556,21 @@ angular.module('your_app_name.controllers', []) }); break; } + case "shop": + { + $http.get('home-categories.json').success(function(response) { + var category = _.find(response, {id: $scope.categoryId}); + $scope.categoryTitle = category.title; + $scope.category_sources = category.home_sources; + }); + break; + } + case "settings": + { + $scope.categoryTitle = "Impostazioni"; + console.log("odod"); + break; + } } diff --git a/hackatonApp/www/shop-categories.json b/hackatonApp/www/shop-categories.json new file mode 100644 index 0000000..902d9a4 --- /dev/null +++ b/hackatonApp/www/shop-categories.json @@ -0,0 +1,75 @@ +[ + { + "id":"booking", + "title":"Prenota", + "image":"img/feeds/news.jpg", + "home_sources":[ + { + "id":"Trenitalia", + "title":"Trenitalia", + "description":"", + "image":"img/trenitalialogo.png" + }, + { + "id":"Trenitalia", + "title":"Trenitalia", + "description":"", + "image":"img/trenitalialogo.png" + }, + { + "id":"Trenitalia", + "title":"Trenitalia", + "description":"", + "image":"img/trenitalialogo.png" + }, + { + "id":"Trenitalia", + "title":"Trenitalia", + "description":"", + "image":"img/trenitalialogo.png" + } + ] + }, + { + "id":"addticketwithphoto", + "title":"Aggiungi un biglietto", + "image":"img/Camera.png" + }, + { + "id":"shop", + "title":"Spendi i crediti", + "image":"img/Cart.png", + "home_sources":[ + { + "id":"McDonald", + "title":"McDonald", + "description":"Sconto di 2 euro sul BigMac.", + "image":"img/mcdonaldlogo.png" + + }, + { + "id":"McDonald", + "title":"McDonald", + "description":"Reuters.com is your source for breaking news, business, financial and investing news, including personal finance and stocks. Reuters is the leading global provider of news, financial information and technology solutions to the world's media, financial institutions, businesses and individuals.", + "image":"img/mcdonaldlogo.png" + }, + { + "id":"McDonald", + "title":"McDonald", + "description":"CNN.com delivers up-to-the-minute news and information on the latest top stories, weather, entertainment, politics and more.", + "image":"img/mcdonaldlogo.png" + }, + { + "id":"McDonald", + "title":"McDonald", + "description":"Latest World news, comment and analysis from the Guardian, the world's leading liberal voice", + "image":"img/mcdonaldlogo.png" + } + ] + }, + { + "id":"ranks", + "title":"Classifica", + "image":"img/feeds/entertainment.jpg" + } +] diff --git a/hackatonApp/www/views/app/allTickets.html b/hackatonApp/www/views/app/allTickets.html index 0f33389..e69de29 100644 --- a/hackatonApp/www/views/app/allTickets.html +++ b/hackatonApp/www/views/app/allTickets.html @@ -1,38 +0,0 @@ - - - - - - Bookmarks - - - - - - - There's nothing here yet. Start exploring! - - - - - - Feeds Bookmarks - - - - - Posted - - - - Wordpress bookmarks - - - - - Posted - - - - - diff --git a/hackatonApp/www/views/app/category.html b/hackatonApp/www/views/app/category.html index 43c3b54..d109f01 100644 --- a/hackatonApp/www/views/app/category.html +++ b/hackatonApp/www/views/app/category.html @@ -3,6 +3,10 @@ {{categoryTitle}} + + + + @@ -14,8 +18,51 @@ {{source.title}} {{source.description}} - + + + + + + + TOGGLE + + Airplane Mode + Wi-Fi + Bluetooth + Personal Hotspot + + CHECKBOXES + + Option 1 + Option 2 + Option 3 + + RADIO + + Choose A + Choose B + Choose C + + RANGES + + + + + + + + + + + + + + + + Logout + + diff --git a/hackatonApp/www/views/app/home.html b/hackatonApp/www/views/app/home.html index 5c9e687..71fef7b 100644 --- a/hackatonApp/www/views/app/home.html +++ b/hackatonApp/www/views/app/home.html @@ -19,6 +19,7 @@ + {{category.title}}
Posted
{{source.description}}