Skip to content

Commit

Permalink
docs: improve lighthouse scores
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Sep 10, 2024
1 parent ce19ec9 commit 748e18a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 35 deletions.
11 changes: 0 additions & 11 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]',
integrity: "sha384-FhXw7b6AlE/jyjlZH5iHa/tTe9EpJ1Y55RjcgPbjeWMskSxZt1v9qkxLJWNJaGni",
crossorigin: "anonymous",
},
},
],
editLink: {
baseUrl: 'https://github.com/algorandfoundation/liquid-auth/edit/develop/docs/',
},
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/QrCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export function QrCode({ label = true }: { label?: boolean }) {

function Status() {
if(status === TRANSACTION_CONFIRMED) return <a role="button" target="_blank" href={`https://testnet.explorer.perawallet.app/tx/${_txn?.txID()}`} className="relative -inset-y-14 text-xl text-liquid-blue mt-2 inline">{status}</a>;
return <h6 className="relative -inset-y-14 text-white text-xl mt-2 inline">{status}</h6>;
return <p className="relative -inset-y-14 text-white text-xl mt-2 inline">{status}</p>;
}

return <div className="w-80 h-80 flex justify-center">
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const links = [
{links.map(({ title, href }) =>
<a target="_self" href={href} class="font-poppins text-md leading-6 text-white">{title}</a>
)}
<a href={`${base}/guides/getting-started`} class="px-6 py-2 font-poppins uppercase rounded-full leading-6 bg-liquid-purple text-white">Documentation</a>
<a href={`${base}/guides/getting-started`} class="px-6 py-2 font-poppins uppercase rounded-full leading-6 bg-liquid-purple-contrast text-white">Documentation</a>
</div>
</nav>
</header>
48 changes: 28 additions & 20 deletions docs/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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"
---
<style is:global>
html, body {
height: 100%;
background: black;
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html,body {
scroll-behavior: auto;
}
}
</style>
<html lang="en">

<head>
<title>Liquid Auth</title>
<meta name="description" content="Web3 meets real world Authentication"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/svg+xml" href={`${base}logo-background.svg`} />
<style is:global>
html, body {
height: 100%;
background: black;
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html,body {
scroll-behavior: auto;
}
}
</style>
</head>

<div class="min-h-full">
<Header />
<HeroSection />
<App />
<AuthenticationSection />
<SovereigntySection />
</div>
<body>
<div class="min-h-full">
<Header />
<HeroSection />
<App />
<AuthenticationSection />
<SovereigntySection />
</div>
</body>
</html>
3 changes: 1 addition & 2 deletions docs/tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -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}'],
Expand All @@ -13,6 +11,7 @@ export default {
},
colors: {
'liquid-purple': '#9966FF',
'liquid-purple-contrast': '#844DFF',
'liquid-blue': '#6699FF',
'liquid-alt-purple': '#906FFF',
'liquid-green': '#00773a'
Expand Down

0 comments on commit 748e18a

Please sign in to comment.