From 748e18a61ac158d5e8911da36addd00bc8085ebd Mon Sep 17 00:00:00 2001 From: Michael Feher Date: Mon, 9 Sep 2024 22:21:29 -0400 Subject: [PATCH] docs: improve lighthouse scores --- docs/astro.config.mjs | 11 -------- docs/src/components/QrCode.tsx | 2 +- docs/src/components/header.astro | 2 +- docs/src/pages/index.astro | 48 +++++++++++++++++++------------- docs/tailwind.config.mjs | 3 +- 5 files changed, 31 insertions(+), 35 deletions(-) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 389d998..178057a 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -29,17 +29,6 @@ export default defineConfig({ logo: { src: "./public/logo.svg" }, - head:[ - { - tag: 'script', - attrs: { - // Tweaks to the script URL or attributes can be made here. - src: 'https://unpkg.com/htmx.org@1.9.6', - integrity: "sha384-FhXw7b6AlE/jyjlZH5iHa/tTe9EpJ1Y55RjcgPbjeWMskSxZt1v9qkxLJWNJaGni", - crossorigin: "anonymous", - }, - }, - ], editLink: { baseUrl: 'https://github.com/algorandfoundation/liquid-auth/edit/develop/docs/', }, diff --git a/docs/src/components/QrCode.tsx b/docs/src/components/QrCode.tsx index 2c9faf3..5158600 100644 --- a/docs/src/components/QrCode.tsx +++ b/docs/src/components/QrCode.tsx @@ -202,7 +202,7 @@ export function QrCode({ label = true }: { label?: boolean }) { function Status() { if(status === TRANSACTION_CONFIRMED) return {status}; - return
{status}
; + return

{status}

; } return
diff --git a/docs/src/components/header.astro b/docs/src/components/header.astro index 0d3bae1..039d7b9 100644 --- a/docs/src/components/header.astro +++ b/docs/src/components/header.astro @@ -33,7 +33,7 @@ const links = [ {links.map(({ title, href }) => {title} )} - Documentation + Documentation
diff --git a/docs/src/pages/index.astro b/docs/src/pages/index.astro index 4bb4a6d..34dfdab 100644 --- a/docs/src/pages/index.astro +++ b/docs/src/pages/index.astro @@ -9,27 +9,35 @@ import AuthenticationSection from '../components/marketing/authentication.astro' import SovereigntySection from '../components/marketing/sovereignty.astro'; import App from "../components/marketing/app.astro"; const base = import.meta.env.BASE_URL; +export const lang = "en" --- - + + + Liquid Auth + + + - -
-
- - - - -
+ +
+
+ + + + +
+ + \ No newline at end of file diff --git a/docs/tailwind.config.mjs b/docs/tailwind.config.mjs index d9113bc..984d384 100644 --- a/docs/tailwind.config.mjs +++ b/docs/tailwind.config.mjs @@ -1,5 +1,3 @@ -import defaultTheme from 'tailwindcss/defaultTheme'; - /** @type {import('tailwindcss').Config} */ export default { content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], @@ -13,6 +11,7 @@ export default { }, colors: { 'liquid-purple': '#9966FF', + 'liquid-purple-contrast': '#844DFF', 'liquid-blue': '#6699FF', 'liquid-alt-purple': '#906FFF', 'liquid-green': '#00773a'