Skip to content

Commit

Permalink
Refactor code in Feedbacks.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
carltrepanier committed Jan 23, 2024
1 parent 101550e commit 8a5be2c
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/components/Feedbacks.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable react-refresh/only-export-components */
/* eslint-disable react/no-unescaped-entities */
/* eslint-disable react/prop-types */
import { motion } from "framer-motion";
import { styles } from "../styles";
import { SectionWrapper } from "../hoc";
import { fadeIn, textVariant } from "../utils/motion";
import { testimonials } from "../constants";
import { motion } from 'framer-motion';
import { styles } from '../styles';
import { SectionWrapper } from '../hoc';
import { fadeIn, textVariant } from '../utils/motion';
import { testimonials } from '../constants';

const FeedbackCard = ({
index,
Expand All @@ -16,30 +16,30 @@ const FeedbackCard = ({
image,
}) => (
<motion.div
variants={fadeIn("", "spring", index * 0.5, 0.75)}
initial="hidden"
whileInView="show"
className="bg-black-200 p-10 rounded-3xl xs:w-[320px] w-full"
variants={fadeIn('', 'spring', index * 0.5, 0.75)}
initial='hidden'
whileInView='show'
className='bg-black-200 p-10 rounded-3xl xs:w-[320px] w-full'
>
<p className="text-white font-black text-[48px]">"</p>
<p className='text-white font-black text-[36px]'>"</p>

<div className="mt-1">
<p className="text-white tracking-wider text-[18px]">{testimonial}</p>
<div className='mt-1'>
<p className='text-white text-[18px]'>{testimonial}</p>

<div className="mt-7 flex justify-between items-center gap-1">
<div className="flex-1 flex flex-col">
<p className="text-white font-medium text-[16px]">
<span className="blue-text-gradient">@</span> {name}
<div className='mt-7 flex justify-between items-center gap-1'>
<div className='flex-1 flex flex-col'>
<p className='text-white font-medium text-[16px]'>
<span className='blue-text-gradient'>@</span> {name}
</p>
<p className="mt-1 text-secondary text-[12px]">
<p className='mt-1 text-secondary text-[12px]'>
{designation} chez {company}
</p>
</div>

<img
src={image}
alt={`feedback_by-${name}`}
className="w-10 h-10 rounded-full object-cover"
className='w-10 h-10 rounded-full object-cover'
/>
</div>
</div>
Expand All @@ -54,8 +54,8 @@ const Feedbacks = () => {
>
<motion.div
variants={textVariant()}
initial="hidden"
whileInView="show"
initial='hidden'
whileInView='show'
>
<p className={styles.sectionSubText}>Ce que les autres disent</p>
<h2 className={styles.sectionHeadText}>Témoignages.</h2>
Expand All @@ -72,4 +72,4 @@ const Feedbacks = () => {
);
};

export default SectionWrapper(Feedbacks, "");
export default SectionWrapper(Feedbacks, '');

1 comment on commit 8a5be2c

@vercel
Copy link

@vercel vercel bot commented on 8a5be2c Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.