Git Product home page Git Product logo

theming-contest's Introduction

Sencha App Theming Contest

Requirements

Getting started with Feed Viewer App

  • Create a workspace
sencha -sdk {path/to/Ext-JS-SDK}  generate workspace theming-workspace
cd theming-workspace/
  • Fork/Clone/Download Feed Viewer sample application on this github page and unzip it in theming-workspace

  • Build the Feed Viewer sample application

cd theming-contest-master
delete directory .sencha/workspace (to use theming-workspace)
sencha app build development
  • Start web server and watch changes

    For feedviewer app using classic toolkit, run

    sencha app watch classic
    

    For feedviewer app using modern toolkit, run

    sencha app watch modern
    
  • View the Feedviewer sample app in browser with platform tag. It will show view with classic toolkit

http://localhost:1841/theming-contest-master/?platformTags=fashion:true
  • To view the modern toolkit based view, in Chrome developer tools, toggle device mode icon and select mobile phone

Connect Feed Viewer app to Sencha Inspector

Follow steps in the document: http://docs.sencha.com/tools/sencha_inspector/inspecting_desktop_applications.html

One quick way to inspect your Feedviewer sample app is to use bookmarklet. To add bookmarklet in your browser,

  • Open Inspector app, click on the button "Quick connect an app with Bookmarklet"
  • Drag the blue "Sencha Inspector bookmarklet" button to your browser bookmarks bar
  • Now open feedviewer sample app in your browser and click on the bookmarklet in bookmarks bar.
  • You should see feedviewer app link in Inspector.
  • Click on the link and go to Theme tab to change Sass variables

Create your Custom Theme

  • Generate custom theme called “my-contest-theme” in theming-workspace/packages/local/my-contest-theme
From theming-contest-master directory
sencha generate theme my-contest-theme
  • Extend custom theme “my-contest-theme” from "theme-triton".
In theming-workspace/packages/local/my-contest-theme/package.json

"extend": "theme-triton",
  • Use “my-contest-theme” in the feed viewer app In the app.json file, change to "theme": "my-contest-theme". Optionally uncomment “save” to use Sencha Inspector changed Sass variables in save.json file. The resulting changes in app.json will look like
app.json

    "builds": {
        "classic": {
            "toolkit": "classic",
            "theme": "my-contest-theme",
            "sass": {
                "save": "classic/sass/save.json"
            }
        },

        "modern": {
            "toolkit": "modern",
            "theme": "my-contest-theme",
            "sass": {
                "save": "modern/sass/save.json"
            }
        }
    }
  • Copy changes from the Inspector (or save.json file) to custom theme.
E.g. Add component variable $base-color: #639000; in
{path/to/theming-workspace}/packages/local/my-contest-theme/sass/var/Component.scss
  • Create unique components with Ext JS UIs (CSS mixins).

Submit your contest entry

Send us zipped file of your workspace containing your version of the Feed Viewer sample application as well as custom themes at [email protected]. Please do not include ext directory in the zipped file. All entries must be received by September 15, 2015.

Resources

Any Questions?

If you have any additional questions about the contest, please send those to contest forum at [Sencha Contest Forum] (https://www.sencha.com/forum/forumdisplay.php?137-Sencha-Contests)

theming-contest's People

Contributors

adwankar avatar dongryphon avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.