Skip to content

Commit 52d887f

Browse files
committed
feat: improved og image
1 parent bc9cc09 commit 52d887f

File tree

9 files changed

+965
-26
lines changed

9 files changed

+965
-26
lines changed

astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import tutorialkit from '@tutorialkit/astro'
33
import { defineConfig } from 'astro/config'
44

55
export default defineConfig({
6-
site: 'https://tutorial.nimiq.com',
6+
site: 'https://nimiq-tutorial.maximogarciamtnez.workers.dev/',
77
devToolbar: {
88
enabled: false,
99
},

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default antfu({
44
formatters: true,
55
unocss: true,
66
astro: true,
7+
ignores: ['./public/widget.css', './public/widget.js'],
78
}, {
89
rules: {
910
'no-console': 'off',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"dependencies": {
1818
"@astrojs/vue": "^5.1.0",
1919
"@tutorialkit/react": "1.5.0",
20+
"astro-seo": "^0.8.4",
2021
"react": "^18.3.1",
2122
"react-dom": "^18.3.1",
2223
"reka-ui": "^2.3.1",

pnpm-lock.yaml

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/widget.js

Lines changed: 913 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/fetch-widget-assets.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// ESM version: Fetch Nimiq Feedback Widget assets using fetch and pathe
22
// Usage: node scripts/fetch-widget-assets.js
33

4+
import { Buffer } from 'node:buffer'
45
import fs from 'node:fs/promises'
56
import { fileURLToPath } from 'node:url'
67
import { dirname, join } from 'pathe'

src/components/CustomHeadLinks.astro

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
import {SEO} from 'astro-seo'
2+
3+
<SEO
4+
title="Nimiq Tutorial: Learn the Nimiq Web Client"
5+
description="A hands-on, interactive tutorial for mastering the Nimiq Web Client. Step-by-step lessons, code samples, and instant feedback for web-based Nimiq integration."
6+
siteUrl="https://nimiq-tutorial.maximogarciamtnez.workers.dev/"
7+
image="/og-image.jpg"
8+
twitterCardType="summary_large_image"
9+
twitterSite="@nimiq"
10+
twitterCreator="@nimiq"
11+
canonical="https://nimiq-tutorial.maximogarciamtnez.workers.dev/"
12+
/>
13+
114
<slot name="title" />
215
<slot name="links" />
316
<slot name="meta" />

src/components/FeedbackModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ onUnmounted(() => {
137137
</div>
138138

139139
<!-- Success state -->
140-
<div v-if="showSuccessMessage" class="h-64 flex flex-col items-center justify-center space-y-4 bg-green-50 dark:bg-green-900 px-6 py-4 rounded-xl">
140+
<div v-if="showSuccessMessage" class="h-64 flex flex-col items-center justify-center rounded-xl bg-green-50 px-6 py-4 space-y-4 dark:bg-green-900">
141141
<div class="i-ph:check-circle h-12 w-12 text-green-500" />
142142
<div class="text-lg text-green-600 font-medium dark:text-green-400">
143143
Thank you for your feedback!

theme.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
--tk-elements-app-textColor: var(--colors-neutral);
2626
--tk-elements-app-backgroundColor: var(--colors-neutral-0);
2727
--tk-elements-app-borderColor: var(--colors-neutral-300);
28-
28+
2929
/* Background tokens */
3030
--tk-background-primary: var(--colors-neutral-0);
3131
--tk-background-secondary: var(--colors-neutral-200);
@@ -162,7 +162,6 @@
162162
display: inherit !important;
163163
}
164164

165-
166165
/* Custom styling for Nimiq branding touches */
167166
.tk-topbar {
168167
background: var(--colors-neutral-gradient);
@@ -203,8 +202,7 @@
203202
:root {
204203
font-family:
205204
'Muli',
206-
'Mulish'
207-
'Inter',
205+
'Mulish' 'Inter',
208206
system-ui,
209207
-apple-system,
210208
sans-serif;

0 commit comments

Comments
 (0)