amadeusproject / uxdesign-html

6 stars 3 forks source link

uxdesign-html

Project that fill @amadeuslms[1] with new UI and UX ideas and discussions.

Frameworks/Libs Used

Rules of the game

Patterns for Folders

  1. html: All .html files are stored inside html/screens/app_folder, basically, as we are serving a django project, we think about where this html will be a better fit, example: "auth_user.html" will be on "html/screens/user" because it is best place it can be.

    • 1.1. components: fine grained component html. One file for each component.

      • 1.1.1. base: UI base components (navbar, breadcrumbs...).
      • 1.1.2. cards: card views related with content. To be used to compose pages.
      • 1.1.3. contextual: cards related with dynamic actions and things that need attention (displayed in rigth side).
      • 1.1.4. menus: left-side menus (almost static content) that have recurrent actions for each page.
    • 1.2. screens: the final screens composed using components.

    • 1.3. templates: page templates to use as base for new pages creation.

      • 1.3.1. default_page.html: the file to copy when starting a new page or refactoring one.
      • 1.3.2. head.html: prametric header (inclusions of css & js files).
  2. assets: The assets folder, with all non-html things.

    • 2.1. css: All .css files that are used.

      • 2.1.1. vendor: all external css libs used into project.
    • 2.2. fonts: the font files used in the system.

    • 2.3. img: all image files that are used.

      • 2.3.1. icons: all custom icons used in the project.
      • 2.3.2. images: all images used as asset (like photos or graphics and charts).
      • 2.3.3. logos: logo images.
    • 2.4. js: All .js files that are used.

      • 2.4.1. vendor: all external js libs used into project.
      • 2.4.2. controllers: javascript files related with specific pages.

Running application pages

To run, is just needed a server landing in the project folder (root folder) and open the 'server_url/html/*' files
Tested with [Apache hpptd (Apache2)] (https://httpd.apache.org/), [Cloud9] (https://c9.io/), and [Webserver for Chrome] (https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb).

About w3data usage and amadeus.js

    // set data to breadcrumb in Subject page
    Amadeus.setBreadcrumb([
        // this way...
        { name: 'Home', path: '{{screenPath}}/users/teacher/home_teacher.html' },
        // ...or like this
        { name: 'Courses', path: Amadeus.paths.screens('/users/teacher/home_course_teacher.html') }
    ],'Subject');

Languages

We use HTML5, CSS3 and Javascript in our files. You are free to contribute and bring new patterns, such as SASS or LESS for CSS.

Naming conventions for Files

Commit Patterns

We set our tasks on the project using the issue system of github, any commit you may add should be addressed to a single ISSUE , example "solving problem #12". Thus making it clear for others what you're trying to solve or add.

References

[1] https://github.com/amadeusproject/amadeuslms

[2] https://github.com/FezVrasta/bootstrap-material-design

[3] http://www.w3schools.com/howto/howto_html_include.asp

[4] https://github.com/paypal/bootstrap-accessibility-plugin