diff --git a/app/Helpers/TemplateHelper.php b/app/Helpers/TemplateHelper.php index cab298f33..1334d82c2 100644 --- a/app/Helpers/TemplateHelper.php +++ b/app/Helpers/TemplateHelper.php @@ -9,4 +9,12 @@ public static function getTitleContent(string $header): string $name = __('layout.title.name_SICP'); return "{$header} - {$name}"; } + + public static function getBookLink(string $locale): string + { + return match ($locale) { + 'ru' => 'https://drive.google.com/file/d/1xc9r6txuTZMZ5lPy9YQuD1Dwv9spg7Nt/view?usp=sharing', + default => 'https://drive.google.com/file/d/1t3rlltwuU85ow7g0ZI6Kx7eY5n-Umh8p/view?usp=sharing', + }; + } } diff --git a/resources/assets/pdf/sicp-en.pdf b/resources/assets/pdf/sicp-en.pdf deleted file mode 100644 index b82e4acb0..000000000 Binary files a/resources/assets/pdf/sicp-en.pdf and /dev/null differ diff --git a/resources/assets/pdf/sicp-ru.pdf b/resources/assets/pdf/sicp-ru.pdf deleted file mode 100644 index 169862ccc..000000000 Binary files a/resources/assets/pdf/sicp-ru.pdf and /dev/null differ diff --git a/resources/js/app.js b/resources/js/app.js index 1cacc5665..09e3f714f 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -7,7 +7,6 @@ import correctionListener from './correction'; import.meta.glob([ '../assets/images/**', - '../assets/pdf/**', ]); window.bootstrap = bootstrap; diff --git a/resources/views/layouts/_nav.blade.php b/resources/views/layouts/_nav.blade.php index 4ca748bed..203358319 100644 --- a/resources/views/layouts/_nav.blade.php +++ b/resources/views/layouts/_nav.blade.php @@ -1,4 +1,5 @@ @php + use App\Helpers\TemplateHelper; use App\Helpers\LocalizationHelper; $currentLocale = LaravelLocalization::getCurrentLocale(); $locales = LaravelLocalization::getSupportedLocales(); @@ -28,7 +29,7 @@ class="nav-link p-2">{{ __('layout.nav.sicp_read') }} @endif