From 700ca58143226b9ea8c18afee947f1fb72b0b2e6 Mon Sep 17 00:00:00 2001 From: Alan Biju Date: Tue, 12 Mar 2024 17:31:27 +0000 Subject: [PATCH] add constants --- app/views/layouts/components/_head.html.haml | 3 +++ config/initializers/0_constants.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/app/views/layouts/components/_head.html.haml b/app/views/layouts/components/_head.html.haml index 4e4549e3..6696c77f 100644 --- a/app/views/layouts/components/_head.html.haml +++ b/app/views/layouts/components/_head.html.haml @@ -1,5 +1,8 @@ %meta{content: "text/html; charset=UTF-8", "http-equiv": "Content-Type"} %meta{content: "width=device-width,initial-scale=1", name: "viewport"} +%meta{content: "#{BROWSER_THEME_COLOR}", name: "theme-color"} + +%link{href: asset_path("#{APPLE_TOUCH_ICON_PATH}"), rel: "apple-touch-icon", sizes: "180x180"} = display_meta_tags(default_meta_tags) diff --git a/config/initializers/0_constants.rb b/config/initializers/0_constants.rb index 3a0ae4f8..d70849c2 100644 --- a/config/initializers/0_constants.rb +++ b/config/initializers/0_constants.rb @@ -2,6 +2,9 @@ APP_NAME = "Rapid Rails".freeze +APPLE_TOUCH_ICON_PATH = "/apple-touch-icon.png".freeze +BROWSER_THEME_COLOR = "#000000".freeze + COMPANY_NAME = "Daniel Paul".freeze COMPANY_LOCATION = "London, UK".freeze