Repository navigation
Expand file tree
/
Copy pathHomeView.mxml
More file actions
executable file
·194 lines (156 loc) · 8.29 KB
/
Copy pathHomeView.mxml
File metadata and controls
executable file
·194 lines (156 loc) · 8.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
This component is primarily static and is only meant to show what other
pages of the store could look like.
Note that this page was put together in the Design view so you'll see more
hard coded locations and sizes.
Also note when working with a Canvas that using the constraint styles
(e.g., left, top, right, bottom) can provide better layout predictability than
using x and y, especially when percentage widths and heights are used.
Width and height are hard-coded in the root tag to help the Design view.
-->
<js:Container xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/flexjs/basic"
xmlns="*" width="990" height="550"
initComplete="updateMapImage()">
<fx:Script>
<![CDATA[
import org.apache.flex.core.ValuesManager;
import org.apache.flex.html.SimpleAlert;
public function updateMapImage():void
{
mapImage.source = ValuesManager.valuesImpl.getValue(mapCanvas, 'dottedMap');
}
]]>
</fx:Script>
<js:beads>
<js:ContainerDataBinding />
</js:beads>
<js:HContainer width="100%" height="100%" y="0" x="0" className="colorPanel">
<js:VContainer width="230" height="100%">
<js:Container width="100%" height="100%">
<js:Container height="60" className="homeSection">
<js:style>
<js:SimpleCSSStyles backgroundColor="#ebebe9" left="10" top="10" right="10"/>
</js:style>
<js:Label style="left:10;top:10" text="Search Developers" height="22" className="sectionHeader" />
<js:TextButton style="left:168;top:30" text="Go" width="27" height="20" className="glass" click="SimpleAlert.show('This feature is not implemented in this sample', 'Go')"/>
<js:TextInput style="left:10;top:30" height="20" width="150"/>
</js:Container>
<js:Container height="280" className="homeSection">
<js:style>
<js:SimpleCSSStyles backgroundColor="#ffffff" left="10" top="78" right="10" />
</js:style>
<js:VContainer width="100%" height="100%">
<js:style>
<js:SimpleCSSStyles left="10" top="10" />
</js:style>
<js:Label text="Flex Experts That Can Help You" className="sectionHeader"/>
<js:HRule height="5" width="187" style="marginLeft:0"/>
<js:Label text="General" className="homeProgramHeader"/>
<js:Label text="BlazeDS Experts" style="fontSize:9"/>
<js:Spacer height="8" width="100%"/>
<js:Label text="Server-side" className="homeProgramHeader"/>
<js:Label text="Java, PHP Developers" style="fontSize:9"/>
<js:Spacer height="8" width="100%"/>
<js:Label text="Mobile" className="homeProgramHeader"/>
<js:Label text="Android, IOS and more" style="fontSize:9"/>
<js:Spacer height="8" width="100%"/>
<js:Label text="Students" className="homeProgramHeader"/>
<js:Label text="Free Assistance" style="fontSize:9"/>
<js:Spacer height="8" width="100%"/>
</js:VContainer>
</js:Container>
<js:Container height="174" className="homeSection">
<js:style>
<js:SimpleCSSStyles backgroundColor="#ebebe9" left="10" top="366" right="10" />
</js:style>
<js:VContainer width="100%" height="100%">
<js:style>
<js:SimpleCSSStyles left="10" top="10" />
</js:style>
<js:Label text="Manage My Account" className="sectionHeader"/>
<js:Label text="Phone Number"/>
<js:HContainer width="100%" height="25" >
<js:style>
<js:SimpleCSSStyles verticalAlign="middle" />
</js:style>
<js:TextInput height="20" width="40"/>
<js:HRule width="8" height="2"/>
<js:TextInput height="20" width="40"/>
<js:HRule width="8" height="2"/>
<js:TextInput height="20" width="40"/>
</js:HContainer>
<js:Label text="Password"/>
<js:TextInput height="20"/>
<js:Spacer height="8" width="100%"/>
<js:CheckBox text="Remember my phone number" selected="true"/>
<js:Spacer height="8" width="100%"/>
<js:TextButton text="Login" className="glass" height="20" width="55" click="SimpleAlert.show('This feature is not implemented in this sample', 'Login')"/>
</js:VContainer>
</js:Container>
</js:Container>
</js:VContainer>
<js:VContainer width="750" height="100%">
<js:Container width="100%" height="100%">
<!-- can't use binding to set the mapImage source because the style isn't available early enough -->
<js:Container id="mapCanvas" height="35%" className="homeMap">
<js:style>
<js:SimpleCSSStyles left="0" right="10" top="10" />
</js:style>
<js:Image id="mapImage" width="487" height="100%" alpha="1.0" style="left:10;top:10"/>
<js:Label y="110" text="US Developers . Flex . FlexJS" width="95%" height="40" style="margin:auto;fontWeight:'bold';fontSize:22;color:#ffffff;fontFamily:'Arial';textAlign:'center'"/>
<js:Label text="Learn More >>" width="95" style="fontSize:12;fontFamily:'Arial';bottom:10;right:10"/>
<js:Label text="$60/hr" style="color:#ffffff;fontWeight:'bold';fontFamily:'Arial';fontSize:20;right:10:top:10"/>
<js:Label text="Rates as low as" x="551" y="16" style="fontSize:12"/>
</js:Container>
<js:Container height="330" >
<js:style>
<js:SimpleCSSStyles backgroundColor="#ffffff" borderStyle="solid" bottom="10" right="10" left="0" /> <!-- cornerRadius="4" -->
</js:style>
<js:Label style="left:10;top:10" text="Featured Developers" width="173" height="25" className="sectionHeader"/>
<js:HContainer style="left:10;top:43" width="100%" height="100%">
<js:VContainer width="33%" height="100%">
<js:Container width="100%">
<js:Image id="image1" source="assets/akotter.jpg" style="margin:auto;verticalCenter:0"/>
</js:Container>
<js:Container width="100%">
<js:Label text="Annette Kotter" id="feat_prod_1" style="margin:auto;fontWeight:'bold';fontSize:12"/>
</js:Container>
</js:VContainer>
<js:VContainer width="33%" height="100%">
<js:Container width="100%">
<js:Image id="image2" style="margin:auto;verticalCenter:0" source="assets/bcrater.jpg"/>
</js:Container>
<js:Container width="100%">
<js:Label text="Ben Crater" id="feat_prod_2" style="margin:auto;fontWeight:'bold';fontSize:12"/>
</js:Container>
</js:VContainer>
<js:VContainer width="33%" height="100%">
<js:Container width="100%">
<js:Image id="image3" style="margin:auto;verticalCenter:0" source="assets/jproctor.jpg"/>
</js:Container>
<js:Container width="100%">
<js:Label text="Jane Proctor" id="feat_prod_3" style="margin:auto;fontWeight:'bold';fontSize:12"/>
</js:Container>
</js:VContainer>
</js:HContainer>
</js:Container>
</js:Container>
</js:VContainer>
</js:HContainer>
</js:Container>