Skip to content

Commit 81d23de

Browse files
committed
fix: add lazy loading to images and improve accessibility attributes
1 parent 3944964 commit 81d23de

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

layouts/_partials/app-screenshots.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h2 class="text-base/7 font-semibold text-blue-600 dark:text-blue-400">{{ i18n "
4040
</div>
4141
<div class="relative overflow-hidden pt-8">
4242
<div class="mx-auto max-w-5xl px-6 lg:px-8">
43-
<img src="{{- (resources.Get "images/app/lecturePresenter.png" | fingerprint).RelPermalink -}}" alt="lecturePresenter screenshot" class="mb-16 rounded-xl shadow-2xl ring-1 ring-gray-900/10" width="2534" height="1620">
43+
<img loading="lazy" src="{{- (resources.Get "images/app/lecturePresenter.png" | fingerprint).RelPermalink -}}" alt="lecturePresenter screenshot" class="mb-16 rounded-xl shadow-2xl ring-1 ring-gray-900/10" width="2534" height="1620">
4444
</div>
4545
</div>
4646
</div>
@@ -55,7 +55,7 @@ <h2 class="text-base/7 font-semibold text-blue-600 dark:text-blue-400">{{ i18n "
5555
</div>
5656
<div class="relative overflow-hidden pt-8">
5757
<div class="mx-auto max-w-5xl px-6 lg:px-8">
58-
<img src="{{- (resources.Get (printf "images/app/lectureEditor.%s.png" .Site.Language.Lang) | fingerprint).RelPermalink -}}" alt="lectureEditor screenshot" class="mb-16 rounded-xl shadow-2xl ring-1 ring-gray-900/10" width="1538" height="965">
58+
<img loading="lazy" src="{{- (resources.Get (printf "images/app/lectureEditor.%s.png" .Site.Language.Lang) | fingerprint).RelPermalink -}}" alt="lectureEditor screenshot" class="mb-16 rounded-xl shadow-2xl ring-1 ring-gray-900/10" width="1538" height="965">
5959
</div>
6060
</div>
6161
</div>
@@ -97,14 +97,14 @@ <h2 class="text-base/7 font-semibold text-blue-600 dark:text-blue-400">{{ i18n "
9797
</div>
9898

9999
<div class="bg-gray-800 rounded-b-lg">
100-
<img src="{{- (resources.Get (printf "images/app/web-browser.%s.png" .Site.Language.Lang) | fingerprint).RelPermalink -}}" alt="lectureStreaming mobile screenshot" class="max-w-full h-auto rounded-b-lg">
100+
<img loading="lazy" src="{{- (resources.Get (printf "images/app/web-browser.%s.png" .Site.Language.Lang) | fingerprint).RelPermalink -}}" alt="lectureStreaming desktop screenshot" class="max-w-full h-auto rounded-b-lg">
101101
</div>
102102
</figure>
103103

104104
<!-- Mobile Device -->
105105
<figure class="hidden absolute bottom-0 start-0 z-2 max-w-full w-60 h-auto mb-20 ms-20 lg:block">
106106
<div class="p-1.5 bg-gray-100 rounded-3xl shadow-[0_2.75rem_5.5rem_-3.5rem_rgb(45_55_75_/_20%),_0_2rem_4rem_-2rem_rgb(45_55_75_/_30%),_inset_0_-0.1875rem_0.3125rem_0_rgb(45_55_75_/_20%)] dark:shadow-[0_2.75rem_5.5rem_-3.5rem_rgb(0_0_0_/_20%),_0_2rem_4rem_-2rem_rgb(0_0_0_/_30%),_inset_0_-0.1875rem_0.3125rem_0_rgb(0_0_0_/_20%)] dark:bg-neutral-700">
107-
<img src="{{- (resources.Get (printf "images/app/web-mobile.%s.png" .Site.Language.Lang) | fingerprint).RelPermalink -}}" alt="lectureStreaming mobile screenshot" class="border-black max-w-full rounded-[1.25rem] h-auto" style="border-width: medium;">
107+
<img loading="lazy" src="{{- (resources.Get (printf "images/app/web-mobile.%s.png" .Site.Language.Lang) | fingerprint).RelPermalink -}}" alt="lectureStreaming mobile screenshot" class="border-black max-w-full rounded-[1.25rem] h-auto" style="border-width: medium;">
108108
</div>
109109
</figure>
110110
</div>

layouts/_partials/hero.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ <h2 class="mb-6 text-2xl font-light text-slate-700 dark:text-slate-300 md:text-3
421421
<input type="text"
422422
class="w-full text-[10px] px-2 py-1 bg-slate-100 dark:bg-slate-700 rounded-l border-0 focus:ring-0 text-slate-800 dark:text-slate-200"
423423
placeholder="{{ i18n "image_content.chat.input_placeholder" }}">
424-
<button class="bg-sky-500 text-white px-2 rounded-r">
424+
<button class="bg-sky-500 text-white px-2 rounded-r" aria-label="submit-chat">
425425
<svg class="w-3 h-3 transform rotate-45 -mt-px">
426426
<use href="#paper-airplane"/>
427427
</svg>

layouts/_partials/nav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414
</a>
1515
<button class="rounded-lg md:hidden focus:outline-none focus:shadow-outline" @click="open = !open"
16-
role="menu" aria-expanded="false" aria-label="Main" aria-controls="menuItems">
16+
role="menuitem" aria-expanded="false" aria-label="Main" aria-controls="menuItems">
1717
<svg fill="currentColor" viewBox="0 0 20 20" class="w-6 h-6">
1818
<path x-show="!open" fill-rule="evenodd"
1919
d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM9 15a1 1 0 011-1h6a1 1 0 110 2h-6a1 1 0 01-1-1z"

0 commit comments

Comments
 (0)