Skip to content

Commit b7c15b9

Browse files
committed
feat: add footer with attribution to techdiary.dev in GistCodeImageDialog
- Introduced a footer section in the GistCodeImageDialog component. - Added styling for the footer to enhance visual appearance and maintain consistency. - Ensured the footer is accessible and does not interfere with user interactions.
1 parent 01831a8 commit b7c15b9

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/components/Gist/GistCodeImageDialog.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,30 @@ export default function GistCodeImageDialog({
415415
{content}
416416
</SyntaxHighlighter>
417417
</div>
418+
<div
419+
aria-hidden
420+
className="select-none pointer-events-none"
421+
style={{
422+
display: "flex",
423+
justifyContent: "flex-end",
424+
marginTop: 10,
425+
paddingTop: 4,
426+
}}
427+
>
428+
<span
429+
style={{
430+
fontSize: 11,
431+
lineHeight: 1,
432+
color: "rgba(255, 255, 255, 0.32)",
433+
letterSpacing: "0.05em",
434+
fontFamily:
435+
'ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif',
436+
fontWeight: 500,
437+
}}
438+
>
439+
techdiary.dev
440+
</span>
441+
</div>
418442
</div>
419443
</div>
420444

0 commit comments

Comments
 (0)