Added prefetch

This commit is contained in:
Patrick Alvin Alcala 2025-07-01 10:25:06 +08:00
parent 1d7a92c16e
commit c9d4ddb861
3 changed files with 6 additions and 6 deletions

View file

@ -8,7 +8,7 @@ import robotsTxt from 'astro-robots-txt'
export default defineConfig({
site: 'https://tools.patalcala.com',
integrations: [solidJs(), compressor({ gzip: false, brotli: true }), robotsTxt()],
prefetch: true,
build: {
assets: '_aiotools',
},

View file

@ -23,7 +23,7 @@ export default () => {
<a target="_blank" href={link} class="navbar__icon" aria-label="GitHub repository">
<FaSolidCode color="#ffffff" size={24} cursor="pointer" />
</a>
<a href="/about" class="navbar__icon" aria-label="About page">
<a href="/about" data-astro-prefetch class="navbar__icon" aria-label="About page">
<RiSystemInformationLine color="#ffffff" size={32} cursor="pointer" />
</a>

View file

@ -18,10 +18,10 @@ import { Image } from 'astro:assets'
</section>
<section class="cards--section">
<a href="/password-generator" aria-label="Password generator page"><Card title="Password Generator" description="Generate a strong and secure password for your accounts online." /> </a>
<a href="/hash-generator" aria-label="Hash generator page"><Card title="Hash Generator" description="Convert text to multiple hash formats for secure data transmission." /></a>
<a href="/color-converter" aria-label="Color converter page"><Card title="Color Converter" description="Convert colors to any format. Color picker provided inside." /></a>
<a href="/text-comparison" aria-label="Text comparison page"><Card title="Text Comparison" description="Compare text side by side to detect changes easily." /></a>
<a href="/password-generator" data-astro-prefetch aria-label="Password generator page"><Card title="Password Generator" description="Generate a strong and secure password for your accounts online." /> </a>
<a href="/hash-generator" data-astro-prefetch aria-label="Hash generator page"><Card title="Hash Generator" description="Convert text to multiple hash formats for secure data transmission." /></a>
<a href="/color-converter" data-astro-prefetch aria-label="Color converter page"><Card title="Color Converter" description="Convert colors to any format. Color picker provided inside." /></a>
<a href="/text-comparison" data-astro-prefetch aria-label="Text comparison page"><Card title="Text Comparison" description="Compare text side by side to detect changes easily." /></a>
</section>
</main>
</Layout>