From 64ac93f65f42fd2909362e9666adc6c0522ec9b0 Mon Sep 17 00:00:00 2001 From: Zachary Chai Date: Thu, 16 Feb 2017 17:03:58 -0500 Subject: [PATCH] getting started page --- app/assets/stylesheets/main/help.scss | 52 +++++++++++++++++++++ app/controllers/help_controller.rb | 20 +++++++++ app/views/help/getting_started.html.erb | 57 ++++++++++++++++++++++++ config/locales/en-us.yml | 5 +++ config/routes.rb | 2 + test/controllers/help_controller_test.rb | 9 ++++ 6 files changed, 145 insertions(+) create mode 100644 app/assets/stylesheets/main/help.scss create mode 100644 app/controllers/help_controller.rb create mode 100644 app/views/help/getting_started.html.erb create mode 100644 test/controllers/help_controller_test.rb diff --git a/app/assets/stylesheets/main/help.scss b/app/assets/stylesheets/main/help.scss new file mode 100644 index 00000000..3704ac1a --- /dev/null +++ b/app/assets/stylesheets/main/help.scss @@ -0,0 +1,52 @@ +// BigBlueButton open source conferencing system - http://www.bigbluebutton.org/. +// +// Copyright (c) 2016 BigBlueButton Inc. and by respective authors (see below). +// +// This program is free software; you can redistribute it and/or modify it under the +// terms of the GNU Lesser General Public License as published by the Free Software +// Foundation; either version 3.0 of the License, or (at your option) any later +// version. +// +// BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY +// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +// PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License along +// with BigBlueButton; if not, see . + +.help { + + .title { + padding-bottom: 40px; + } + + .videos-wrapper { + width: 1000px; + height: 100%; + } + + .video-btn { + position: relative; + width: 304px; + height: 169px; + } + + img { + max-width: 100%; + max-height: 100%; + } + + .video-icon { + position: absolute; + left: 0; + right: 0; + margin-left: auto; + margin-right: auto; + top: 40%; + text-align: center; + z-index: 100; + color: #fff; + font-size: 40px; + } + +} diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb new file mode 100644 index 00000000..f0669954 --- /dev/null +++ b/app/controllers/help_controller.rb @@ -0,0 +1,20 @@ +# BigBlueButton open source conferencing system - http://www.bigbluebutton.org/. +# +# Copyright (c) 2016 BigBlueButton Inc. and by respective authors (see below). +# +# This program is free software; you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free Software +# Foundation; either version 3.0 of the License, or (at your option) any later +# version. +# +# BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License along +# with BigBlueButton; if not, see . + +class HelpController < ApplicationController + def getting_started + end +end diff --git a/app/views/help/getting_started.html.erb b/app/views/help/getting_started.html.erb new file mode 100644 index 00000000..4077c71e --- /dev/null +++ b/app/views/help/getting_started.html.erb @@ -0,0 +1,57 @@ +<% +# BigBlueButton open source conferencing system - http://www.bigbluebutton.org/. +# Copyright (c) 2016 BigBlueButton Inc. and by respective authors (see below). +# This program is free software; you can redistribute it and/or modify it under the +# terms of the GNU Lesser General Public License as published by the Free Software +# Foundation; either version 3.0 of the License, or (at your option) any later +# version. +# +# BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. +# You should have received a copy of the GNU Lesser General Public License along +# with BigBlueButton; if not, see . +%> + + diff --git a/config/locales/en-us.yml b/config/locales/en-us.yml index fe2cd741..5af5c874 100644 --- a/config/locales/en-us.yml +++ b/config/locales/en-us.yml @@ -71,6 +71,11 @@ en-US: enter_name: Enter your name enter_meeting_name: Enter a meeting name to start footer_html: Powered by %{bbb_link} + getting_started_page: + title: Getting Started Quickly + setting_up_audio: Setting Up Audio + viewer_overview: Viewer Overview + presenter_overview: Moderator/Presenter Overview hi_all: Hi Everyone home_title: Welcome to BigBlueButton invite: Invite diff --git a/config/routes.rb b/config/routes.rb index 83bb56d1..1ee0f760 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,6 +16,8 @@ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html Rails.application.routes.draw do + get 'help/getting_started' + mount ActionCable.server => '/cable' resources :users, only: [:edit, :update] diff --git a/test/controllers/help_controller_test.rb b/test/controllers/help_controller_test.rb new file mode 100644 index 00000000..e956ee24 --- /dev/null +++ b/test/controllers/help_controller_test.rb @@ -0,0 +1,9 @@ +require 'test_helper' + +class HelpControllerTest < ActionDispatch::IntegrationTest + test "should get getting_started" do + get help_getting_started_url + assert_response :success + end + +end