Skip to content

Commit 93d5b24

Browse files
Demos: New homepage. Fixes jquery-archive#6652.
1 parent 25ccf72 commit 93d5b24

File tree

3 files changed

+97
-3
lines changed

3 files changed

+97
-3
lines changed

demos/_assets/css/jqm-demos.css

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.jqm-demos .jqm-header {
55
background: #fff;
66
border-top: 4px solid #3eb249;
7-
border-bottom-color: #f5f5f5;
7+
border-bottom-color: #eee;
88
}
99
.jqm-demos .jqm-header h2 {
1010
padding: .4em 0 .1em;
@@ -131,6 +131,47 @@
131131
font-weight: 400;
132132
}
133133

134+
/* Homepage */
135+
.jqm-home > .jqm-content > img {
136+
width: 400px;
137+
max-width: 100%;
138+
display: block;
139+
margin: 2.5em 0;
140+
}
141+
.jqm-home .ui-grid-a {
142+
margin: 2.5em -.5em -.5em;
143+
}
144+
.jqm-block-content {
145+
margin: .5em;
146+
padding: 1em;
147+
background: #fff;
148+
border: 1px solid #eee;
149+
-webkit-border-radius: .3125em;
150+
border-radius: .3125em;
151+
font-family: 'Open Sans', sans-serif;
152+
}
153+
.jqm-block-content h3 {
154+
font-size: 1.5em;
155+
font-weight: 300;
156+
color: #3eb249;
157+
border-bottom: 1px solid #ddd;
158+
padding-bottom: .25em;
159+
margin: 0 0 .5em;
160+
}
161+
.jqm-block-content p {
162+
font-size: 1.1em;
163+
font-weight: 300;
164+
line-height: 1.4;
165+
margin: .7em 0;
166+
}
167+
.jqm-block-content p:last-child {
168+
margin-bottom: 0;
169+
}
170+
.jqm-block-content a:link {
171+
font-weight: 300;
172+
text-decoration: none;
173+
}
174+
134175
/* Code */
135176
.jqm-content pre,
136177
.jqm-content code {
@@ -385,6 +426,9 @@
385426
left: -17em;
386427
right: 17em;
387428
}
429+
.jqm-block-content {
430+
min-height: 18em;
431+
}
388432
}
389433

390434
/* View source popup */

demos/_assets/img/devices.png

196 KB
Loading

demos/index.php

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,59 @@
2626

2727
<h1>Demos</h1>
2828

29-
<p>jQuery Mobile is a touch-optimized HTML5 UI framework designed to make responsive web sites and apps that are accessible on all smartphone, tablet and desktop devices.</p>
29+
<p><strong>jQuery Mobile is a touch-optimized HTML5 UI framework designed to make responsive web sites and apps that are accessible on all smartphone, tablet and desktop devices.</strong></p>
3030

31-
<p>For technical info, visit the <a href="http://api.jquerymobile.com" title="jQuery Mobile API documentation" target="_blank">API documentation</a>. Downloads and info about the project can be found on <a href="http://jquerymobile.com" title="jQuery Mobile web site" target="_blank">jquerymobile.com</a>.</p>
31+
<img src="_assets/img/devices.png">
32+
33+
<p>New to jQuery Mobile? Get started by reading this <a href="intro/" data-ajax="false">introduction</a>. For technical info, visit the <a href="http://api.jquerymobile.com" title="jQuery Mobile API documentation" target="_blank">API documentation</a>. Downloads and info about the project can be found on <a href="http://jquerymobile.com" title="jQuery Mobile web site" target="_blank">jquerymobile.com</a>.</p>
34+
35+
<div class="ui-grid-a ui-responsive">
36+
<div class="ui-block-a">
37+
<div class="jqm-block-content">
38+
<h3>Pages &amp; Navigation</h3>
39+
40+
<p><a href="pages/" data-ajax="false">Pages</a></p>
41+
<p><a href="navigation/" data-ajax="false">Navigation</a></p>
42+
<p><a href="loader/" data-ajax="false">Loader</a></p>
43+
<p><a href="transitions/" data-ajax="false">Transitions</a></p>
44+
</div>
45+
</div>
46+
<div class="ui-block-b">
47+
<div class="jqm-block-content">
48+
<h3>CSS Framework</h3>
49+
50+
<p><a href="theme-default/" data-ajax="false">Theming</a></p>
51+
<p><a href="button-markup/" data-ajax="false">Buttons</a></p>
52+
<p><a href="icons/" data-ajax="false">Icons</a></p>
53+
<p><a href="grids/" data-ajax="false">Grids</a></p>
54+
<p><a href="../body-bar-classes/" data-ajax="false">Body and bar classes</a></p>
55+
</div>
56+
</div>
57+
<div class="ui-block-a">
58+
<div class="jqm-block-content">
59+
<h3>Widgets</h3>
60+
61+
<p><a href="toolbar/" data-ajax="false">Toolbar</a>, <a href="navbar/" data-ajax="false">Navbar</a></p>
62+
<p><a href="tabs/" data-ajax="false">Tabs</a>, <a href="panel/" data-ajax="false">Panel</a>, <a href="popup/" data-ajax="false">Popup</a></p>
63+
<p><a href="listview/" data-ajax="false">Listview</a></p>
64+
<p><a href="collapsible/" data-ajax="false">Collapsible</a>, <a href="collapsibleset/" data-ajax="false">Collapsible set</a></p>
65+
<p><a href="table-reflow/" data-ajax="false">Table Reflow</a>, <a href="table-column-toggle/" data-ajax="false">Table Column Toggle</a></p>
66+
<p><a href="filterable/" data-ajax="false">Filterable</a></p>
67+
</div>
68+
</div>
69+
<div class="ui-block-b">
70+
<div class="jqm-block-content">
71+
<h3>Form widgets</h3>
72+
73+
<p><a href="checkboxradio-checkbox/" data-ajax="false">Checkboxes</a>, <a href="checkboxradio-radio/" data-ajax="false">Radio buttons</a></p>
74+
<p><a href="selectmenu/" data-ajax="false">Selectmenu</a>, <a href="selectmenu-custom/" data-ajax="false">Custom menu</a></p>
75+
<p><a href="flipswitch/" data-ajax="false">Flipswitch</a></p>
76+
<p><a href="slider/" data-ajax="false">Slider</a>, <a href="rangeslider/" data-ajax="false">Rangeslider</a></p>
77+
<p><a href="button/" data-ajax="false">Input button</a></p>
78+
<p><a href="controlgroup/" data-ajax="false">Controlgroup</a></p>
79+
</div>
80+
</div>
81+
</div>
3282

3383
</div><!-- /content -->
3484

0 commit comments

Comments
 (0)