From d5fc04e2f0cd8c07191db8f602b30f7c4d7bbe93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Wed, 1 Mar 2023 20:29:00 +0000 Subject: [PATCH] fix: banner text (#290) --- app/View/Components/Site/Footer.php | 8 +++++--- lang/ro/banner.php | 2 ++ .../views/components/site/banner-government.blade.php | 3 +-- resources/views/components/site/banner.blade.php | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/View/Components/Site/Footer.php b/app/View/Components/Site/Footer.php index a6f263c3..22c3b7a5 100644 --- a/app/View/Components/Site/Footer.php +++ b/app/View/Components/Site/Footer.php @@ -50,11 +50,13 @@ public function banner(): ?string return null; } + if (Features::isGovernmentSite()) { + return __('banner.government'); + } + return __('banner.external', [ 'edition' => __('banner.edition.' . config('website-factory.edition')), - 'organization' => Features::isGovernmentSite() - ? 'Code for Romania' - : 'Commit Global', + 'organization' => 'Commit Global', ]); } } diff --git a/lang/ro/banner.php b/lang/ro/banner.php index f7032f42..fea6ef7c 100644 --- a/lang/ro/banner.php +++ b/lang/ro/banner.php @@ -14,4 +14,6 @@ 'develop' => 'develop', ], + 'government' => 'Website creat cu Website Factory: Guvern. O soluție dezvoltată de Asociația Code for Romania (Commit Global) și pusă gratuit la dispoziția administrației publice.', + ]; diff --git a/resources/views/components/site/banner-government.blade.php b/resources/views/components/site/banner-government.blade.php index 12a4fa65..4fc6674e 100644 --- a/resources/views/components/site/banner-government.blade.php +++ b/resources/views/components/site/banner-government.blade.php @@ -3,9 +3,8 @@ href="https://code4.ro" target="_blank" rel="noopener" - class="flex items-center w-auto gap-3 text-sm text-white/60 hover:text-white focus-visible:text-white focus:outline-0 hover:underline focus:underline" + class="flex items-center w-full max-w-2xl gap-3 text-sm text-white/60 hover:text-white focus-visible:text-white focus:outline-0 hover:underline focus:underline" > - {{ $text }} diff --git a/resources/views/components/site/banner.blade.php b/resources/views/components/site/banner.blade.php index fbd1faf7..1fd54efe 100644 --- a/resources/views/components/site/banner.blade.php +++ b/resources/views/components/site/banner.blade.php @@ -4,8 +4,8 @@ href="https://www.commitglobal.org" target="_blank" rel="noopener" - class="flex items-center w-auto gap-3 text-sm hover:text-blue-600 focus:text-blue-600 focus:outline-0 hover:underline focus:underline"> - + class="flex items-center w-full max-w-2xl gap-3 text-sm hover:text-blue-600 focus:text-blue-600 focus:outline-0 hover:underline focus:underline" + > {{ $text }}