File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed
Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import SocialIcon from '@/components/social-icons'
33
44import Image from 'next/image'
55
6- const Item = ( { link, text } : { link ?: string ; text ?: string } ) =>
6+ const Item = ( { link, text, target } : { link ?: string ; text ?: string ; target ?: string } ) =>
77 link &&
88 text && (
9- < a className = "opacity-60 hover:text-brandPrimary hover:opacity-100" href = { link } >
9+ < a className = "opacity-60 hover:text-brandPrimary hover:opacity-100" href = { link } target = { target } >
1010 { text }
1111 </ a >
1212 )
@@ -44,6 +44,7 @@ export default function Footer() {
4444 text = "Contributing"
4545 />
4646 < Item link = { 'https://github.com/openlit/openlit/blob/main/README.md' } text = "Readme" />
47+ < Item link = { siteMetadata . feedbackLink } text = "Feedback" target = "_blank" />
4748 </ div >
4849
4950 < div className = "flex flex-col gap-2" >
Original file line number Diff line number Diff line change @@ -58,6 +58,12 @@ export default function Header() {
5858 { link . title }
5959 </ Link >
6060 ) ) }
61+ < Link
62+ href = { siteMetadata . feedbackLink }
63+ className = { buttonVariants ( { variant : 'ghost' } ) }
64+ >
65+ Feedback
66+ </ Link >
6167 < a
6268 href = { siteMetadata . siteRepo }
6369 target = "_blank"
@@ -88,6 +94,9 @@ export default function Header() {
8894 { link . title }
8995 </ Link >
9096 ) ) }
97+ < Link href = { siteMetadata . feedbackLink } className = { buttonVariants ( { variant : 'ghost' } ) } >
98+ Feedback
99+ </ Link >
91100 </ nav >
92101 < div className = "hidden gap-2 md:flex" >
93102 < a
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { buttonVariants } from '../ui/button'
44import { HeroCards } from './hero-cards'
55import { GitHubLogoIcon , StarFilledIcon } from '@radix-ui/react-icons'
66import { BackgroundBeams } from '../ui/background-beams'
7+ import Link from 'next/link'
78
89export default function Hero ( ) {
910 return (
@@ -66,6 +67,13 @@ export default function Hero() {
6667 < GitHubLogoIcon className = "ml-2 h-5 w-5" />
6768 </ a >
6869 </ div >
70+ < Link
71+ href = { siteMetadata . feedbackLink }
72+ className = { `${ buttonVariants ( { variant : 'secondary' } ) } md:w-1/3` }
73+ target = "_blank"
74+ >
75+ Feedback
76+ </ Link >
6977 </ div >
7078
7179 { /* Hero cards sections */ }
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ module.exports = {
2020 discord : 'https://discord.com/invite/RbNPvG54' ,
2121 slack : 'https://join.slack.com/t/dokulabs/shared_invite/zt-2etnfttwg-TjP_7BZXfYg84oAukY8QRQ' ,
2222 locale : 'en-US' ,
23+ feedbackLink : 'https://app.formbricks.com/IiFk9GnqOF' ,
2324 analytics : {
2425 // If you want to use an analytics provider you have to add it to the
2526 // content security policy in the `next.config.js` file.
You can’t perform that action at this time.
0 commit comments