- Credits: you're allowed to put your credits in the footer of the theme, every user that will select your theme will show your name/link to all his contacts
- Money (not available yet): if the VeloCV user buys the premium service (which is also not available yet) credits are removed but we're working with tax consultants to understand if we can pay a fee to the designer (some money for every day or usage of your themes and for every user)
- Fork this repository
- create a new folder, it will be the name of your theme
- create (inside the folder) a js file with the name name of your folder and .js extension
- create (inside the folder) a css file with the name name of your folder and .css extension
- tweak the js/css files as you wish (keep reading for guidelines)
- create a pull request for us to approve the theme
The theme's javascript is loaded via requirejs, thus inside your own js file you can use requirejs to load other/external js files. You've no limits in the number of files loaded.
For example, if you want to load jquery in your theme's js file simply start it with the following code:
require(["//code.jquery.com/jquery-1.11.2.min.js"], function () {
// add here all the code you want to execute after jquery is loaded
});
Simply use imports to load other/external css files. You've no limits in the number of files loaded.
For example, if you want to load font-awesome (which is just a single css file) from bootstrap's CDN:
@import url("//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");
Be sure to check how the default theme is done, it should be self explanatory, quite easy to follow and it should have all the info you need to process every section of the theme.
You can/should completely change the dom structure of the page to fit the needs of your design.
Once you forked and cloned this repository you'll find a "sample-profile.html" file in the root directory. Open it with your favorite editor and search for the two occurrences of the string "/default/default.", replace the default with your theme name and you can start checking this file in your browser(s). Change your js/css, reload the browser, same old story ;)
Note: we suggest you to use a real web server (like apache, any other would fit anyway) because sometimes if you just point your browser to "c:\where-you-cloned-velocv-themes\sample-profile.html" the browser itself could have problems/limitation loading external resources. If instead you're using a web server and point your browser to "http://localhost/velocv-themes/sample-profile.html" everything will work just fine and it would be a much better test.
We've set up a playground with all the things you need to create a theme quickly, it's available at this link: http://jsfiddle.net/fballiano/nun64s28/
You can fork it, change it, save it and immediately check the results agains a complete sample CV.
Once you're satisfied with the results save the CSS and the javascript file (as explained before in this document), commit them and create the pull request for us to check.
If you loaded jQuery then you can simply do:
$("#designer")
.attr("href", "http://mywebsite.com")
.text("My Name");
or just use plain javascript for the same purpouse.