diff --git a/resources/js/docs.js b/resources/js/docs.js index 2a95aa11..acff4c0a 100644 --- a/resources/js/docs.js +++ b/resources/js/docs.js @@ -65,14 +65,14 @@ function replaceBlockquotesWithCalloutsInDocs() { replaceBlockquote(el, /\{(.*?)\}/, (type) => { switch (type) { case "note": - return ['/img/callouts/exclamation.min.svg', 'bg-red-600']; + return ['/img/callouts/exclamation.min.svg', 'bg-red-600', 6, 35]; case "tip": - return ['/img/callouts/lightbulb.min.svg', 'bg-purple-600']; + return ['/img/callouts/lightbulb.min.svg', 'bg-purple-600', 28, 40]; case "laracasts": case "video": - return ['/img/callouts/laracast.min.svg', 'bg-blue-600']; + return ['/img/callouts/laracast.min.svg', 'bg-blue-600', 49, 40]; default: - return [null, null]; + return [null, null, 0, 0]; } }); @@ -80,11 +80,11 @@ function replaceBlockquotesWithCalloutsInDocs() { replaceBlockquote(el, /^\[\!(.*?)\](?:
\n?)?/, (type) => { switch (type) { case "WARNING": - return ['/img/callouts/exclamation.min.svg', 'bg-red-600']; + return ['/img/callouts/exclamation.min.svg', 'bg-red-600', 6, 35]; case "NOTE": - return ['/img/callouts/lightbulb.min.svg', 'bg-purple-600']; + return ['/img/callouts/lightbulb.min.svg', 'bg-purple-600', 28, 40]; default: - return [null, null]; + return [null, null, 0, 0]; } }); @@ -92,11 +92,11 @@ function replaceBlockquotesWithCalloutsInDocs() { replaceBlockquote(el, /^(.*?)<\/strong>(?:
\n?)?/, (type) => { switch (type) { case "Warning": - return ['/img/callouts/exclamation.min.svg', 'bg-red-600']; + return ['/img/callouts/exclamation.min.svg', 'bg-red-600', 6, 35]; case "Note": - return ['/img/callouts/lightbulb.min.svg', 'bg-purple-600']; + return ['/img/callouts/lightbulb.min.svg', 'bg-purple-600', 28, 40]; default: - return [null, null]; + return [null, null, 0, 0]; } }); }); @@ -105,14 +105,14 @@ function replaceBlockquotesWithCalloutsInDocs() { function replaceBlockquote(el, regex, getImageAndColorByType) { var str = el.innerHTML; var match = str.match(regex); - var img, color; + var img, color, width, height; if (match) { var type = match[1] || false; } if (type) { - [img, color] = getImageAndColorByType(type); + [img, color, width, height] = getImageAndColorByType(type); if (img === null && color === null) { return; @@ -125,6 +125,9 @@ function replaceBlockquote(el, regex, getImageAndColorByType) { imageWrapper.classList = `w-20 h-20 mb-6 flex items-center justify-center shrink-0 ${color} lg:mb-0`; const image = document.createElement('img'); image.src = img; + image.height = height + image.width = width + image.loading = 'lazy' image.classList = `opacity-75`; imageWrapper.appendChild(image); wrapper.appendChild(imageWrapper); diff --git a/resources/views/careers.blade.php b/resources/views/careers.blade.php index 04cf904d..b84aab64 100644 --- a/resources/views/careers.blade.php +++ b/resources/views/careers.blade.php @@ -59,7 +59,7 @@ class="mt-6 max-w-sm mx-auto flex flex-col justify-center items-center gap-4 sm: ], ] as $benefit)
- +

{{ $benefit['title'] }}

{{ $benefit['description'] }}

diff --git a/resources/views/components/testimonial.blade.php b/resources/views/components/testimonial.blade.php index 04144d81..6e2accbd 100644 --- a/resources/views/components/testimonial.blade.php +++ b/resources/views/components/testimonial.blade.php @@ -1,7 +1,7 @@

“{{ $content }}“

- {{ $name }} + {{ $name }}
{{ $name }}

{{ $title }}

diff --git a/resources/views/docs.blade.php b/resources/views/docs.blade.php index 92ee7cca..561202f8 100644 --- a/resources/views/docs.blade.php +++ b/resources/views/docs.blade.php @@ -99,8 +99,8 @@ class="lg:hidden"
- Laravel - + Laravel +
@@ -207,7 +207,7 @@ class="appearance-none flex-1 w-full px-0 py-1 placeholder-gray-900 tracking-wid
- Icon + Icon

@@ -224,7 +224,7 @@ class="appearance-none flex-1 w-full px-0 py-1 placeholder-gray-900 tracking-wid

- Icon + Icon

diff --git a/resources/views/frontend.blade.php b/resources/views/frontend.blade.php index 92f84a28..0e9cdc3a 100644 --- a/resources/views/frontend.blade.php +++ b/resources/views/frontend.blade.php @@ -615,7 +615,7 @@ public function index()

Learn more

@@ -694,10 +694,10 @@ public function index()
- - - - + + + +
diff --git a/resources/views/marketing.blade.php b/resources/views/marketing.blade.php index 1b890621..a8c12878 100644 --- a/resources/views/marketing.blade.php +++ b/resources/views/marketing.blade.php @@ -319,7 +319,7 @@ class="flex items-start pt-4 pb-6 px-4 border border-gray-200 border-opacity-60" class="relative shrink-0 bg-{{ $ecosystemItemId }} flex items-center justify-center w-12 h-12 rounded-lg overflow-hidden"> - {{ $ecosystemItem['image-alt'] }} + {{ $ecosystemItem['image-alt'] }}
{{ $ecosystemItem['name'] }}
@@ -360,7 +360,7 @@ class="absolute w-full h-full inset-0 bg-gradient-to-b from-[rgba(255,255,255,.2
- {{ $ecosystemItem['image-alt'] }} + {{ $ecosystemItem['image-alt'] }}
- laracon + laracon

Watch us on Laracasts

Tune In

Laracasts includes free videos and tutorials @@ -583,7 +583,7 @@ class="text-red-500">Laravel Transporter

- partners + partners
diff --git a/resources/views/partials/footer.blade.php b/resources/views/partials/footer.blade.php index 237d3979..1821d880 100644 --- a/resources/views/partials/footer.blade.php +++ b/resources/views/partials/footer.blade.php @@ -71,7 +71,7 @@
diff --git a/resources/views/partials/header.blade.php b/resources/views/partials/header.blade.php index 9c081d72..180294f0 100644 --- a/resources/views/partials/header.blade.php +++ b/resources/views/partials/header.blade.php @@ -46,7 +46,7 @@ class="mt-4 w-224 p-8 bg-white shadow-lg transform transition-transform origin-t
- {{ $ecosystemItem['image-alt'] }} + {{ $ecosystemItem['image-alt'] }}
{{ $ecosystemItem['name'] }}