diff --git a/app/javascript/application.js b/app/javascript/application.js index 166ea10..ae6035f 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -4,7 +4,15 @@ Turbo.setProgressBarDelay(300) // Toastify import Toastify from 'toastify-js' -window.Toastify=Toastify +window.Toastify = Toastify // Js Controllers import "controllers" + +// Font Awesome +import { far } from "@fortawesome/free-regular-svg-icons" +import { fas } from "@fortawesome/free-solid-svg-icons" +import { fab } from "@fortawesome/free-brands-svg-icons" +import { library } from "@fortawesome/fontawesome-svg-core" +import "@fortawesome/fontawesome-free" +library.add(far, fas, fab) diff --git a/app/views/layouts/_navbar.html.erb b/app/views/layouts/_navbar.html.erb index 160a104..f44599e 100644 --- a/app/views/layouts/_navbar.html.erb +++ b/app/views/layouts/_navbar.html.erb @@ -1,5 +1,12 @@ diff --git a/app/views/scores/_form.html.erb b/app/views/scores/_form.html.erb index f8660e6..9690f7a 100644 --- a/app/views/scores/_form.html.erb +++ b/app/views/scores/_form.html.erb @@ -1,23 +1,34 @@ <%= form_with(model: score, class: "contents") do |form| %> <% if score.errors.any? %> -