Browse Source

material design with purple style started

master
arnaucode 7 years ago
parent
commit
b940800b9f
8 changed files with 129 additions and 32 deletions
  1. +86
    -3
      www/css/style.css
  2. +16
    -4
      www/templates/main.html
  3. +11
    -11
      www/templates/menu.html
  4. +3
    -3
      www/templates/newPublication.html
  5. +3
    -3
      www/templates/offerCar.html
  6. +5
    -4
      www/templates/travels.html
  7. +3
    -2
      www/templates/user.html
  8. +2
    -2
      www/templates/users.html

+ 86
- 3
www/css/style.css

@ -22,8 +22,8 @@
a part podem posar ColorDark o ColorLight per fer un color més fosc o més clar a part podem posar ColorDark o ColorLight per fer un color més fosc o més clar
*/ */
.o_bSidenav{ .o_bSidenav{
background: #333b42!important;
color: #c6ccd2!important;
background: #ffffff!important;
color: #616161!important;
} }
.o_fWhiteLight{ .o_fWhiteLight{
color: #c6ccd2!important; color: #c6ccd2!important;
@ -85,11 +85,94 @@
background: #FF7043!important; background: #FF7043!important;
color: #ffffff!important; color: #ffffff!important;
} }
.o_bPurple{
/*.o_bPurple{
background: #9575CD!important; background: #9575CD!important;
color: #ffffff!important; color: #ffffff!important;
} }
.o_bPurpleDark{ .o_bPurpleDark{
background: #512DA8!important; background: #512DA8!important;
color: #ffffff!important; color: #ffffff!important;
}*/
.o_purple50{
background: #EDE7F6!important;
color: #000000!important;
}
.o_purple100{
background: #D1C4E9!important;
color: #000000!important;
}
.o_purple200{
background: #B39DDB!important;
color: #000000!important;
}
.o_purple300{
background: #9575CD!important;
color: #ffffff!important;
}
.o_purple400{
background: #7E57C2!important;
color: #ffffff!important;
}
.o_purple500{
background: #673AB7!important;
color: #ffffff!important;
}
.o_purple600{
background: #5E35B1!important;
color: #ffffff!important;
}
.o_purple700{
background: #512DA8!important;
color: #ffffff!important;
}
.o_purple800{
background: #4527A0!important;
color: #ffffff!important;
}
.o_purple900{
background: #311B92!important;
color: #ffffff!important;
}
.o_purpleG000to200{
background: -moz-linear-gradient(0deg, #ffffff 0%, #D1C4E9 100%); /* ff3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%, #ffffff), color-stop(100%, #D1C4E9)); /* safari4+,chrome */
background: -webkit-linear-gradient(0deg, #ffffff 0%, #D1C4E9 100%); /* safari5.1+,chrome10+ */
background: -o-linear-gradient(0deg, #ffffff 0%, #D1C4E9 100%); /* opera 11.10+ */
background: -ms-linear-gradient(0deg, #ffffff 0%, #D1C4E9 100%); /* ie10+ */
background: linear-gradient(90deg, #ffffff 0%, #D1C4E9 100%); /* w3c */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#D1C4E9',GradientType=1 ); /* ie6-9 */
}
.o_purpleG500to300{
background: -moz-linear-gradient(219deg, #9575CD 0%, #673AB7 100%); /* ff3.6+ */
background: -webkit-gradient(linear, left bottom, right top, color-stop(0%, #673AB7), color-stop(100%, #9575CD)); /* safari4+,chrome */
background: -webkit-linear-gradient(219deg, #9575CD 0%, #673AB7 100%); /* safari5.1+,chrome10+ */
background: -o-linear-gradient(219deg, #9575CD 0%, #673AB7 100%); /* opera 11.10+ */
background: -ms-linear-gradient(219deg, #9575CD 0%, #673AB7 100%); /* ie10+ */
background: linear-gradient(231deg, #9575CD 0%, #673AB7 100%); /* w3c */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#673AB7', endColorstr='#9575CD',GradientType=1 ); /* ie6-9 */
color: #ffffff!important;
}
.o_purpleG300to500{
background: -moz-linear-gradient(42deg, #9575CD 0%, #673AB7 100%); /* ff3.6+ */
background: -webkit-gradient(linear, left bottom, right top, color-stop(0%, #9575CD), color-stop(100%, #673AB7)); /* safari4+,chrome */
background: -webkit-linear-gradient(42deg, #9575CD 0%, #673AB7 100%); /* safari5.1+,chrome10+ */
background: -o-linear-gradient(42deg, #9575CD 0%, #673AB7 100%); /* opera 11.10+ */
background: -ms-linear-gradient(42deg, #9575CD 0%, #673AB7 100%); /* ie10+ */
background: linear-gradient(48deg, #9575CD 0%, #673AB7 100%); /* w3c */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9575CD', endColorstr='#673AB7',GradientType=1 ); /* ie6-9 */
color: #ffffff!important;
}
.o_text_purple400{
color: #7E57C2!important;
}
.o_text_purple500{
color: #673AB7!important;
}
.o_text_purple600{
color: #5E35B1!important;
} }

+ 16
- 4
www/templates/main.html

@ -1,18 +1,30 @@
<ion-view view-title="Main"> <ion-view view-title="Main">
<ion-content> <ion-content>
<a ng-href="#/app/travels" class="item item-icon-left o_bGreenDark">
<a ng-href="#/app/users/{{storageuser._id}}" class="item item-icon-left o_purpleG300to500">
<i class="icon ion-person"></i>
{{storageuser.username}} profile
</a>
<a ng-href="#/app/newPublication" class="item item-icon-left o_purpleG300to500">
<i class="icon ion-paper-airplane"></i>
New publication
</a>
<a ng-href="#/app/travels" class="item item-icon-left o_purpleG300to500">
<i class="icon ion-android-car"></i> <i class="icon ion-android-car"></i>
Travels Travels
</a> </a>
<a href="#/app/users" class="item item-icon-left o_bBlue">
<a href="#/app/users" class="item item-icon-left o_purpleG300to500">
<i class="icon ion-person-stalker"></i> <i class="icon ion-person-stalker"></i>
Users Users
</a> </a>
<a href="#/app/settings" class="item item-icon-left o_bOrange">
<a href="#/app/notifications" class="item item-icon-left o_purpleG300to500">
<i class="icon ion-android-notifications"></i>
Notifications
</a>
<a href="#/app/settings" class="item item-icon-left o_purpleG300to500">
<i class="icon ion-settings"></i> <i class="icon ion-settings"></i>
Settings Settings
</a> </a>
<a href="#/app/help" class="item item-icon-left">
<a href="#/app/help" class="item item-icon-left o_purpleG300to500">
<i class="icon ion-ios-help-outline"></i> <i class="icon ion-ios-help-outline"></i>
Help Help
</a> </a>

+ 11
- 11
www/templates/menu.html

@ -1,11 +1,11 @@
<ion-side-menus enable-menu-with-back-views="false"> <ion-side-menus enable-menu-with-back-views="false">
<ion-side-menu-content> <ion-side-menu-content>
<ion-nav-bar class="bar-stable" ng-show="storageuser">
<ion-nav-back-button>
<ion-nav-bar class="bar o_text_purple500" ng-show="storageuser">
<ion-nav-back-button class="o_text_purple500">
</ion-nav-back-button> </ion-nav-back-button>
<ion-nav-buttons side="left"> <ion-nav-buttons side="left">
<button class="button button-icon button-clear ion-navicon" menu-toggle="left">
<button class="button button-icon button-clear ion-navicon o_text_purple500" menu-toggle="left">
</button> </button>
</ion-nav-buttons> </ion-nav-buttons>
</ion-nav-bar> </ion-nav-bar>
@ -27,31 +27,31 @@
<ion-side-menu side="left" class="o_bSidenav"> <ion-side-menu side="left" class="o_bSidenav">
<ion-header-bar class="bar-stable o_bSidenav"> <ion-header-bar class="bar-stable o_bSidenav">
<h1 class="title o_fWhiteLight">{{'Menu' | translate }}</h1>
<h1 class="title">{{'Menu' | translate }}</h1>
</ion-header-bar> </ion-header-bar>
<ion-content> <ion-content>
<ion-list> <ion-list>
<a class="item item-icon-left o_bSidenav" menu-close href="#/app/main">
<a class="item item-icon-left o_bSidenav" menu-close ng-href="#/app/main">
<i class="icon ion-home"></i> {{'Main' | translate }} <i class="icon ion-home"></i> {{'Main' | translate }}
</a> </a>
<a class="item item-icon-left o_bSidenav" menu-close href="#/app/users/{{storageuser._id}}">
<a class="item item-icon-left o_bSidenav" menu-close ng-href="#/app/users/{{storageuser._id}}">
<i class="icon ion-person"></i> {{storageuser.username}} <i class="icon ion-person"></i> {{storageuser.username}}
</a> </a>
<a class="item item-icon-left o_bSidenav" menu-close href="#/app/travels">
<a class="item item-icon-left o_bSidenav" menu-close ng-href="#/app/travels">
<i class="icon ion-android-car"></i> {{'Travels' | translate }} <i class="icon ion-android-car"></i> {{'Travels' | translate }}
</a> </a>
<a class="item item-icon-left o_bSidenav" menu-close href="#/app/users">
<a class="item item-icon-left o_bSidenav" menu-close ng-href="#/app/users">
<i class="icon ion-person-stalker"></i> {{'Users' | translate }} <i class="icon ion-person-stalker"></i> {{'Users' | translate }}
</a> </a>
<a class="item item-icon-left o_bSidenav" menu-close href="#/app/notifications">
<a class="item item-icon-left o_bSidenav" menu-close ng-href="#/app/notifications">
<i class="icon ion-android-notifications-none"></i> <i class="icon ion-android-notifications-none"></i>
<span class="mdl-badge" data-badge="4">{{'Notifications' | translate }}</span> <span class="mdl-badge" data-badge="4">{{'Notifications' | translate }}</span>
<span class="badge badge-positive">{{userdata.notifications.length}}</span> <span class="badge badge-positive">{{userdata.notifications.length}}</span>
</a> </a>
<a class="item item-icon-left o_bSidenav" menu-close href="#/app/settings">
<a class="item item-icon-left o_bSidenav" menu-close ng-href="#/app/settings">
<i class="icon ion-settings"></i> {{'Settings' | translate }} <i class="icon ion-settings"></i> {{'Settings' | translate }}
</a> </a>
<a class="item item-icon-left o_bSidenav" menu-close href="#/app/help">
<a class="item item-icon-left o_bSidenav" menu-close ng-href="#/app/help">
<i class="icon ion-ios-help-outline"></i> {{'Help' | translate }} <i class="icon ion-ios-help-outline"></i> {{'Help' | translate }}
</a> </a>
<a class="item item-icon-left o_bSidenav" menu-close ng-click="logout()"> <a class="item item-icon-left o_bSidenav" menu-close ng-click="logout()">

+ 3
- 3
www/templates/newPublication.html

@ -1,14 +1,14 @@
<ion-view view-title="New Publication"> <ion-view view-title="New Publication">
<ion-content> <ion-content>
<a ng-href="#/app/offerCar" class="item item-icon-left o_bBlue">
<a ng-href="#/app/offerCar" class="item item-icon-left o_purple500">
<i class="icon ion-android-car"></i> <i class="icon ion-android-car"></i>
Offer Car Offer Car
</a> </a>
<a href="#/app/dashboard" class="item item-icon-left o_bGreen">
<a href="#/app/dashboard" class="item item-icon-left o_purple400">
<i class="icon ion-help"></i> <i class="icon ion-help"></i>
Ask for Car Ask for Car
</a> </a>
<a href="#/app/marks/{{storageuser._id}}" class="item item-icon-left o_bOrange">
<a href="#/app/marks/{{storageuser._id}}" class="item item-icon-left o_purple300">
<i class="icon ion-ios-box"></i> <i class="icon ion-ios-box"></i>
Ask for Package Ask for Package
</a> </a>

+ 3
- 3
www/templates/offerCar.html

@ -2,7 +2,7 @@
<ion-content> <ion-content>
<div class="list"> <div class="list">
<label class="item item-input"> <label class="item item-input">
<span class="input-label"t>{{'Title' | translate}}</span>
<span class="input-label">{{'Title' | translate}}</span>
<input ng-model="newtravel.title" class="positive" type="text" placeholder=""> <input ng-model="newtravel.title" class="positive" type="text" placeholder="">
</label> </label>
@ -50,9 +50,9 @@
<input ng-model="newtravel.description" type="text" placeholder="Description"> <input ng-model="newtravel.description" type="text" placeholder="Description">
</label> </label>
<p class="padding"> <p class="padding">
<button ng-click="createTravel()" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent o_floatRight">
<md-button ng-click="createTravel()" class="o_purple400 o_floatRight">
{{'Create_travel' | translate}} {{'Create_travel' | translate}}
</button>
</md-button>
</p> </p>
</div> </div>
</ion-content> </ion-content>

+ 5
- 4
www/templates/travels.html

@ -23,12 +23,13 @@
{{'Pull_from_top_to_refresh' | translate}} {{'Pull_from_top_to_refresh' | translate}}
</div> </div>
</div> </div>
<a ng-repeat="travel in travels | orderBy: 'date' | filter: search" class="item item-avatar" href="#/app/travels/{{travel._id}}">
<a ng-repeat="travel in travels | orderBy: 'date' | filter: search"
class="item item-avatar" href="#/app/travels/{{travel._id}}">
<img ng-src="img/{{travel.type}}.png"/> <img ng-src="img/{{travel.type}}.png"/>
<h2>{{travel.title}}</h2>
<h2 class="o_text_purple600">{{travel.title}}</h2>
<div class="item-note text-right"> <div class="item-note text-right">
<div class="positive">{{travel.date | date:"dd/MM"}}</div>
<div class="positive">{{travel.date | date:"HH:mm"}}h</div>
<div class="o_text_purple400">{{travel.date | date:"dd/MM"}}</div>
<div class="o_text_purple400">{{travel.date | date:"HH:mm"}}h</div>
<!--<div class="badge badge-calm">{{travel.owner}}</div>--> <!--<div class="badge badge-calm">{{travel.owner}}</div>-->
</div> </div>
<p> <p>

+ 3
- 2
www/templates/user.html

@ -34,13 +34,14 @@
</div> </div>
<div class="item item-body"> <div class="item item-body">
{{'current_publications_of' | translate}} {{user.username}}: {{'current_publications_of' | translate}} {{user.username}}:
<div class="positive">{{user.travels.length}} {{'publications' | translate}}</div>
<div class="o_text_purple600">{{user.travels.length}} {{'publications' | translate}}</div>
<a ng-repeat="travel in user.travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}"> <a ng-repeat="travel in user.travels | orderBy: 'date'" class="item item-avatar" href="#/app/travels/{{travel._id}}">
<img ng-src="img/{{travel.type}}.png"> <img ng-src="img/{{travel.type}}.png">
<h2>{{travel.title}} <h2>{{travel.title}}
<div class="item-note"> <div class="item-note">
<div class="positive">{{travel.date | date:"dd/MM/yyyy HH:mm a"}}</div>
<div class="o_text_purple400">{{travel.date | date:"HH:mm a"}}</div>
<div class="o_text_purple400">{{travel.date | date:"dd/MM/yyyy"}}</div>
</div> </div>
</h2> </h2>

+ 2
- 2
www/templates/users.html

@ -12,9 +12,9 @@
</div> </div>
</div> </div>
<a ng-repeat="user in users | orderBy: 'date'" class="item item-avatar" ng-href="#/app/users/{{user.username}}">
<a ng-repeat="user in users | orderBy: 'date'" class="item item-avatar" ng-href="#/app/users/{{user._id}}">
<img ng-src="{{user.avatar}}"> <img ng-src="{{user.avatar}}">
<h2>{{user.username}}</h2>
<h2 class="o_text_purple600">{{user.username}}</h2>
<p> <p>
{{user.description}} {{user.description}}
</p> </p>

Loading…
Cancel
Save