Skip to content

πŸ“ˆ Open source, privacy-first web analytics β€” a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

highlight important feedback parts

Blue Mouse075b7680312d
diff --git a/app/routes/index.tsx b/app/routes/index.tsx
index eb75c06f1..7ff54903f 100644
--- a/app/routes/index.tsx
+++ b/app/routes/index.tsx
@@ -158,7 +158,7 @@ const Problem = () => {
interface IFeedback {
name: string
title: string
- feedback: string
+ feedback: React.ReactNode
logoUrl: string
photoUrl: string
}
@@ -171,7 +171,11 @@ const Feedback = ({ name, title, feedback, logoUrl, photoUrl }: IFeedback) => (
<img alt='' src={logoUrl} className='mx-auto h-12' />
<figure className='mt-10'>
<blockquote className='text-center text-xl font-semibold leading-8 text-gray-900 dark:text-gray-50 sm:text-2xl sm:leading-9'>
- <p>{`β€œ${feedback}”`}</p>
+ <p>
+ <span>β€œ</span>
+ {feedback}
+ <span>”</span>
+ </p>
</blockquote>
<figcaption className='mt-10'>
<img alt='' src={photoUrl} className='mx-auto h-10 w-10 rounded-full' />
@@ -188,6 +192,14 @@ const Feedback = ({ name, title, feedback, logoUrl, photoUrl }: IFeedback) => (
</section>
)
+interface FeedbackHighlightProps {
+ children: React.ReactNode
+}
+
+const FeedbackHighlight = ({ children }: FeedbackHighlightProps) => (
+ <span className='bg-yellow-100/80 dark:bg-yellow-400/40'>{children}</span>
+)
+
const OpensourceAdvantages = ({ theme }: { theme: 'dark' | 'light' }) => {
const { t } = useTranslation('common')
@@ -884,7 +896,13 @@ export default function Index() {
title='Co-founder of Casterlabs'
logoUrl={theme === 'dark' ? '/assets/users/casterlabs-dark.svg' : '/assets/users/casterlabs-light.svg'}
photoUrl='/assets/users/alex-casterlabs.jpg'
- feedback="Swetrix has been a game changer for our analytics. They've always been on top of feature requests and bug reports and have been friendly every step of the way. I can't recommend them enough."
+ feedback={
+ <span>
+ Swetrix has been a <FeedbackHighlight>game changer for our analytics</FeedbackHighlight>. They've always
+ been on top of feature requests and bug reports and have been friendly every step of the way. I can't
+ recommend them enough.
+ </span>
+ }
/>
<CoreFeatures theme={theme} />
@@ -897,7 +915,13 @@ export default function Index() {
title='Co-founder of Phalcode'
logoUrl={theme === 'dark' ? '/assets/users/phalcode-dark.svg' : '/assets/users/phalcode-light.svg'}
photoUrl='/assets/users/alper-phalcode.jpg'
- feedback="Analytics needs on all of our products are provided by Swetrix only. It's unfathomable how good this service is compared to Google Analytics. Swetrix gives me everything I need to know about my websites."
+ feedback={
+ <span>
+ Analytics needs on all of our products are provided by Swetrix only. It's unfathomable how good this
+ service is compared to Google Analytics.
+ <FeedbackHighlight> Swetrix gives me everything I need to know about my websites</FeedbackHighlight>.
+ </span>
+ }
/>
<OpensourceAdvantages theme={theme} />