Skip to content

Commit

Permalink
Initial Commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienMelissas committed Sep 7, 2014
0 parents commit f41a4b5
Show file tree
Hide file tree
Showing 26 changed files with 518 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "assets/vendor"
}
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Include your project-specific ignores in this file
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
node_modules
assets/vendor
assets/css/main.css.map
assets/css/*main*.css
assets/js/*scripts*.js
assets/js/vendor/modernizr.min.js
assets/rev-manifest.json
16 changes: 16 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"bitwise": true,
"browser": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"esnext": true,
"immed": true,
"jquery": true,
"latedef": true,
"newcap": true,
"noarg": true,
"node": true,
"strict": false,
"trailing": true
}
Binary file added apple-touch-icon-precomposed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added assets/img/.gitkeep
Empty file.
59 changes: 59 additions & 0 deletions assets/js/_main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* The routing is enclosed within an anonymous function so that you can
* always reference jQuery with $, even when in .noConflict() mode.
* ======================================================================== */

(function($) {

// Use this variable to set up the common and page specific functions. If you
// rename this variable, you will also need to rename the namespace below.
var Application = {
// All pages
common: {
init: function() {
// JavaScript to be fired on all pages
}
},
// Home page
home: {
init: function() {
// JavaScript to be fired on the home page
}
},
// About us page, note the change from about-us to about_us.
about_us: {
init: function() {
// JavaScript to be fired on the about us page
}
}
};

// The routing fires all common scripts, followed by the page specific scripts.
// Add additional events for more control over timing e.g. a finalize event
var UTIL = {
fire: function(func, funcname, args) {
var namespace = Application;
funcname = (funcname === undefined) ? 'init' : funcname;
if (func !== '' && namespace[func] && typeof namespace[func][funcname] === 'function') {
namespace[func][funcname](args);
}
},
loadEvents: function() {
UTIL.fire('common');

$.each(document.body.className.replace(/-/g, '_').split(/\s+/),function(i,classnm) {
UTIL.fire(classnm);
});
}
};

$(document).ready(UTIL.loadEvents);

})(jQuery); // Fully reference jQuery after this point.
Empty file added assets/js/plugins/.gitkeep
Empty file.
93 changes: 93 additions & 0 deletions assets/less/_bootstrap.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
//
// Bootstrap
//
// Comment out any unused components
// --------------------------------------------------

// Variables
@import "../vendor/bootstrap/less/variables";
@import "_variables"; // Bootstrap variable overrides and custom variables

// Mixins: Utilities
@import "../vendor/bootstrap/less/mixins/hide-text";
@import "../vendor/bootstrap/less/mixins/opacity";
@import "../vendor/bootstrap/less/mixins/image";
@import "../vendor/bootstrap/less/mixins/labels";
@import "../vendor/bootstrap/less/mixins/reset-filter";
@import "../vendor/bootstrap/less/mixins/resize";
@import "../vendor/bootstrap/less/mixins/responsive-visibility";
@import "../vendor/bootstrap/less/mixins/size";
@import "../vendor/bootstrap/less/mixins/tab-focus";
@import "../vendor/bootstrap/less/mixins/text-emphasis";
@import "../vendor/bootstrap/less/mixins/text-overflow";
@import "../vendor/bootstrap/less/mixins/vendor-prefixes";

// Mixins: Components
@import "../vendor/bootstrap/less/mixins/alerts";
@import "../vendor/bootstrap/less/mixins/buttons";
@import "../vendor/bootstrap/less/mixins/panels";
@import "../vendor/bootstrap/less/mixins/pagination";
@import "../vendor/bootstrap/less/mixins/list-group";
@import "../vendor/bootstrap/less/mixins/nav-divider";
@import "../vendor/bootstrap/less/mixins/forms";
@import "../vendor/bootstrap/less/mixins/progress-bar";
@import "../vendor/bootstrap/less/mixins/table-row";

// Mixins: Skins
@import "../vendor/bootstrap/less/mixins/background-variant";
@import "../vendor/bootstrap/less/mixins/border-radius";
@import "../vendor/bootstrap/less/mixins/gradients";

// Mixins: Layout
@import "../vendor/bootstrap/less/mixins/clearfix";
@import "../vendor/bootstrap/less/mixins/center-block";
@import "../vendor/bootstrap/less/mixins/nav-vertical-align";
@import "../vendor/bootstrap/less/mixins/grid-framework";
@import "../vendor/bootstrap/less/mixins/grid";

// Reset
@import "../vendor/bootstrap/less/normalize";
@import "../vendor/bootstrap/less/print";
@import "../vendor/bootstrap/less/glyphicons";

