Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vaidehijoshi committed Mar 28, 2017
1 parent 8f4b960 commit d73ccd7
Show file tree
Hide file tree
Showing 11 changed files with 360 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -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
}
}
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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'
114 changes: 114 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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
44 changes: 44 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -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
Empty file added source/images/.keep
Empty file.
56 changes: 56 additions & 0 deletions source/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
title: Better Code Reviews
---

<h1 class="main-header">Better Code Reviews</h1>

<h2 class="main-header">Feedback</h2>

<h2 class="main-header">Everyone</h2>

<h2 class="main-header">Comments</h2>

<h2 class="main-header">Ego</h2>




<hr/>


<div class="typeform-flex-container">
<div class="typeform-item">
<a class="typeform-share button" href="https://vaidehi.typeform.com/report/tl7MX5/I4Jm" data-mode="popup" data-hide-headers=true data-hide-footer=true style="display:inline-block;text-decoration:none;background-color:#47525c;color:white;cursor:pointer;font-family:Helvetica, Arial, sans-serif;font-size:24px;line-height:60px;text-align:center;margin:0;height:60px;padding:0px 40px;border-radius:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:bold;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;" target="_blank" > View results </a> <script> (function() { var qs, js, q, s, d = document, gi = d.getElementById, ce = d.createElement, gt = d.getElementsByTagName, id = "typef_orm_share", b = "https://s3-eu-west-1.amazonaws.com/share.typeform.com/"; if (!gi.call(d, id)) { js = ce.call(d, "script"); js.id = id; js.src = b + "share.js"; q = gt.call(d, "script")[0]; q.parentNode.insertBefore(js, q) } })() </script>
</div>

<div class="typeform-item">
<a class="typeform-share button" href="https://vaidehi.typeform.com/to/tl7MX5" data-mode="popup" data-hide-headers=true data-hide-footer=true style="display:inline-block;text-decoration:none;background-color:#47525c;color:white;cursor:pointer;font-family:Helvetica, Arial, sans-serif;font-size:24px;line-height:60px;text-align:center;margin:0;height:60px;padding:0px 40px;border-radius:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:bold;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;" target="_blank" > Take the survey </a> <script> (function() { var qs, js, q, s, d = document, gi = d.getElementById, ce = d.createElement, gt = d.getElementsByTagName, id = "typef_orm_share", b = "https://s3-eu-west-1.amazonaws.com/share.typeform.com/"; if (!gi.call(d, id)) { js = ce.call(d, "script"); js.id = id; js.src = b + "share.js"; q = gt.call(d, "script")[0]; q.parentNode.insertBefore(js, q) } })() </script>
</div>
</div>







<!-- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 340" class="middleman-logo" aria-labelledby="middleman-logo__title" role="img">
<title id="middleman-logo__title">Middleman</title>
<path class="middleman-logo__top-left-bar" fill-opacity=".45" d="M0 40L200 0v30L0 60z"/>
<path class="middleman-logo__top-right-bar" fill="#fff" d="M200 0l200 40v20L200 30z"/>
<path class="middleman-logo__left-m" fill-opacity=".45" d="M0 78v184l45 5V152l45 83 47-83v129l53 7V52l-57 8-43 83-43-70z"/>
<path class="middleman-logo__right-m" fill="#fff" d="M400 78v184l-45 5V152l-45 83-47-83v129l-53 7V52l57 8 43 83 43-70z"/>
<path class="middleman-logo__bottom-left-bar" fill-opacity=".45" d="M0 300l200 40v-30L0 280z"/>
<path class="middleman-logo__bottom-right-bar" fill="#fff" d="M200 340l200-40v-20l-200 30z"/>
</svg>
<h1>
Middleman is Running
</h1>
<%= link_to(
"Read Documentation",
"https://middlemanapp.com/basics/templating_language/",
target: "_blank"
) %>
-->
1 change: 1 addition & 0 deletions source/javascripts/site.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// This is where it all goes :)
19 changes: 19 additions & 0 deletions source/layouts/layout.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!doctype html>
<html>
<head>
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">

<!-- Use title if it's in the page YAML frontmatter -->
<title><%= current_page.data.title || "Middleman" %></title>

<%= stylesheet_link_tag "site" %>
<%= javascript_include_tag "site" %>
</head>

<body class="<%= page_classes %>">
<%= yield %>
</body>
</html>
40 changes: 40 additions & 0 deletions source/stylesheets/site.css.scss
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit d73ccd7

Please sign in to comment.