diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..e3a677e --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,42 @@ +{ + "rules": { + "curly": 2, + "dot-location": [2, "property"], + "dot-notation": 2, + "eqeqeq": [2, "smart"], + "indent": [2, 2, { "SwitchCase": 1 }], + "linebreak-style": [2, "unix"], + "max-len": [1, 80, 2], + "no-else-return": 1, + "no-extend-native": [2, {"exceptions": ["Array", "Function"]}], + "no-floating-decimal": 2, + "no-implicit-coercion": 2, + "no-lonely-if": 2, + "no-loop-func": 2, + "no-magic-numbers": [1, {"enforceConst": true}], + "no-native-reassign": 2, + "no-spaced-func": 2, + "no-unneeded-ternary": 2, + "object-curly-spacing": [2, "always"], + "quotes": [2, "single"], + "semi": [2, "always"], + "space-before-function-paren": [2, "never"], + "space-in-parens": [2, "never"] + }, + "env": { "browser": true }, + "extends": "eslint:recommended", + "ecmaFeatures": { + "jsx": true, + "experimentalObjectRestSpread": true + }, + "plugins": [ + "react" + ], + "globals": { + "React": true, + "BR": true, + "classNames": true, + "_": true, + "$": true + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a320f7b --- /dev/null +++ b/.gitignore @@ -0,0 +1,18 @@ +# See http://help.github.com/ignore-files/ for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile ~/.gitignore_global + +# Ignore bundler config +/.bundle + +# Ignore the build directory +/build + +# Ignore cache +/.sass-cache +/.cache + +# Ignore .DS_store file +.DS_Store diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..4ac721d --- /dev/null +++ b/Gemfile @@ -0,0 +1,13 @@ +# If you do not have OpenSSL installed, change +# the following line to use 'http://' +source 'https://rubygems.org' + +# For faster file watcher updates on Windows: +gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw] + +# Windows does not come with time zone data +gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby] + +# Middleman Gems +gem 'middleman', '~> 4.2' +gem 'middleman-livereload', '~> 3.4' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..68d90ba --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,114 @@ +GEM + remote: https://rubygems.org/ + specs: + activesupport (5.0.2) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.0) + public_suffix (~> 2.0, >= 2.0.2) + backports (3.6.8) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + compass-import-once (1.0.5) + sass (>= 3.2, < 3.5) + concurrent-ruby (1.0.5) + contracts (0.13.0) + dotenv (2.2.0) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) + erubis (2.7.0) + eventmachine (1.2.3) + execjs (2.7.0) + fast_blank (1.0.0) + fastimage (2.1.0) + ffi (1.9.18) + haml (4.0.7) + tilt + hamster (3.0.0) + concurrent-ruby (~> 1.0) + hashie (3.5.5) + http_parser.rb (0.6.0) + i18n (0.7.0) + kramdown (1.13.2) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + memoist (0.15.0) + middleman (4.2.1) + coffee-script (~> 2.2) + compass-import-once (= 1.0.5) + haml (>= 4.0.5) + kramdown (~> 1.2) + middleman-cli (= 4.2.1) + middleman-core (= 4.2.1) + sass (>= 3.4.0, < 4.0) + middleman-cli (4.2.1) + thor (>= 0.17.0, < 2.0) + middleman-core (4.2.1) + activesupport (>= 4.2, < 5.1) + addressable (~> 2.3) + backports (~> 3.6) + bundler (~> 1.1) + contracts (~> 0.13.0) + dotenv + erubis + execjs (~> 2.0) + fast_blank + fastimage (~> 2.0) + hamster (~> 3.0) + hashie (~> 3.4) + i18n (~> 0.7.0) + listen (~> 3.0.0) + memoist (~> 0.14) + padrino-helpers (~> 0.13.0) + parallel + rack (>= 1.4.5, < 3) + sass (>= 3.4) + servolux + tilt (~> 2.0) + uglifier (~> 3.0) + middleman-livereload (3.4.6) + em-websocket (~> 0.5.1) + middleman-core (>= 3.3) + rack-livereload (~> 0.3.15) + minitest (5.10.1) + padrino-helpers (0.13.3.3) + i18n (~> 0.6, >= 0.6.7) + padrino-support (= 0.13.3.3) + tilt (>= 1.4.1, < 3) + padrino-support (0.13.3.3) + activesupport (>= 3.1) + parallel (1.11.1) + public_suffix (2.0.5) + rack (2.0.1) + rack-livereload (0.3.16) + rack + rb-fsevent (0.9.8) + rb-inotify (0.9.8) + ffi (>= 0.5.0) + sass (3.4.23) + servolux (0.13.0) + thor (0.19.4) + thread_safe (0.3.6) + tilt (2.0.7) + tzinfo (1.2.3) + thread_safe (~> 0.1) + uglifier (3.1.10) + execjs (>= 0.3.0, < 3) + +PLATFORMS + ruby + +DEPENDENCIES + middleman (~> 4.2) + middleman-livereload (~> 3.4) + tzinfo-data + wdm (~> 0.1.0) + +BUNDLED WITH + 1.14.3 diff --git a/config.rb b/config.rb new file mode 100644 index 0000000..09a8cb5 --- /dev/null +++ b/config.rb @@ -0,0 +1,44 @@ +### +# Page options, layouts, aliases and proxies +### + +# Per-page layout changes: +# +# With no layout +page '/*.xml', layout: false +page '/*.json', layout: false +page '/*.txt', layout: false + +# With alternative layout +# page "/path/to/file.html", layout: :otherlayout + +# Proxy pages (http://middlemanapp.com/basics/dynamic-pages/) +# proxy "/this-page-has-no-template.html", "/template-file.html", locals: { +# which_fake_page: "Rendering a fake page with a local variable" } + +# General configuration + +# Reload the browser automatically whenever files change +configure :development do + activate :livereload +end + +### +# Helpers +### + +# Methods defined in the helpers block are available in templates +# helpers do +# def some_helper +# "Helping" +# end +# end + +# Build-specific configuration +configure :build do + # Minify CSS on build + # activate :minify_css + + # Minify Javascript on build + # activate :minify_javascript +end diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..b1d13a5 --- /dev/null +++ b/config.ru @@ -0,0 +1,13 @@ +require 'middleman-core/load_paths' +::Middleman.setup_load_paths + +require 'middleman-core' +require 'middleman-core/rack' + +require 'fileutils' +FileUtils.mkdir('log') unless File.exist?('log') +::Middleman::Logger.singleton("log/#{ENV['RACK_ENV']}.log") + +app = ::Middleman::Application.new + +run ::Middleman::Rack.new(app).to_app diff --git a/source/images/.keep b/source/images/.keep new file mode 100644 index 0000000..e69de29 diff --git a/source/index.html.erb b/source/index.html.erb new file mode 100644 index 0000000..85ff702 --- /dev/null +++ b/source/index.html.erb @@ -0,0 +1,56 @@ +--- +title: Better Code Reviews +--- + +

Better Code Reviews

+ +

Feedback

+ +

Everyone

+ +

Comments

+ +

Ego

+ + + + +
+ + +
+
+ +
+ +
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/source/javascripts/site.js b/source/javascripts/site.js new file mode 100644 index 0000000..9de6ff3 --- /dev/null +++ b/source/javascripts/site.js @@ -0,0 +1 @@ +// This is where it all goes :) diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb new file mode 100644 index 0000000..469d919 --- /dev/null +++ b/source/layouts/layout.erb @@ -0,0 +1,19 @@ + + + + + + + + + <%= current_page.data.title || "Middleman" %> + + <%= stylesheet_link_tag "site" %> + <%= javascript_include_tag "site" %> + + + + <%= yield %> + + diff --git a/source/stylesheets/site.css.scss b/source/stylesheets/site.css.scss new file mode 100644 index 0000000..d38f05c --- /dev/null +++ b/source/stylesheets/site.css.scss @@ -0,0 +1,40 @@ +body { + background-color: #fbc547; + color: #333; + font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", + "Segoe UI", "Lucida Grande", "Helvetica Neue", "Helvetica", "Fira Sans", + "Roboto", "Noto", "Droid Sans", "Cantarell", "Oxygen", "Ubuntu", + "Franklin Gothic Medium", "Century Gothic", "Liberation Sans", sans-serif; + padding: 18vh 1rem; + text-align: center; +} + +a { + color: rgba(#000, 0.7); + + &:focus, + &:hover { + color: rgba(#000, 0.6); + } +} + +.middleman-logo { + margin-bottom: 1rem; + width: 10rem; +} + +.main-header { + font-family: Helvetica; + color: #47525c; +} + +.typeform-flex-container { + display: -webkit-flex; + display: flex; + -webkit-flex-direction: column; + flex-direction: column; + + .typeform-item { + padding-top: 20px; + } +}