Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
highlight important feedback parts
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaumaus committed Sep 16, 2024
1 parent 90f6eeb commit 075b768
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions app/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const Problem = () => {
interface IFeedback {
name: string
title: string
feedback: string
feedback: React.ReactNode
logoUrl: string
photoUrl: string
}
Expand All @@ -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' />
Expand All @@ -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')

Expand Down Expand Up @@ -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} />
Expand All @@ -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} />
Expand Down

0 comments on commit 075b768

Please sign in to comment.