diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 37a79b4..53313b0 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -1,6 +1,6 @@ class AdminController < ApplicationController layout 'admin' - before_action :authorize_admin + before_action :authorize_admin, except: :styleguide def dashboard @quizzes = Quiz.includes(:questions).all diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4aed618..e6bb02d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -16,6 +16,10 @@ class ApplicationController < ActionController::Base end helper_method :current_candidate + def styleguide + render '/styleguide' + end + private def auth_params diff --git a/app/views/layouts/old_mailer_1470948990.html.erb b/app/views/layouts/old_mailer_1470948990.html.erb deleted file mode 100644 index ab4308c..0000000 --- a/app/views/layouts/old_mailer_1470948990.html.erb +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - <%= yield %> - - diff --git a/app/views/styleguide.html.erb b/app/views/styleguide.html.erb new file mode 100644 index 0000000..eaa69e6 --- /dev/null +++ b/app/views/styleguide.html.erb @@ -0,0 +1,194 @@ +<% + content_for :title, "Perficient Digital - Skills Assessment Styleguide" + content_for :category, 'Design' + content_for :footer_title, "Styleguide" + content_for :progress, '88' +%> + + +
+

Perficient Digital Base Styles

+

The purpose of this HTML is to help determine what default settings are with Bitters and to make sure that all possible HTML Elements are included in this HTML so as to not miss any possible Elements when designing a site.

+ +
+ +

Headings

+ +

h1. Heading

+

h2. Heading

+

h3. Heading

+

h4. Heading

+
h5. Heading
+
h6. Heading
+ +
+ +

Font Families

+ +

HalisR

+
+

HalisR-100

+

HalisR-200

+

HalisR-300

+

HalisR-400

+

HalisR-500

+

HalisR-600

+

HalisR-700

+

HalisR-800

+

HalisR-900

+
+ +

Lato

+
+

Lato-100

+

Lato-300

+

Lato-500

+

Lato-700

+

Lato-900

+

Lato-Italic-100

+

Lato-Italic-300

+

Lato-Italic-500

+

Lato-Italic-700

+

Lato-Italic-900

+
+ +
+ +

Paragraph

+ +

Lorem ipsum dolor sit amet, test link adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.

+ +

Lorem ipsum dolor sit amet, emphasis consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.

+ +
+ +

List Types

+ +

Definition List

+
+
Definition List Title
+
This is a definition list division.
+
+ +

Ordered List

+
    +
  1. List Item 1
  2. +
  3. List Item 2
  4. +
  5. List Item 3
  6. +
+ +

Unordered List

+ + +
+ +

Fieldsets and Form Elements

+ +
+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus.

+ +
+

Form Element

+ +

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui.

+ +
+ + +
+ +
+ + +
+
+ + +
+

+

+

+

+ +

+ + + +

+ +

+ + + +

+ +
+ + +
+ +
This is a sample error message.
+ + +
+ +

Buttons

+

+

+

+

+

+

+
+
+ +
+ +

Tables

+ + + + + + + + + + + + + + +
Table Header 1Table Header 2Table Header 3
Division 1Division 2Division 3
Division 1Division 2Division 3
Division 1Division 2Division 3
+ +
+

Button Group

+
+ + + +
+ +
diff --git a/config/routes.rb b/config/routes.rb index 2268dc6..c78aa34 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -58,6 +58,8 @@ Rails.application.routes.draw do get "/recruiter/login", to: "recruiter#login", as: :recruiter_login post "/recruiter/login", to: "recruiter#auth", as: :recruiter_auth + get "/styleguide", to: "application#styleguide", as: :styleguide + root to: "candidate#login" # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html diff --git a/test/controllers/application_controller_test.rb b/test/controllers/application_controller_test.rb new file mode 100644 index 0000000..16068dc --- /dev/null +++ b/test/controllers/application_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class ApplicationControllerTest < ActionDispatch::IntegrationTest + test "should get styleguide" do + get styleguide_path + + assert :success + end +end