Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
planetabhi committed Sep 14, 2024
1 parent a375a50 commit ce5c0f0
Show file tree
Hide file tree
Showing 8 changed files with 463 additions and 23 deletions.
1 change: 1 addition & 0 deletions .netlify/v1/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"images":{"remote_images":[]},"headers":[{"for":"/_astro/*","values":{"Cache-Control":"public, max-age=31536000, immutable"}}]}
13 changes: 7 additions & 6 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import db from '@astrojs/db';
import { defineConfig } from 'astro/config';
import deno from "@deno/astro-adapter";

import netlify from '@astrojs/netlify';

// https://astro.build/config
export default defineConfig({
site: process.env.URL || 'https://gov-meter.deno.dev',
integrations: [db()],
output: "server",
adapter: deno(),
});
site: process.env.URL || 'https://gov-meter.deno.dev',
integrations: [db()],
output: 'server',
adapter: netlify(),
});
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build]
publish = "dist"
command = "pnpm build"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
"preview": "deno run --allow-net --allow-read --allow-env ./dist/server/entry.mjs",
"preview": "astro preview",
"format": "prettier -w --cache --plugin prettier-plugin-astro .",
"collect-stats": "node scripts/collect-stats"
},
Expand All @@ -25,6 +25,7 @@
"speedlify-score": "^4.0.4"
},
"dependencies": {
"@astrojs/netlify": "^5.5.2",
"@deno/astro-adapter": "^0.1.3",
"@new-ui/colors": "^1.3.0",
"@new-ui/reset": "^0.0.5",
Expand Down
443 changes: 440 additions & 3 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions public/favicon.svg

This file was deleted.

8 changes: 8 additions & 0 deletions public/gov-meter-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ogImageAlt = `Screenshot of “${title}”`;
<title>{title}</title>
<link rel="canonical" href={canonical} />
<meta name="description" content={description} />
<link rel="shortcut icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="shortcut icon" href="/gov-meter-logo.svg" type="image/svg+xml" />
<script src="./theme.js"></script>
<meta name="generator" content={Astro.generator} />

Expand Down Expand Up @@ -56,7 +56,7 @@ const ogImageAlt = `Screenshot of “${title}”`;

<div class="floating-nav" aria-label="main navigation">
<div class="logo">
<a href="/" aria-label="home page" tabindex="-1"><img src="/favicon.svg" width="48" height="24" alt="GovMeter" aria-hidden="true"></a>
<a href="/" aria-label="home page" tabindex="-1"><img src="/gov-meter-logo.svg" width="32" height="32" alt="GovMeter" aria-hidden="true"></a>
</div>
<div class="btn-group">
<button
Expand Down

0 comments on commit ce5c0f0

Please sign in to comment.