Browse Source

login

master
arnaucode 8 years ago
parent
commit
842ad87d70
45 changed files with 135 additions and 61 deletions
  1. +44
    -43
      config.xml
  2. BIN
      res/drawable-land-hdpi/screen.png
  3. BIN
      res/drawable-land-ldpi/screen.png
  4. BIN
      res/drawable-land-mdpi/screen.png
  5. BIN
      res/drawable-land-xhdpi/screen.png
  6. BIN
      res/drawable-land-xxhdpi/screen.png
  7. BIN
      res/drawable-land-xxxhdpi/screen.png
  8. BIN
      res/drawable-port-hdpi/screen.png
  9. BIN
      res/drawable-port-ldpi/screen.png
  10. BIN
      res/drawable-port-mdpi/screen.png
  11. BIN
      res/drawable-port-xhdpi/screen.png
  12. BIN
      res/drawable-port-xxhdpi/screen.png
  13. BIN
      res/drawable-port-xxxhdpi/screen.png
  14. BIN
      res/mipmap-hdpi/icon.png
  15. BIN
      res/mipmap-ldpi/icon.png
  16. BIN
      res/mipmap-mdpi/icon.png
  17. BIN
      res/mipmap-xhdpi/icon.png
  18. BIN
      res/mipmap-xxhdpi/icon.png
  19. BIN
      res/mipmap-xxxhdpi/icon.png
  20. BIN
      resources/android/icon/drawable-hdpi-icon.png
  21. BIN
      resources/android/icon/drawable-ldpi-icon.png
  22. BIN
      resources/android/icon/drawable-mdpi-icon.png
  23. BIN
      resources/android/icon/drawable-xhdpi-icon.png
  24. BIN
      resources/android/icon/drawable-xxhdpi-icon.png
  25. BIN
      resources/android/icon/drawable-xxxhdpi-icon.png
  26. BIN
      resources/android/splash/drawable-land-hdpi-screen.png
  27. BIN
      resources/android/splash/drawable-land-ldpi-screen.png
  28. BIN
      resources/android/splash/drawable-land-mdpi-screen.png
  29. BIN
      resources/android/splash/drawable-land-xhdpi-screen.png
  30. BIN
      resources/android/splash/drawable-land-xxhdpi-screen.png
  31. BIN
      resources/android/splash/drawable-land-xxxhdpi-screen.png
  32. BIN
      resources/android/splash/drawable-port-hdpi-screen.png
  33. BIN
      resources/android/splash/drawable-port-ldpi-screen.png
  34. BIN
      resources/android/splash/drawable-port-mdpi-screen.png
  35. BIN
      resources/android/splash/drawable-port-xhdpi-screen.png
  36. BIN
      resources/android/splash/drawable-port-xxhdpi-screen.png
  37. BIN
      resources/android/splash/drawable-port-xxxhdpi-screen.png
  38. BIN
      resources/icon.png
  39. BIN
      resources/splash.png
  40. +56
    -0
      www/css/style.css
  41. BIN
      www/fonts/Pacifico.ttf
  42. BIN
      www/fonts/Thinking_of_Betty.ttf
  43. BIN
      www/img/userProfileBackground_old.png
  44. +33
    -16
      www/templates/login.html
  45. +2
    -2
      www/templates/newTravel.html

+ 44
- 43
config.xml

