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 Content component #1754

Merged
merged 3 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
3 changes: 1 addition & 2 deletions components/Content/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { cloneElement } from 'react';
import { array, bool, oneOf, string } from 'prop-types';
import Container from 'components/Container/Container';
import Heading from 'components/Heading/Heading';
import styles from './Content.module.css';

Content.propTypes = {
backgroundImageSource: string,
Expand Down Expand Up @@ -45,7 +44,7 @@ function Content({
>
{title && <Heading text={title} hasTitleUnderline={hasTitleUnderline} headingLevel={3} />}

<div className={styles.columnsContainer}>
<div className="flex justify-center items-center flex-wrap w-full [&>*]:m-4">
{/* eslint-disable-next-line react/no-array-index-key */}
{columns.map((column, index) => cloneElement(column, { key: index }))}
</div>
Expand Down
13 changes: 0 additions & 13 deletions components/Content/Content.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,3 @@
justify-content: center;
margin: 1rem auto;
}

.columnsContainer {
subhajit20 marked this conversation as resolved.
Show resolved Hide resolved
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
width: 100%;
}

/* the individual columns */
.columnsContainer > * {
margin: 1rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports[`Content should render with many props assigned 1`] = `
</h3>
</div>
<div
className="columnsContainer"
className="flex justify-center items-center flex-wrap w-full [&>*]:m-4"
>
<div>
<p>
Expand All @@ -65,7 +65,7 @@ exports[`Content should render with required props 1`] = `
className="content"
>
<div
className="columnsContainer"
className="flex justify-center items-center flex-wrap w-full [&>*]:m-4"
>
<div>
<p>
Expand Down