Skip to content

Commit

Permalink
setup front done
Browse files Browse the repository at this point in the history
  • Loading branch information
damienlethiec committed Jan 4, 2017
1 parent b78f64f commit 941bd3f
Show file tree
Hide file tree
Showing 29 changed files with 1,612 additions and 16 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@

# Ignore Byebug command history file.
.byebug_history

# Ignore application configuration
/config/application.yml
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ gem 'pg', '~> 0.18'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'bootstrap-sass', '~> 3.3', '>= 3.3.7'
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
Expand All @@ -32,7 +33,6 @@ gem 'jbuilder', '~> 2.5'
# gem 'bcrypt', '~> 3.1.7'
gem 'figaro', '~> 1.1', '>= 1.1.1'
gem 'redis', '~> 3.3', '>= 3.3.2'
gem 'bootstrap-sass', '~> 3.3', '>= 3.3.7'
gem 'simple_form', '~> 3.3', '>= 3.3.1'
gem 'autoprefixer-rails', '~> 6.6', '>= 6.6.1'

Expand Down
Binary file added app/.DS_Store
Binary file not shown.
Binary file added app/assets/.DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions app/assets/javascripts/pages.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
Binary file added app/assets/stylesheets/.DS_Store
Binary file not shown.
25 changes: 10 additions & 15 deletions app/assets/stylesheets/application.scss
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
// Graphical variables
@import "config/variables";
@import "config/bootstrap_variables";

// External libraries
@import "bootstrap-sprockets";
@import "bootstrap";

// Your CSS
@import "layout/index";
@import "components/index";
@import "pages/index";
@import "vendor/index";
Binary file added app/assets/stylesheets/components/.DS_Store
Binary file not shown.
Empty file.
25 changes: 25 additions & 0 deletions app/assets/stylesheets/config/_bootstrap_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* -------------------------------------
* Bootstrap sass variable
* (see http://getbootstrap.com/customize/#less-variables)
* ------------------------------------- */

// General style
$font-family-sans-serif: $base-font;
$body-bg: white;
$font-size-base: $base-size;
$line-height-base: $base-height;
$headings-font-family: $header-font;

// Semantic color scheme
// => http://getbootstrap.com/customize/#colors
$gray-base: $gray;
$brand-primary: $blue;
$brand-success: $green;
$brand-info: $yellow;
$brand-danger: $red;
$brand-warning: $orange;

// Buttons / inputs radius
$border-radius-base: 2px;
$border-radius-large: 2px;
$border-radius-small: 2px;
34 changes: 34 additions & 0 deletions app/assets/stylesheets/config/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* -------------------------------------
* Fonts
* ------------------------------------- */
// Google fonts
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,300,700|Raleway:400,100,300,700,500");
$base-font: "Open Sans", "Helvetica", "sans-serif";
$header-font: "Raleway", "Helvetica", "sans-serif";

// Local fonts (uncomment following lines)
// @font-face {
// font-family: "Font Name";
// src: font-url('FontFile.eot');
// src: font-url('FontFile.eot?#iefix') format('embedded-opentype'),
// font-url('FontFile.woff') format('woff'),
// font-url('FontFile.ttf') format('truetype')
// }
// $my-font: "Font Name";

// Font-size and line-height
$base-size: 16px;
$base-height: 1.4;

/* -------------------------------------
* Colors
* ------------------------------------- */
// Scheme
$brand-color: #D23333;

$red: #EE5F5B;
$blue: #469AE0;
$yellow: #FDB631;
$orange: #E67E22;
$green: #32B796;
$gray: #000000;
Binary file added app/assets/stylesheets/layout/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions app/assets/stylesheets/layout/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "utilities";
25 changes: 25 additions & 0 deletions app/assets/stylesheets/layout/_utilities.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* -------------------------------------
* Utilities classes
* These are examples of utilities classes
* Feel free to change them and create your own
* ------------------------------------- */

// Paddings
.padded {
padding-top: 5em;
padding-bottom: 5em;
}

// Backgrounds
.bg-black {
background: #4a4a4a;
}
.bg-grey {
background: #aeaeae;
}
.bg-blue {
background: #00a3e1;
}
.bg-dark-blue {
background: #3b5998;
}
Binary file added app/assets/stylesheets/pages/.DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/pages/_home.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* -------------------------------------
* CSS code specific to home page
* (margin/padding adjustments)
* ------------------------------------- */
1 change: 1 addition & 0 deletions app/assets/stylesheets/pages/_index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import "home";
Loading

0 comments on commit 941bd3f

Please sign in to comment.