Skip to content

Commit

Permalink
fix: banner text (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Mar 1, 2023
1 parent d594d3b commit d5fc04e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
8 changes: 5 additions & 3 deletions app/View/Components/Site/Footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
}
}
2 changes: 2 additions & 0 deletions lang/ro/banner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.',

];
3 changes: 1 addition & 2 deletions resources/views/components/site/banner-government.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>

<span>{{ $text }}</span>

<x-icon-code4 class="h-6 sm:h-8 shrink-0 fill-white/80" />
Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/site/banner.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
>
<x-icon-commitglobal class="h-6 sm:h-8 shrink-0" />

<span>{{ $text }}</span>
Expand Down

0 comments on commit d5fc04e

Please sign in to comment.