Skip to content

Commit

Permalink
feat: disable rounded corners on internal sites
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Sep 26, 2022
1 parent dd57230 commit e473a3d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

declare(strict_types=1);

use App\Services\Features;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;

Expand Down Expand Up @@ -131,3 +132,17 @@ function format_bytes(int $bytes, int $precision = 2): string
return round($bytes / (pow(1024, $exp)), $precision) . $unit[$exp];
}
}

if (! function_exists('is_internal_site')) {
function is_internal_site(): bool
{
return Features::isCode4RomaniaSite();
}
}

if (! function_exists('is_external_site')) {
function is_external_site(): bool
{
return ! is_internal_site();
}
}
8 changes: 8 additions & 0 deletions resources/views/components/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
}
</style>

@if (is_internal_site())
<style>
* {
border-radius: 0 !important;
}
</style>
@endif

@stack('preload')

{{-- Scripts --}}
Expand Down

0 comments on commit e473a3d

Please sign in to comment.