Compare commits

..

No commits in common. "f5a0bbad6a3127343decdb8b57985a1c19949158" and "45e48dc6316fa511c2a7e18aee29ca45124019a4" have entirely different histories.

4 changed files with 5 additions and 8 deletions

View file

@ -5,7 +5,6 @@ import compressor from 'astro-compressor'
import robotsTxt from '@itsmatteomanf/astro-robots-txt' import robotsTxt from '@itsmatteomanf/astro-robots-txt'
export default defineConfig({ export default defineConfig({
prefetch: true,
integrations: [solidJs(), compressor({ gzip: false, brotli: true }), robotsTxt()], integrations: [solidJs(), compressor({ gzip: false, brotli: true }), robotsTxt()],
vite: { vite: {
css: { css: {

View file

@ -31,14 +31,14 @@ export default (props: Props) => {
<Show when={props.to}> <Show when={props.to}>
<Switch> <Switch>
<Match when={props.design}> <Match when={props.design}>
<a href={props.to} aria-label={props.label} data-astro-prefetch> <a href={props.to} aria-label={props.label}>
<button class={props.design} style={borderRadius}> <button class={props.design} style={borderRadius}>
{props.label || 'Click Me!'} {props.label || 'Click Me!'}
</button> </button>
</a> </a>
</Match> </Match>
<Match when={!props.design}> <Match when={!props.design}>
<a href={props.to} aria-label={props.label} data-astro-prefetch> <a href={props.to} aria-label={props.label}>
<button class="button" style={borderRadius}> <button class="button" style={borderRadius}>
{props.label || 'Click Me!'} {props.label || 'Click Me!'}
</button> </button>

View file

@ -1,5 +1,3 @@
// import { prefetch } from 'astro:prefetch'
interface Props { interface Props {
to: string to: string
children?: any children?: any
@ -8,7 +6,7 @@ interface Props {
export default (props: Props) => { export default (props: Props) => {
return ( return (
<> <>
<a href={props.to} aria-label={`Go to ${props.to}`} data-astro-prefetch> <a href={props.to} aria-label={`Go to ${props.to}`}>
{props.children} {props.children}
</a> </a>
</> </>

View file

@ -15,7 +15,7 @@ import Column from '../../fwt/components/Column/Column'
<h1>FWT Components</h1> <h1>FWT Components</h1>
<Button edges="rounded" label="Back to Home" to="/" /> <Button edges="rounded" label="Back to Home" to="/" />
<section class="images"> <section class="image">
<Row content="center" gap={1}> <Row content="center" gap={1}>
<Image avif={sample1.src} webp={sample2.src} alt="Example Image" size={400} /> <Image avif={sample1.src} webp={sample2.src} alt="Example Image" size={400} />
<Image avif={sample1.src} webp={sample2.src} alt="Example Image" size={400} /> <Image avif={sample1.src} webp={sample2.src} alt="Example Image" size={400} />
@ -36,7 +36,7 @@ import Column from '../../fwt/components/Column/Column'
margin: 2rem margin: 2rem
height: auto height: auto
.images .image
margin: 4rem 0 0 0 margin: 4rem 0 0 0
border-radius: 4px border-radius: 4px
width: 100% width: 100%