Skip to content

Commit

Permalink
feat: provide good head (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az authored Jan 25, 2024
2 parents 7d51c42 + 9728d85 commit b368e67
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 37 deletions.
6 changes: 6 additions & 0 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@observablehq/plot": "^0.6.13",
"@urql/svelte": "4.0.4",
"astro": "4.0.9",
"astro-seo": "^0.8.0",
"graphql": "16.8.1",
"htl": "^0.3.1",
"rehype-autolink-headings": "^7.1.0",
Expand Down
3 changes: 3 additions & 0 deletions site/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion site/site.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
packages = {
site = pkgs.buildNpmPackage {
npmDepsHash = "sha256-Yoq8eCZEj6tViTyL5Uj+sr1EOWl9AXiF3/L7DTZrfyw=";
npmDepsHash = "sha256-4YxL4ubvVgwi+30Q7Cd9xJGFxFBlylLrE0eTgy7jSi4=";
src = ./.;
pname = "site";
version = "0.0.1";
Expand Down
68 changes: 68 additions & 0 deletions site/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
import '#/styles/reset.css'
import '#/styles/tailwind.css'
import { SEO } from 'astro-seo'
import '@fontsource/ibm-plex-mono'
import '@fontsource/jetbrains-mono'
import Header from '#/components/Header.svelte'
---

<html lang='en'>
<head>
<meta charset='utf-8' />
<SEO
title='Union'
description='The Sovereign Interoperability Layer'
openGraph={{
basic: {
title: 'Union',
type: 'website',
image: '/logo.png',
url: 'https://union.build'
},
optional: {
locale: 'en',
siteName: 'Union',
description: 'The Sovereign Interoperability Layer'
},
image: {
url: '/logo.png'
}
}}
twitter={{
title: 'Union',
image: '/logo.png',
imageAlt: 'Union Logo',
creator: '@union_build',
site: 'https://union.build',
card: 'summary_large_image',
description: 'The Sovereign Interoperability Layer'
}}
extend={{
link: [
{ rel: 'icon', href: 'favicon.ico' },
{ rel: 'canonical', href: 'https://union.build' }
],
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1.0' },
{ name: 'twitter:domain', content: 'union.build' },
{ name: 'twitter:url', content: 'https://union.build' },
{ name: 'twitter:description', content: 'The Sovereign Interoperability Layer' }
]
}}
/>
</head>
<body
class='font-sans flex flex-col items-stretch flex-1 shadow-effect-bg pb-12 bg-black text-white not-content'
>
<Header />

<slot />

<footer
class='flex items-center pt-8 p-4 gap-4 justify-center text-lg font-normal bottom-0 mx-auto w-full'
>
<p>&copy; Union.fi Labs, Inc.</p>
</footer>
</body>
</html>
33 changes: 0 additions & 33 deletions site/src/layouts/Layout.svelte

This file was deleted.

2 changes: 1 addition & 1 deletion site/src/pages/blog/[...slug].astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import Layout from '#/layouts/Layout.svelte'
import Layout from '#/layouts/Layout.astro'
import { getCollection } from 'astro:content'
import Socials from '#/components/Socials.astro'
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/blog/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import { fade,slide, } from 'astro:transitions'
import Layout from '#/layouts/Layout.svelte'
import Layout from '#/layouts/Layout.astro'
import { getCollection } from 'astro:content'
const isProduction = import.meta.env.PROD
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
import { fade } from 'astro:transitions'
import Layout from '#/layouts/Layout.svelte'
import Layout from '#/layouts/Layout.astro'
import { getCollection } from 'astro:content'
import Socials from '#/components/Socials.astro'
import CodeSnippet from '#/components/CodeSnippet.svelte'
Expand Down

0 comments on commit b368e67

Please sign in to comment.