diff --git a/bin/templates/project/assets/www/css/index.css b/bin/templates/project/assets/www/css/index.css new file mode 100644 index 00000000..c869f872 --- /dev/null +++ b/bin/templates/project/assets/www/css/index.css @@ -0,0 +1,100 @@ +html, +body { + height:100%; + font-size:12px; + width:100%; +} + +html { + display:table; +} + +body { + background-color:#A7A7A7; + background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); + background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); + background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%); + background-image:-webkit-gradient( + linear, + left top, + left bottom, + color-stop(0, #A7A7A7), + color-stop(0.51, #E4E4E4) + ); + display:table-cell; + font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif; + text-transform:uppercase; + vertical-align:middle; +} + +.app { + background-image:url(../img/cordova.png); + background-repeat:no-repeat; + margin:0px auto; + width:275px; +} + +h1 { + font-size:2em; + font-weight:300; + margin:0px; + overflow:visible; + padding:0px; + text-align:center; +} + +.status { + background-color:#333333; + border-radius:4px; + -webkit-border-radius:4px; + color:#FFFFFF; + font-size:1em; + margin:0px auto; + padding:2px 10px; + text-align:center; + width:100%; + max-width:175px; +} + +.status.complete { + background-color:#4B946A; +} + +.hide { + display:none; +} + +@keyframes fade { + from { opacity: 1.0; } + 50% { opacity: 0.4; } + to { opacity: 1.0; } +} + +@-webkit-keyframes fade { + from { opacity: 1.0; } + 50% { opacity: 0.4; } + to { opacity: 1.0; } +} + +.blink { + animation:fade 3000ms infinite; + -webkit-animation:fade 3000ms infinite; +} + +/* portrait */ +/* @media screen and (max-aspect-ratio: 1/1) */ +.app { + background-position:center top; + height:100px; /* adds enough room for text */ + padding:180px 0px 0px 0px; /* background height - shadow offset */ +} + +/* lanscape (when wide enough) */ +@media screen and (min-aspect-ratio: 1/1) and (min-width:445px) { + .app { + background-position:left center; + height:140px; /* height + padding = background image size */ + padding-left:170px; /* background width */ + padding-top:60px; /* center the text */ + } +} diff --git a/bin/templates/project/assets/www/img/cordova.png b/bin/templates/project/assets/www/img/cordova.png new file mode 100644 index 00000000..e8169cf7 Binary files /dev/null and b/bin/templates/project/assets/www/img/cordova.png differ diff --git a/bin/templates/project/assets/www/index.html b/bin/templates/project/assets/www/index.html index de69cb12..f5cf6213 100644 --- a/bin/templates/project/assets/www/index.html +++ b/bin/templates/project/assets/www/index.html @@ -1,60 +1,24 @@ - - + - - - - PhoneGap - - - - - - -

Welcome to Cordova!

-

this file is located at assets/www/index.html

-
-

Platform:  , Version:  

-

UUID:  , Name:  

-

Width:  , Height:   - , Color Depth:

-
-
-
X:
 
-
Y:
 
-
Z:
 
-
- Toggle Accelerometer - Get Location - Call 411 - Beep - Vibrate - Get a Picture - Get Phone's Contacts - Check Network -
-
Compass Heading:
Off
-
- Toggle Compass - - + + + + + + Hello Cordova + + +
+

Apache Cordova™

+
+ + +
+
+ + + + diff --git a/bin/templates/project/assets/www/js/index.js b/bin/templates/project/assets/www/js/index.js new file mode 100644 index 00000000..f3894b8a --- /dev/null +++ b/bin/templates/project/assets/www/js/index.js @@ -0,0 +1,15 @@ +var app = { + initialize: function() { + this.bind(); + }, + bind: function() { + document.addEventListener('deviceready', this.deviceready, false); + }, + deviceready: function() { + app.report('deviceready'); + }, + report: function(id) { + document.querySelector('#' + id + ' .pending').classList.add('hide'); + document.querySelector('#' + id + ' .complete').classList.remove('hide'); + } +};