Skip to content

Commit 0008663

Browse files
authored
feat: update social cards to use GitHub README banner image (#48)
1 parent fc81704 commit 0008663

5 files changed

Lines changed: 4 additions & 16 deletions

File tree

dapp/public/social-card.png

107 KB
Loading

dapp/public/sw.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ const CACHE_NAME = "tansu-v1";
33
const STATIC_ASSETS = [
44
"/",
55
"/logo.svg",
6-
"/logo-background.png",
76
"/manifest.json",
87
// Add more critical assets here
98
];

dapp/src/layouts/Layout.astro

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ const { title, page } = Astro.props;
128128
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
129129

130130
<!-- Preload critical resources -->
131-
<link rel="preload" as="image" href="/logo-background.png" />
132131
<link rel="preload" as="image" href="/logo.svg" />
133132

134133
<!-- Load fonts with font-display swap for performance -->
@@ -147,7 +146,7 @@ const { title, page } = Astro.props;
147146
basic: {
148147
title: title,
149148
type: "website",
150-
image: "https://app.tansu.dev/logo-background.png",
149+
image: "https://app.tansu.dev/social-card.png",
151150
url: `https://app.tansu.dev${Astro.url.pathname}`,
152151
},
153152
optional: {
@@ -159,7 +158,7 @@ const { title, page } = Astro.props;
159158
twitter={{
160159
creator: "@PamphileRoy",
161160
card: "summary_large_image",
162-
image: "https://app.tansu.dev/logo-background.png",
161+
image: "https://app.tansu.dev/social-card.png",
163162
title: title,
164163
description:
165164
"Bringing open source software development onto the Stellar blockchain",
@@ -217,15 +216,6 @@ const { title, page } = Astro.props;
217216
</script>
218217
</head>
219218
<body class="font-firacode min-h-screen flex flex-col">
220-
<img
221-
src="/logo-background.png"
222-
alt="Tansu background decoration"
223-
class="background-image hidden md:block"
224-
loading="lazy"
225-
decoding="async"
226-
width="1200"
227-
height="800"
228-
/>
229219
<Navbar page={page} />
230220
<slot />
231221
<Footer />

website/docusaurus.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,13 @@ const config: Config = {
7373
themes: ["@docusaurus/theme-mermaid"],
7474

7575
themeConfig: {
76-
// Replace with your project's social card
77-
image: "https://tansu.dev/img/logo.png",
76+
image: "img/social-card.png",
7877
metadata: [
7978
{ name: "x:creator", content: "@PamphileRoy" },
8079
{ name: "x:card", content: "summary_large_image" },
8180
{
8281
name: "x:image",
83-
content: "https://app.tansu.dev/logo.svg",
82+
content: "https://tansu.dev/img/social-card.png",
8483
},
8584
{ name: "x:title", content: "Tansu" },
8685
{

website/static/img/social-card.png

107 KB
Loading

0 commit comments

Comments
 (0)