Skip to content

Commit

Permalink
Merge pull request #12 from ricardofelipe7/feature/11-criar-uma-pagin…
Browse files Browse the repository at this point in the history
…a-home

Feature/11 criar uma pagina home
  • Loading branch information
ricardo-benicio authored Dec 1, 2023
2 parents a765382 + 914920d commit 161c16e
Show file tree
Hide file tree
Showing 688 changed files with 57,316 additions and 3 deletions.
4 changes: 4 additions & 0 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class HomeController < ApplicationController
def index
end
end
2 changes: 2 additions & 0 deletions app/helpers/home_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module HomeHelper
end
2 changes: 2 additions & 0 deletions app/javascript/application.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "@hotwired/turbo-rails"
import "controllers"
import 'flowbite'
import "flowbite/dist/flowbite.turbo.js"
10 changes: 10 additions & 0 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div>
<h1 class="font-bold text-4xl">Bem Vindo ao RubyGuard!</h1>
<p> Por favor, faça o cadastro testar nosso serviço.</p>
<div>
<button type="button" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none dark:focus:ring-blue-800">
<%= link_to 'Cadastrar', new_user_registration_path %>
</button>
</div>

</div>
2 changes: 2 additions & 0 deletions config/importmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
pin '@hotwired/stimulus', to: 'stimulus.min.js', preload: true
pin '@hotwired/stimulus-loading', to: 'stimulus-loading.js', preload: true
pin_all_from 'app/javascript/controllers', under: 'controllers'
pin "flowbite", to: "https://ga.jspm.io/npm:flowbite@2.2.0/lib/esm/index.js"
pin "@popperjs/core", to: "https://ga.jspm.io/npm:@popperjs/core@2.11.8/lib/index.js"
5 changes: 2 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

Rails.application.routes.draw do
root 'home#index'

devise_for :users
get 'up' => 'rails/health#show', as: :rails_health_check
end
2 changes: 2 additions & 0 deletions config/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const defaultTheme = require('tailwindcss/defaultTheme')

module.exports = {
content: [
'./node_modules/flowbite/**/*.js',
'./public/*.html',
'./app/helpers/**/*.rb',
'./app/javascript/**/*.js',
Expand All @@ -15,6 +16,7 @@ module.exports = {
},
},
plugins: [
require('flowbite/plugin'),
require('@tailwindcss/forms'),
require('@tailwindcss/aspect-ratio'),
require('@tailwindcss/typography'),
Expand Down
1 change: 1 addition & 0 deletions node_modules/.bin/mini-svg-data-uri

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions node_modules/@popperjs/core/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 161c16e

Please sign in to comment.