
I wanted to play with Sencha Touch the other night and built out a simple portfolio. This app can be downloaded from my github account.
I will only display the JS code that makes the entire Sencha app, you can view the css, and html from the download.
Sencha Touch Code
Ext.application({
name: 'Aldo',
launch: function(){
Ext.create("Ext.TabPanel",{
fullscreen: true,
tabBarPosition: 'top',
ui: 'dark',
items:[{
title: "Home",
xtype: "panel",
scrollable: true,
iconCls: 'home',
cls: 'home',
html: [
'<div id="header">',
'<div id="logo"></div>',
'<p class="tagline">Hi, I\'m Aldo Lugo a Front-End Developer<br /> and Designer from Dallas, Texas</p>',
'</div>',
'<div id="content">',
'<p style="padding-bottom:5px;"><strong style="font-weight:bold;margin-bottom:5px;">About Me</strong><br />',
'<p>I work at OneTechnologies. I strive to design beautiful, accessible, interfaces which enable users to accomplish their goals as effortlessly as possible.</p> <br />',
'<p>I specialize in standards-based HTML, CSS and JavaScript web development. Each website I develop is built to be search engine friendly, using the latest development principles and techniques.</p><br /><br />',
'<p style="padding-bottom:5px;"><strong style="font-weight:bold;margin-bottom:5px;">The Skills</strong><br />',
'<ul class="checklist"><li><span>User Interface Design</span></li><li><span>Usability</span></li><li><span>Mobile Design & Development</span></li><li><span>jQuery / jQuery Mobile / Javascript</span></li><li><span>Progressive Enhancement</span></li><li><span>HTML5 & CSS3</span></li><li><span>Sencha Touch</span></li><li><span>Cross Browser Support</span></li></ul>',
'<p style="padding-bottom:5px;"><strong style="font-weight:bold;">Contact Me</strong><br />',
'<p><strong>Email:</strong> <a href="mailto:aldo@aldomatic.com" class="ui-link" style="color:#3E7791;font-weight:bold;position:relative;z-index:100;">aldo@aldomatic.com</a><br />',
'<strong>Phone:</strong> <a href="callto:214.475.6999" style="color:#3E7791;font-weight:bold;z-index:101;position:relative;">214.475.6999</a><p>',
'</p>',
'</div>'
].join("")
},{
title: "Portfolio",
xtype: "dataview",
iconCls: 'star',
cls: 'port',
loadingText:'Loading...',
scrollable: true,
store: {
autoLoad: true,
fields: ['title','description', 'img', 'status'],
proxy: {
type: 'jsonp',
url: 'portfolio.json',
reader: {
type: 'json',
root: 'portfolio'
}
}
},
itemTpl: '<div class="portfolio"><h3>{title}</h3><img src="{img}" /><br /><p class="status">Status: {status}</p><p class="des">{description}</p></div>'
},{
title: "@aldomatic",
xtype: "dataview",
cls: 'port',
iconCls: 'star',
loadingText:'Loading...',
scrollable: true,
store: {
autoLoad: true,
fields: ['created_at','text', 'profile_image_url'],
proxy: {
type: 'jsonp',
url: 'http://search.twitter.com/search.json?q=aldomatic',
reader: {
type: 'json',
root: 'results'
}
}
},
itemTpl: '<div class="tweet"><img src="{profile_image_url}" style="float:left;margin-right:10px;" /><p>{text}<br /></p><div style="clear: both"></div><span style="font-size:11px;color:#999;">Tweeted: {created_at}</span></div>'
}
]
});
}
});
View App Note: The app is built to be used on mobile device.
Github Download