remove async decoding

This commit is contained in:
vincanger 2024-11-12 13:37:12 +01:00
parent 8b62a079fc
commit 19b5292c3e
5 changed files with 13 additions and 6 deletions

View File

@ -25,7 +25,7 @@
>
<NavLogo />
- <span className='ml-2 text-sm font-semibold leading-6 dark:text-white'>Your Saas</span>
+ <span className='ml-2 text-sm font-semibold leading-6 dark:text-white'>Open Saas</span>
+ <span className='ml-2 text-sm font-semibold leading-6 dark:text-white'>Open SaaS</span>
</a>
</div>
<div className='flex lg:hidden'>
@ -47,6 +47,15 @@
</div>
</Link>
) : (
@@ -78,7 +79,7 @@
<Dialog.Panel className='fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 dark:bg-boxdark dark:text-white'>
<div className='flex items-center justify-between'>
<a href='/' className='-m-1.5 p-1.5'>
- <span className='sr-only'>Your SaaS</span>
+ <span className='sr-only'>Open SaaS</span>
<NavLogo />
</a>
<button
@@ -107,8 +108,8 @@
<div className='py-6'>
{isUserLoading ? null : !user ? (

View File

@ -28,7 +28,7 @@
return (
<div className='relative pt-14 w-full'>
<TopGradient />
@@ -9,32 +27,47 @@
@@ -9,31 +27,47 @@
<div className='py-24 sm:py-32'>
<div className='mx-auto max-w-8xl px-6 lg:px-8'>
<div className='lg:mb-18 mx-auto max-w-3xl text-center'>
@ -77,7 +77,6 @@
- width={1000}
- height={530}
- loading='lazy'
- decoding='async'
- className='rounded-md shadow-2xl ring-1 ring-gray-900/10'
- />
+ <div className='mt-14 flow-root sm:mt-14 '>

View File

@ -19,7 +19,7 @@ const navigation = [
{ name: 'Blog', href: BlogUrl },
];
const NavLogo = () => <img className='h-8 w-8' src={logo} decoding='async' alt='Your SaaS App' />;
const NavLogo = () => <img className='h-8 w-8' src={logo} alt='Your SaaS App' />;
export default function AppNavBar() {
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);

View File

@ -32,7 +32,6 @@ export default function Hero() {
width={1000}
height={530}
loading='lazy'
decoding='async'
className='rounded-md shadow-2xl ring-1 ring-gray-900/10'
/>
</div>

View File

@ -22,7 +22,7 @@ export default function Testimonials({ testimonials }: { testimonials: Testimoni
</blockquote>
<figcaption className='mt-6 text-base text-white'>
<a href={testimonial.socialUrl} className='flex items-center gap-x-2'>
<img src={testimonial.avatarSrc} loading='lazy' decoding='async' className='h-12 w-12 rounded-full' />
<img src={testimonial.avatarSrc} loading='lazy' className='h-12 w-12 rounded-full' />
<div>
<div className='font-semibold hover:underline'>{testimonial.name}</div>
<div className='mt-1'>{testimonial.role}</div>