Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public function panel(Panel $panel): Panel
->id('admin')
->path('admin')
->login()
->brandName('ZEROTRAFIC')
->favicon(asset('favicon.png'))
->colors([
'primary' => Color::hex('#2a4c82'),
])
Expand Down
2 changes: 1 addition & 1 deletion lang/en/footer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

return [
'brand' => 'Child Protection',
'brand' => 'ZEROTRAFIC',
'brand_sub' => 'Resource Center',
'tagline' => 'Platform developed by ANITP in partnership with Code for Romania Association within the Child Protection Compact Framework (CPC)',
'quicklinks' => 'Quick Links',
Expand Down
2 changes: 1 addition & 1 deletion lang/ro/footer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

return [
'brand' => 'Protecția Copilului',
'brand' => 'ZEROTRAFIC',
'brand_sub' => 'Centru de Resurse',
'tagline' => 'Platformă dezvoltată de ANITP în parteneriat cu Asociația Code for Romania în cadrul Child Protection Compact (CPC)',
'quicklinks' => 'Linkuri rapide',
Expand Down
Binary file modified public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/brand/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions resources/views/components/layout/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@
<div class="grid md:grid-cols-3 gap-8 mb-8">
<div>
<div class="flex items-center gap-2 mb-4">
<div class="bg-accent p-2 rounded-lg">
<svg class="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/>
</svg>
</div>
<img src="{{ asset('images/brand/logo.png') }}" alt="" class="h-10 w-10 rounded-lg bg-white object-contain">
<div>
<div class="font-bold text-white">{{ __('footer.brand') }}</div>
<div class="text-xs text-muted">{{ __('footer.brand_sub') }}</div>
Expand Down
14 changes: 4 additions & 10 deletions resources/views/components/layout/header.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<a href="{{ localized_route('home') }}" class="flex items-center gap-3 hover:opacity-80 transition-opacity">
<div class="flex items-center gap-2">
<div class="bg-accent p-2 rounded-lg">
<svg class="w-6 h-6 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/>
</svg>
</div>
<div>
<div class="font-bold text-white text-sm leading-tight">{{ __('footer.brand') }}</div>
<div class="text-xs text-white">{{ __('footer.brand_sub') }}</div>
</div>
<img src="{{ asset('images/brand/logo.png') }}" alt="" class="h-10 w-10 rounded-lg bg-white object-contain">
<div>
<div class="font-bold text-white text-sm leading-tight">{{ __('footer.brand') }}</div>
<div class="text-xs text-white">{{ __('footer.brand_sub') }}</div>
</div>
</a>

Expand Down
4 changes: 3 additions & 1 deletion resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ $title ?? config('app.name', 'CPC') }}</title>
<title>{{ $title ?? 'ZEROTRAFIC' }}</title>
<link rel="icon" href="{{ asset('favicon.png') }}" type="image/png">
<link rel="apple-touch-icon" href="{{ asset('apple-touch-icon.png') }}">
@isset($metaDescription)
<meta name="description" content="{{ $metaDescription }}">
@endisset
Expand Down
7 changes: 5 additions & 2 deletions resources/views/layouts/auth.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ $title ?? config('app.name', 'CPC') }}</title>
<title>{{ $title ?? 'ZEROTRAFIC' }}</title>
<link rel="icon" href="{{ asset('favicon.png') }}" type="image/png">
<link rel="apple-touch-icon" href="{{ asset('apple-touch-icon.png') }}">
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
</head>
Expand All @@ -14,7 +16,8 @@

<header class="w-full border-b border-[color:var(--color-border)] bg-background">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-14 flex items-center justify-between">
<a href="{{ localized_route('home') }}" class="text-sm font-semibold text-navy hover:text-primary">
<a href="{{ localized_route('home') }}" class="flex items-center gap-2 text-sm font-semibold text-navy hover:text-primary">
<img src="{{ asset('images/brand/logo.png') }}" alt="" class="h-8 w-8 object-contain">
{{ __('footer.brand') }}
</a>
<livewire:language-switcher />
Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/⚡home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Livewire\Attributes\Title;
use Livewire\Component;

new #[Layout('layouts.app')] #[Title('CPC')] class extends Component
new #[Layout('layouts.app')] #[Title('ZEROTRAFIC')] class extends Component
{
public int $statCases = 823;

Expand Down
9 changes: 9 additions & 0 deletions tests/Feature/BrandingTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

test('the public site uses the ZEROTRAFIC name, logo, and favicon', function () {
$this->get('/ro')
->assertSuccessful()
->assertSee('ZEROTRAFIC', false)
->assertSee('images/brand/logo.png', false)
->assertSee('favicon.png', false);
});
Loading