@ -1,48 +1,49 @@
<?xml version='1.0' encoding='utf-8'?>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.app751563" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>CarsInCommon</name>
<description>
<name>CarsInCommon</name>
<description>
CarSharing app, for collective use.
</description>
<author email="mail@mail.com" href="http://arnaucode.com/">
<author email="mail@mail.com" href="http://arnaucode.com/">
ArnauCode
</author>
<content src="index.html" />
<access origin="*" />
<preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="FadeSplashScreenDuration" value="500" />
<preference name="android-minSdkVersion" value="16" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashScreen" value="screen" />
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" />
</feature>
<platform name="android">
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="~1.3.1" />
<plugin name="cordova-plugin-device" spec="~1.1.4" />
<plugin name="cordova-plugin-splashscreen" spec="~4.0.1" />
<plugin name="cordova-plugin-console" spec="~1.0.5" />
<plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
</widget>
<content src="index.html"/>
<access origin="*"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="SplashScreenDelay" value="3000"/>
<preference name="FadeSplashScreenDuration" value="500"/>
<preference name="android-minSdkVersion" value="16"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="SplashScreen" value="screen"/>
<feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar"/>
</feature>
<platform name="android">
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
<icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
<icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
<icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
<splash src="resources/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi"/>
<splash src="resources/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi"/>
<splash src="resources/android/splash/drawable-land-hdpi-screen.png" density="land-hdpi"/>
<splash src="resources/android/splash/drawable-land-xhdpi-screen.png" density="land-xhdpi"/>
<splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/>
<splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/>
<splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/>
<splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/>
<splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/>
<splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/>
<splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>
<splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
</platform>
<plugin name="cordova-plugin-whitelist" spec="~1.3.1"/>
<plugin name="cordova-plugin-device" spec="~1.1.4"/>
<plugin name="cordova-plugin-splashscreen" spec="~4.0.1"/>
<plugin name="cordova-plugin-console" spec="~1.0.5"/>
<plugin name="ionic-plugin-keyboard" spec="~2.2.1"/>
<icon src="resources/android/icon/drawable-xhdpi-icon.png"/>
</widget>

BIN
res/drawable-land-hdpi/screen.png

Before After
Width: 800  |  Height: 480  |  Size: 13 KiB Width: 800  |  Height: 480  |  Size: 297 KiB

BIN
res/drawable-land-ldpi/screen.png

Before After
Width: 320  |  Height: 200  |  Size: 3.7 KiB Width: 320  |  Height: 240  |  Size: 82 KiB

BIN
res/drawable-land-mdpi/screen.png

Before After
Width: 480  |  Height: 320  |  Size: 6.9 KiB Width: 480  |  Height: 320  |  Size: 144 KiB

BIN
res/drawable-land-xhdpi/screen.png

Before After
Width: 1280  |  Height: 720  |  Size: 39 KiB Width: 1280  |  Height: 720  |  Size: 587 KiB

BIN
res/drawable-land-xxhdpi/screen.png

Before After
Width: 1600  |  Height: 960  |  Size: 58 KiB Width: 1600  |  Height: 960  |  Size: 886 KiB

BIN
res/drawable-land-xxxhdpi/screen.png

Before After
Width: 1920  |  Height: 1280  |  Size: 87 KiB Width: 1920  |  Height: 1280  |  Size: 1.3 MiB

BIN
res/drawable-port-hdpi/screen.png

Before After
Width: 480  |  Height: 800  |  Size: 13 KiB Width: 480  |  Height: 800  |  Size: 237 KiB

BIN
res/drawable-port-ldpi/screen.png

Before After
Width: 200  |  Height: 320  |  Size: 1.0 KiB Width: 240  |  Height: 320  |  Size: 65 KiB

BIN
res/drawable-port-mdpi/screen.png

Before After
Width: 320  |  Height: 480  |  Size: 5.1 KiB Width: 320  |  Height: 480  |  Size: 112 KiB

BIN
res/drawable-port-xhdpi/screen.png

Before After
Width: 720  |  Height: 1280  |  Size: 30 KiB Width: 720  |  Height: 1280  |  Size: 475 KiB

BIN
res/drawable-port-xxhdpi/screen.png

Before After
Width: 960  |  Height: 1600  |  Size: 40 KiB Width: 960  |  Height: 1600  |  Size: 704 KiB

BIN
res/drawable-port-xxxhdpi/screen.png

Before After
Width: 1280  |  Height: 1920  |  Size: 63 KiB Width: 1280  |  Height: 1920  |  Size: 989 KiB

BIN
res/mipmap-hdpi/icon.png

Before After
Width: 72  |  Height: 72  |  Size: 2.8 KiB Width: 72  |  Height: 72  |  Size: 3.4 KiB

BIN
res/mipmap-ldpi/icon.png

Before After
Width: 36  |  Height: 36  |  Size: 1.1 KiB Width: 36  |  Height: 36  |  Size: 1.5 KiB

BIN
res/mipmap-mdpi/icon.png

Before After
Width: 48  |  Height: 48  |  Size: 1.8 KiB Width: 48  |  Height: 48  |  Size: 1.9 KiB

BIN
res/mipmap-xhdpi/icon.png

Before After
Width: 96  |  Height: 96  |  Size: 4.2 KiB Width: 96  |  Height: 96  |  Size: 4.8 KiB

