Skip to content

Commit

Permalink
dave - added start of site
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Jan 25, 2016
1 parent 3910601 commit 4402d73
Show file tree
Hide file tree
Showing 30 changed files with 13,575 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -18,3 +18,7 @@ project/plugins/project/
# Scala-IDE specific
.scala_dependencies
.worksheet

# site
node_modules
bower_components
7 changes: 7 additions & 0 deletions bower.json
@@ -0,0 +1,7 @@
{
"name": "fintrospect.io",
"ignore": [],
"dependencies": {
"bootstrap": "~3.1.1"
}
}
5 changes: 5 additions & 0 deletions harp.json
@@ -0,0 +1,5 @@
{
"globals": {
"name": "Fintrospect"
}
}
10 changes: 10 additions & 0 deletions package.json
@@ -0,0 +1,10 @@
{
"dependencies": {
"bower": "^1.7.2",
"harp": "^0.20.1"
},
"scripts": {
"setup": "npm install && ./node_modules/bower/bin/bower install",
"start": "./node_modules/harp/bin/harp compile src/main/site target/www && ./node_modules/harp/bin/harp server target/www"
}
}
1 change: 1 addition & 0 deletions src/main/site/404.jade
@@ -0,0 +1 @@
h1 Oops
15 changes: 15 additions & 0 deletions src/main/site/_layout.jade
@@ -0,0 +1,15 @@
doctype html
html
head
!= partial("_partials/head")

body

header
!= partial("_partials/header")

main
!= yield

footer
!= partial("_partials/footer")
11 changes: 11 additions & 0 deletions src/main/site/_partials/footer.jade
@@ -0,0 +1,11 @@
| Powered by
= ' '
a(href="https://github.com/jvandemo/hb-bootstrap") hb-bootstrap
= ' '
| for
= ' '
a(href="http://harpjs.com") Harp
= ' '
| by
= ' '
a(href="http://www.jvandemo.com") Jurgen Van de Moere
6 changes: 6 additions & 0 deletions src/main/site/_partials/head.jade
@@ -0,0 +1,6 @@
meta(charset='utf8')
title= name
link(rel='stylesheet', href='/css/global.css')
link(rel='stylesheet', href='http://fonts.googleapis.com/css?family=Open+Sans|Source+Code+Pro')
script(src='/js/jquery/jquery.min.js')
script(src='/js/bootstrap/bootstrap.js')
16 changes: 16 additions & 0 deletions src/main/site/_partials/header.jade
@@ -0,0 +1,16 @@
nav.navbar.navbar-default.navbar-fixed-top(role="navigation")
.container-fluid
.navbar-header
button.navbar-toggle(data-toggle="collapse", data-target="#navbar-top-collapse-1")
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand(href="/")= name

.collapse.navbar-collapse#navbar-top-collapse-1
ul.nav.navbar-nav.navbar-right
li
a(href="/docs") Documentation
li
a(href="/showcase") Showcase
57 changes: 57 additions & 0 deletions src/main/site/css/global.less
@@ -0,0 +1,57 @@
//
// Site specific styles
//
// First imports the theme and then allows you to
// add your custom styles
//
// You can use all Bootstrap variables and mixins
// that are provided by the theme
//
// --------------------------------------------------

// Import flat bootstrap theme
@import "themes/flat/theme";

body{
padding-top: 70px;
}

footer{
margin: @grid-gutter-width 0 0 0;
padding: (@grid-gutter-width / 2) 0;
border-top: 1px solid @well-border;
text-align: center;
}

ul.nav-docs{
margin-top: 60px;
h1{
margin: 1em 0 0 0;
padding: 10px 15px;
font-size: 1.8rem;
}
}

article.article-docs{
h1, h2, h3, h4, h5, h6{
margin: 1em 0;
}
h1{
font-size: 3rem;
}
h2{
font-size: 2.6rem;
}
h3{
font-size: 2.2rem;
}
h4{
font-size: 1.8rem;
}
p{
margin: 1em 0;
}
img{
width: 100%;
}
}
62 changes: 62 additions & 0 deletions src/main/site/css/themes/default/_bootstrap.less
@@ -0,0 +1,62 @@
//
// Bootstrap components
//
// This file allows you to select the components you
// wish to include in your bootstrap build
//
// You can comment all lines of components you don't
// need and uncomment them later if you need them
//
// This prevents CSS bloat
//
// --------------------------------------------------

// Core variables and mixins
@import "_variables";
@import "../../../../../../bower_components/bootstrap/less/mixins";

// Reset
@import "../../../../../../bower_components/bootstrap/less/normalize";
@import "../../../../../../bower_components/bootstrap/less/print";

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

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

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

// Utility classes
@import "../../../../../../bower_components/bootstrap/less/utilities";
@import "../../../../../../bower_components/bootstrap/less/responsive-utilities";

0 comments on commit 4402d73

Please sign in to comment.