Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced all the css into tailwind css on SuccessStory component #1769

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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