BIN
res/mipmap-xxhdpi/icon.png

Before After
Width: 144  |  Height: 144  |  Size: 7.6 KiB Width: 144  |  Height: 144  |  Size: 7.2 KiB

BIN
res/mipmap-xxxhdpi/icon.png

Before After
Width: 192  |  Height: 192  |  Size: 12 KiB Width: 192  |  Height: 192  |  Size: 9.7 KiB

BIN
resources/android/icon/drawable-hdpi-icon.png

Before After
Width: 72  |  Height: 72  |  Size: 2.8 KiB Width: 72  |  Height: 72  |  Size: 3.4 KiB

BIN
resources/android/icon/drawable-ldpi-icon.png

Before After
Width: 36  |  Height: 36  |  Size: 1.1 KiB Width: 36  |  Height: 36  |  Size: 1.5 KiB

BIN
resources/android/icon/drawable-mdpi-icon.png

Before After
Width: 48  |  Height: 48  |  Size: 1.8 KiB Width: 48  |  Height: 48  |  Size: 1.9 KiB

BIN
resources/android/icon/drawable-xhdpi-icon.png

Before After
Width: 96  |  Height: 96  |  Size: 4.2 KiB Width: 96  |  Height: 96  |  Size: 4.8 KiB

BIN
resources/android/icon/drawable-xxhdpi-icon.png

Before After
Width: 144  |  Height: 144  |  Size: 7.6 KiB Width: 144  |  Height: 144  |  Size: 7.2 KiB

BIN
resources/android/icon/drawable-xxxhdpi-icon.png

Before After
Width: 192  |  Height: 192  |  Size: 12 KiB Width: 192  |  Height: 192  |  Size: 9.7 KiB

BIN
resources/android/splash/drawable-land-hdpi-screen.png

Before After
Width: 800  |  Height: 480  |  Size: 13 KiB Width: 800  |  Height: 480  |  Size: 297 KiB

BIN
resources/android/splash/drawable-land-ldpi-screen.png

Before After
Width: 320  |  Height: 200  |  Size: 3.7 KiB Width: 320  |  Height: 240  |  Size: 82 KiB

BIN
resources/android/splash/drawable-land-mdpi-screen.png

Before After
Width: 480  |  Height: 320  |  Size: 6.9 KiB Width: 480  |  Height: 320  |  Size: 144 KiB

BIN
resources/android/splash/drawable-land-xhdpi-screen.png

Before After
Width: 1280  |  Height: 720  |  Size: 39 KiB Width: 1280  |  Height: 720  |  Size: 587 KiB

BIN
resources/android/splash/drawable-land-xxhdpi-screen.png

Before After
Width: 1600  |  Height: 960  |  Size: 58 KiB Width: 1600  |  Height: 960  |  Size: 886 KiB

BIN
resources/android/splash/drawable-land-xxxhdpi-screen.png

Before After
Width: 1920  |  Height: 1280  |  Size: 87 KiB Width: 1920  |  Height: 1280  |  Size: 1.3 MiB

BIN
resources/android/splash/drawable-port-hdpi-screen.png

Before After
Width: 480  |  Height: 800  |  Size: 13 KiB Width: 480  |  Height: 800  |  Size: 237 KiB

BIN
resources/android/splash/drawable-port-ldpi-screen.png

Before After
Width: 200  |  Height: 320  |  Size: 1.0 KiB Width: 240  |  Height: 320  |  Size: 65 KiB

BIN
resources/android/splash/drawable-port-mdpi-screen.png

Before After
Width: 320  |  Height: 480  |  Size: 5.1 KiB Width: 320  |  Height: 480  |  Size: 112 KiB

BIN
resources/android/splash/drawable-port-xhdpi-screen.png

Before After
Width: 720  |  Height: 1280  |  Size: 30 KiB Width: 720  |  Height: 1280  |  Size: 475 KiB

BIN
resources/android/splash/drawable-port-xxhdpi-screen.png

Before After
Width: 960  |  Height: 1600  |  Size: 40 KiB Width: 960  |  Height: 1600  |  Size: 704 KiB

BIN
resources/android/splash/drawable-port-xxxhdpi-screen.png

Before After
Width: 1280  |  Height: 1920  |  Size: 63 KiB Width: 1280  |  Height: 1920  |  Size: 989 KiB

BIN
resources/icon.png

