Project that fill @amadeuslms[1] with new UI and UX ideas and discussions.
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.2. screens: the final screens composed using components.
1.3. templates: page templates to use as base for new pages creation.
assets: The assets folder, with all non-html things.
2.1. css: All .css files that are used.
2.2. fonts: the font files used in the system.
2.3. img: all image files that are used.
2.4. js: All .js files that are used.
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).
assets/js/amadeus.js is the default dev Amadeus lib, that uses w3data to work with templates.
amadeus.js works with handle page referencing too. It provide default paths to be used as default.
- {{componentPath}}: default path to components folder
- {{templatePath}}: default path to templates folder
- {{controllerPath}}: path to assets/js/controlers/ folder
- {{hostPath}}: pages host
- {{assetPath}}: default path to assets folder
- {{screenPath}}: default path to screens folder
So, with that we don't worry about where the folder is, just using this pattern, we can refer anything in the project.
The only exception in this case are the needed libs to make it work (w3data & amadeus.js).
Setting up breadcrumb (using Amadeus.setBreadcrumb):
params:
// 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');
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.
For any html file, we use the pattern "generic_specific" pattern, basically, generic could be any of [home, edit, profile] and specific would be [user, student, professor].
Files can only contain letters, digits and underscores - no spaces, punctuation or funny caracters
Files should always start with a letter.
We suggest that you use only lowercase letters thus making it more error-prone.
About the images, put names that you remember what's inside of it "tree.png" should be exactly what you're thinking of: an image of a tree, not a car or even a bunch of trees.
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.
[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