Skip to content

Commit

Permalink
Replaced all the css into tailwind css on SuccessStory component (#1769)
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajit20 authored Nov 14, 2023
1 parent 2b5ad41 commit f6f3a81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 60 deletions.
9 changes: 4 additions & 5 deletions components/SuccessStory/SuccessStory.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { string } from 'prop-types';
import Image from 'next/image';
import styles from './SuccessStory.module.css';

SuccessStory.propTypes = {
imageSource: string.isRequired,
Expand All @@ -10,8 +9,8 @@ SuccessStory.propTypes = {

function SuccessStory({ imageSource, quote, title }) {
return (
<div className={styles.SuccessStory}>
<div className={styles.imageWrapper}>
<div className="box-border flex flex-col flex-nowrap items-center my-12 mx-4 pt-14 relative max-w-[320px] h-[940px] md:h-[748px] sm:h-auto">
<div className="absolute top-0 h-48 shadow-[1px_2px_5p_3px_rgba(0, 0, 0, 0.35)]">
<Image
alt={`${title} headshot`}
src={imageSource}
Expand All @@ -21,8 +20,8 @@ function SuccessStory({ imageSource, quote, title }) {
/>
</div>

<div className={styles.quote}>
<h6 className={styles.title}>{title}</h6>
<div className="flex flex-1 flex-col flex-nowrap items-center p-8 pt-40 border-2 border-solid border-primary [&>blockquote]:my-4 [&>blockquote]:mx-0 [&>blockquote]:text-base">
<h6 className="text-center text-base">{title}</h6>
<blockquote>{`"${quote}"`}</blockquote>
</div>
</div>
Expand Down
51 changes: 0 additions & 51 deletions components/SuccessStory/SuccessStory.module.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

exports[`SuccessStory should render with required props 1`] = `
<div
className="SuccessStory"
className="box-border flex flex-col flex-nowrap items-center my-12 mx-4 pt-14 relative max-w-[320px] h-[940px] md:h-[748px] sm:h-auto"
>
<div
className="imageWrapper"
className="absolute top-0 h-48 shadow-[1px_2px_5p_3px_rgba(0, 0, 0, 0.35)]"
>
<MockedNextImage
alt="Great testing culture headshot"
Expand All @@ -16,10 +16,10 @@ exports[`SuccessStory should render with required props 1`] = `
/>
</div>
<div
className="quote"
className="flex flex-1 flex-col flex-nowrap items-center p-8 pt-40 border-2 border-solid border-primary [&>blockquote]:my-4 [&>blockquote]:mx-0 [&>blockquote]:text-base"
>
<h6
className="title"
className="text-center text-base"
>
Great testing culture
</h6>
Expand Down

2 comments on commit f6f3a81

@vercel
Copy link

@vercel vercel bot commented on f6f3a81 Nov 14, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on f6f3a81 Nov 14, 2023

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.