Before After
Width: 1024  |  Height: 1024  |  Size: 59 KiB Width: 411  |  Height: 411  |  Size: 9.1 KiB

BIN
resources/splash.png

Before After
Width: 2208  |  Height: 2208  |  Size: 61 KiB Width: 2208  |  Height: 2208  |  Size: 362 KiB

+ 56
- 0
www/css/style.css

@ -8,6 +8,62 @@
.o_floatRight{
float: right;
}
.o_loginBackground{
height: 100%!important;
width: 100%;
min-height: auto;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
background-position: center;
background-image: url('../img/userProfileBackground.png');
text-align: center;
/*color: white;*/
/* Create the parallax scrolling effect */
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
color: #ffffff;
padding-top: 30%;
}
@font-face {
font-family: 'Thinking_of_Betty';
src: url('../fonts/Thinking_of_Betty.ttf');
}
.o_loginBackground h1{
color: #ffffff!important;
margin: 10px;
font-family: 'Thinking_of_Betty'
/*font-weight: bold;*/
}
.o_loginDivForm{
/*background: rgba(255, 255, 255, 0.2);*/
}
.o_loginInput{
background: rgba(255, 255, 255, 0.2);
padding:10px;
color: #ffffff;
border: 0px;
width: 80%;
font-size: 120%;
}
.o_loginInput::-webkit-input-placeholder{
color: rgba(255, 255, 255, 0.6);
}
.o_loginButton{
color: rgba(0, 0, 0, 0.8);
font-weight: bold;
margin: 10%;
}
.o_transparentBackground{
background: rgba(255, 255, 255, 0);
color: #ffffff;
}
.o_userProfileBackground{
min-height: 30%!important;
width: 100%;

BIN
www/fonts/Pacifico.ttf


BIN
www/fonts/Thinking_of_Betty.ttf


BIN
www/img/userProfileBackground_old.png

Before After
Width: 634  |  Height: 393  |  Size: 141 KiB

+ 33
- 16
www/templates/login.html

@ -1,22 +1,39 @@
<ion-modal-view>
<ion-content>
<img src="img/header.png" style="width:100%;"/>
<form ng-submit="doLogin()">
<div class="list padding">
<span class="item-note">v0.0.1</span>
<md-input-container class="md-block" flex-gt-sm>
<label>{{'Username' | translate}}</label>
<input ng-model="loginData.username">
</md-input-container>
<md-input-container class="md-block" flex-gt-sm>
<label>{{'Password' | translate}}</label>
<input ng-model="loginData.password" type="password">
</md-input-container>
<div>
<md-button class="o_purple100" ng-href="#/app/signup">{{'Signup' | translate}}</md-button>
<md-button class="o_purple300 o_floatRight" ng-click="doLogin()">{{'Login' | translate}}</md-button>
<div class="o_loginBackground">
<div class="o_loginDivForm">
<h1>Cars in Common</h1>
<span class="item-note">v0.0.1</span>
<br><br>
<p>
<i class="icon ion-person"></i>
<input ng-model="loginData.username" class="o_loginInput"
placeholder="{{'Username' | translate}}">
</p>
<br>
<p>
<i class="icon ion-locked"></i>
<input ng-model="loginData.password" class="o_loginInput"
placeholder="{{'Password' | translate}}" style="-webkit-text-security: disc;">
</p>
<br>
<p>
<a class="o_loginButton button button-block" ng-click="doLogin()">
{{'LOG IN' | translate}}
</a>
</p>
<!--<p>
<a class="o_loginButton button button-block" ng-href="#/app/signup">
{{'Signup' | translate}}
</a>
</p>-->
<div class="bar bar-footer o_transparentBackground">
<a class="button o_purple300 pull-right" ng-href="#/app/signup">
{{'SIGN UP' | translate}}
</a>
</div>
</div>
</form>
</div>
</ion-content>
</ion-modal-view>

+ 2
- 2
www/templates/newTravel.html

@ -6,11 +6,11 @@
</a>
<a href="#/app/askCar" class="item item-icon-left o_purple400">
<i class="icon ion-help"></i>
Ask for Car
Ask for Car (not yet)
</a>
<a href="#/app/askPackage" class="item item-icon-left o_purple300">
<i class="icon ion-ios-box"></i>
Ask for Package
Ask for Package (not yet)
</a>
</ion-content>
</ion-view>

Loading…
Cancel
Save