// Core CSS
@import "../vendor/bootstrap/less/scaffolding";
@import "../vendor/bootstrap/less/type";
@import "../vendor/bootstrap/less/code";
@import "../vendor/bootstrap/less/grid";
@import "../vendor/bootstrap/less/tables";
@import "../vendor/bootstrap/less/forms";
@import "../vendor/bootstrap/less/buttons";

// Components
@import "../vendor/bootstrap/less/component-animations";
@import "../vendor/bootstrap/less/dropdowns";
@import "../vendor/bootstrap/less/button-groups";
@import "../vendor/bootstrap/less/input-groups";
@import "../vendor/bootstrap/less/navs";
@import "../vendor/bootstrap/less/navbar";
@import "../vendor/bootstrap/less/breadcrumbs";
@import "../vendor/bootstrap/less/pagination";
@import "../vendor/bootstrap/less/pager";
@import "../vendor/bootstrap/less/labels";
@import "../vendor/bootstrap/less/badges";
@import "../vendor/bootstrap/less/jumbotron";
@import "../vendor/bootstrap/less/thumbnails";
@import "../vendor/bootstrap/less/alerts";
@import "../vendor/bootstrap/less/progress-bars";
@import "../vendor/bootstrap/less/media";
@import "../vendor/bootstrap/less/list-group";
@import "../vendor/bootstrap/less/panels";
@import "../vendor/bootstrap/less/responsive-embed";
@import "../vendor/bootstrap/less/wells";
@import "../vendor/bootstrap/less/close";

// Components w/ JavaScript
@import "../vendor/bootstrap/less/modals";
@import "../vendor/bootstrap/less/tooltip";
@import "../vendor/bootstrap/less/popovers";
@import "../vendor/bootstrap/less/carousel";

// Utility classes
@import "../vendor/bootstrap/less/utilities";
@import "../vendor/bootstrap/less/responsive-utilities";
Empty file added assets/less/_global.less
Empty file.
10 changes: 10 additions & 0 deletions assets/less/_variables.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Colors
// -------------------------

@brand-primary: #62BB9A;


// Glyphicons path
// -------------------------

@icon-font-path: "../vendor/bootstrap/fonts/";
Empty file.
65 changes: 65 additions & 0 deletions assets/less/components/_mixins.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
** LESS Mixins
** By Julien Melissas - http://julienmelissas.com
*/

// retina.less
// A helper mixin for applying high-resolution background images (http://www.retinajs.com)

@highdpi: ~"(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";
.at2x(@path, @w: auto, @h: auto) {
background-image: url(@path);
@at2x_path: ~`@{path}.replace(/\.\w+$/, function(match) { return "@2x" + match; })`;

@media @highdpi {
background-image: url("@{at2x_path}");
background-size: @w @h;
}
}

// Fixall for wonkyness with transitions in Chrome and Webkit browsers
.webkit-translate3d-fix {
-webkit-transform: translate3d( 0, 0, 0);
}


// Centers Something inside an absolute or relative positioned element
.center (@width, @height) {
position: absolute;
top: 50%;
left: 50%;
width: @width;
height: @height;
margin-top: -(@height * 0.5);
margin-left: -(@width * 0.5);
}

// Makes a square
.square(@dimension) {
width: @dimension;
height: @dimension;
}

// Makes a circle
.circle(@dimension) {
width: @dimension;
height: @dimension;
border-radius: (@dimension/2);
}

// Hides Text, replaces -9999px hack
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}

// All Caps
.caps {
text-transform: uppercase;
}

// Bold
.bold {
font-weight: bold;
}
Empty file.
Empty file.
Empty file.
14 changes: 14 additions & 0 deletions assets/less/main.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Bootstrap
// -------------------------
@import "_bootstrap"; //Also imports _variables.less

// Mixins & Components
// -------------------------
@import "components/_mixins";

// Global Styles & Layouts
// -------------------------
@import "_global";
@import "layouts/_header";
@import "layouts/_general";
@import "layouts/_footer";
20 changes: 20 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "gc2",
"version": "1.0.0",
"homepage": "http://www.galaxydigital.com/",
"authors": [
"Craftpeak <[email protected]>"
],
"private": true,
"ignore": [
"**/.*",
"node_modules",
"assets/vendor"
],
"dependencies": {
"modernizr": "2.8.2",
"jquery": "1.11.1",
"bootstrap": "3.2.0",
"respond": "1.4.2"
}
}
15 changes: 15 additions & 0 deletions crossdomain.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->

<!-- Most restrictive policy: -->
<site-control permitted-cross-domain-policies="none"/>

<!-- Least restrictive policy: -->
<!--
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" to-ports="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
-->
</cross-domain-policy>
Binary file added favicon.ico
Binary file not shown.
Loading

0 comments on commit f41a4b5

Please sign in to comment.