Skip to content

Commit 55ff73a

Browse files
feat: Feedback component
1 parent 75009c2 commit 55ff73a

File tree

5 files changed

+41
-0
lines changed

5 files changed

+41
-0
lines changed

astro.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export default defineConfig({
8080
Head: "~/components/starlight/Head.astro",
8181
MarkdownContent: "~/components/starlight/MarkdownContent.astro",
8282
SocialIcons: "~/components/starlight/SocialIcons.astro",
83+
Pagination: "~/components/starlight/Pagination.astro",
8384
},
8485
social: [
8586
{

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@tailwindcss/vite": "^4.1.11",
1919
"astro": "^5.12.9",
2020
"astro-embed": "^0.9.0",
21+
"astro-feelback": "^0.3.4",
2122
"astro-icon": "^1.1.5",
2223
"astro-og-canvas": "^0.7.0",
2324
"astro-vtbot": "^2.1.7",

pnpm-lock.yaml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
import FeelbackTaggedMessage from "astro-feelback/components/FeelbackTaggedMessage.astro";
3+
import "astro-feelback/styles/feelback.css";
4+
5+
const CONTENT_SET_ID = "ee441389-b4e1-40c6-8d94-5140dbf1941a";
6+
---
7+
8+
<FeelbackTaggedMessage
9+
contentSetId={CONTENT_SET_ID}
10+
preset="evaluation"
11+
title="Was this page useful?"
12+
layout="reveal-message"
13+
style={["bordered", "align-center"]}
14+
showCount
15+
withEmail
16+
/>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
import StarlightPagination from "@astrojs/starlight/components/Pagination.astro";
3+
import FeedbackComponent from "~/components/FeedbackComponent.astro";
4+
---
5+
<>
6+
<FeedbackComponent />
7+
<StarlightPagination {...Astro.props} />
8+
</>

0 commit comments

Comments
 (0)