-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1830 from cb1kenobi/timob-8266
[TIMOB-8266] Organized the splash screen assets and added some quick and dirty splash docs
- Loading branch information
Showing
13 changed files
with
89 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
These startup images are used by iPhone and iPad apps that are installed to the | ||
home screen. These images are displayed before the splash screen is displayed. | ||
|
||
If you want to create a new splash screen, it is recommended that you start by | ||
modifying the files in the adjacent "splash" folder, then take screenshots of | ||
device, crop, and save into this directory. This is the best way to avoid visual | ||
artifacts when the app transitions from the Apple startup images to the splash | ||
screen assets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
This folder contains assets to make the startup splash screen assets. Splash | ||
screens are made up of HTML and CSS. This allows you the flexibility to | ||
customize your splash screen to fit a variety of screen sizes and orientations. | ||
|
||
|
||
splash.html | ||
----------- | ||
Contains an HTML fragment that is inserted into a div tag with an id="splash". | ||
You can choose to leave this file empty. You can put <script> tags in this file, | ||
though it is not recommended. | ||
|
||
Currently, the HTML code is NOT minified before being inserted into the page. | ||
|
||
|
||
splash.css | ||
---------- | ||
Contains the styles used to control the display of the HTML. In addition to | ||
styling the default splash div, you can style other HTML elements. | ||
|
||
One advantage of using CSS background images in your splash screen is the images | ||
will be inlined in the CSS using data: URIs. It's best to keep the size of your | ||
images as small as possible. You can use PNG, JPG, or GIF images. You should use | ||
an image optimization tool to remove unnecessary meta data from the images such | ||
as smushit.com or crushpng. | ||
|
||
It is recommended that you develop your splash screen on an iPhone-sized screen | ||
so that you make your splash screen look good on small screens. | ||
|
||
Additionally, it is recommended that you use CSS media queries to tweak the | ||
layout for various screen sizes. | ||
|
||
The CSS code is minified when your mobile web application is packaged. | ||
|
||
|
||
Apple Startup Images | ||
-------------------- | ||
After crafting your startup screen, it is recommended that you: | ||
|
||
1) Create a sample application with an empty app.js | ||
2) Run your sample app in both the iphone and ipad simulator | ||
3) Take screenshots of your splash screen in both portrait and landscape | ||
4) Crop the screenshots to remove the status bar from the top | ||
5) Save the images in the Resources/mobileweb/apple_startup_images directory | ||
|
||
These steps are the best way to avoid visual artifacts when the app transitions | ||
from the Apple startup images to the splash screen assets. | ||
|
||
It is recommended you save these images in the JPG format so that these images | ||
download faster. |
File renamed without changes
File renamed without changes.
Empty file.
File renamed without changes