Skip to content

Commit

Permalink
style: improve contrast errors, missing headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugomndez committed Aug 21, 2022
1 parent b5629bf commit bd6bc70
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
6 changes: 3 additions & 3 deletions src/components/Exchange/Exchange.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
font-style: normal;
font-weight: 500;
line-height: 1.6rem;
color: #757575;
color: var(--subtitle);
}

.tables {
Expand Down Expand Up @@ -96,14 +96,14 @@
font-size: 1.6rem;
font-weight: 500;
line-height: 1.9rem;
color: #b5b0ac;
color: var(--table-name);
}

.tableRight {
font-size: 1.4rem;
font-weight: normal;
line-height: 1.7rem;
color: #757575;
color: var(--subtitle);
}

.tableTopLeft {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Exchange/Exchange.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Exchange = () => {
</div>
<section className={styles.tables}>
<div className={styles.currencyTable}>
<p className={styles.currencyTableTitle}>{t('coins')}</p>
<h3 className={styles.currencyTableTitle}>{t('coins')}</h3>
<div className={styles.currencyTableContainer}>
<table className={styles.table}>
<tbody>
Expand Down Expand Up @@ -101,7 +101,7 @@ const Exchange = () => {
</div>
</div>
<div className={styles.comisionesTable}>
<p className={styles.comisionesTableTitle}>{t('commissions')}</p>
<h3 className={styles.comisionesTableTitle}>{t('commissions')}</h3>
<div className={styles.comisionesTableContainer}>
<table className={styles.table}>
<tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Plans/Plans.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
font-style: normal;
font-weight: 500;
line-height: 1.8rem;
color: #757575;
color: var(--subtitle);
}
.sliderContainer {
display: flex;
Expand Down Expand Up @@ -102,7 +102,7 @@
font-size: 1.2rem;
font-style: normal;
font-weight: 500;
color: #757575;
color: var(--subtitle);
}
.cardCta {
width: 150px;
Expand Down
12 changes: 6 additions & 6 deletions src/components/Plans/Plans.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const Plans = () => {
<article className={styles.cardContainer}>
<div>
<h3 className={styles.cardTitle}>{t('plans.0.payment')}</h3>
<p className={styles.cardPrice}>
<h4 className={styles.cardPrice}>
<span>$</span> {t('plans.0.price')}
</p>
</h4>
<p className={styles.cardSaving}>* {t('plans.0.description')}</p>
<button className={styles.cardCta}>
{t('plans.0.callToAction')}
Expand All @@ -36,9 +36,9 @@ const Plans = () => {
<p className={styles.recommended}>{t('recommended')}</p>
<div>
<h3 className={styles.cardTitle}>{t('plans.1.payment')}</h3>
<p className={styles.cardPrice}>
<h4 className={styles.cardPrice}>
<span>$</span> {t('plans.1.price')}
</p>
</h4>
<p className={styles.cardSaving}>* {t('plans.1.description')}</p>
<button className={styles.cardCta}>
{t('plans.1.callToAction')}
Expand All @@ -55,9 +55,9 @@ const Plans = () => {
<article className={styles.cardContainer}>
<div>
<h3 className={styles.cardTitle}>{t('plans.2.payment')}</h3>
<p className={styles.cardPrice}>
<h4 className={styles.cardPrice}>
<span>$</span> {t('plans.2.price')}
</p>
</h4>
<p className={styles.cardSaving}>* {t('plans.2.description')}</p>
<button className={styles.cardCta}>
{t('plans.2.callToAction')}
Expand Down
4 changes: 2 additions & 2 deletions src/components/ProductDetails/ProductDetails.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
font-style: normal;
font-weight: 500;
line-height: 1.8rem;
color: #808080;
color: var(--card-subtitle);
}
.card {
width: 90%;
Expand Down Expand Up @@ -64,7 +64,7 @@
font-style: normal;
font-weight: 500;
line-height: 1.8rem;
color: #808080;
color: var(--card-text);
}

@media screen and (min-width: 1000px) {
Expand Down
8 changes: 4 additions & 4 deletions src/components/ProductDetails/ProductDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ProductDetails = () => {
height={20}
className={styles.cardIcon}
/>
<p className={styles.cardTitle}>{t('details.0.name')}</p>
<h3 className={styles.cardTitle}>{t('details.0.name')}</h3>
<p className={styles.cardBody}>{t('details.0.description')}</p>
</article>
<article className={styles.card}>
Expand All @@ -39,7 +39,7 @@ const ProductDetails = () => {
height={20}
className={styles.cardIcon}
/>
<p className={styles.cardTitle}>{t('details.1.name')}</p>
<h3 className={styles.cardTitle}>{t('details.1.name')}</h3>
<p className={styles.cardBody}>{t('details.1.description')}</p>
</article>
<article className={styles.card}>
Expand All @@ -50,7 +50,7 @@ const ProductDetails = () => {
height={20}
className={styles.cardIcon}
/>
<p className={styles.cardTitle}>{t('details.2.name')}</p>
<h3 className={styles.cardTitle}>{t('details.2.name')}</h3>
<p className={styles.cardBody}>{t('details.2.description')}</p>
</article>
<article className={styles.card}>
Expand All @@ -61,7 +61,7 @@ const ProductDetails = () => {
height={20}
className={styles.cardIcon}
/>
<p className={styles.cardTitle}>{t('details.3.name')}</p>
<h3 className={styles.cardTitle}>{t('details.3.name')}</h3>
<p className={styles.cardBody}>{t('details.3.description')}</p>
</article>
</section>
Expand Down
4 changes: 4 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
--warm-black: #201e1c;
--black: #282623;
--grey: #bababa;
--subtitle: #717171; /*#757575*/
--table-name: #787572; /*#b5b0ac*/
--card-subtitle: #878787; /*#808080*/
--card-text: #8e8e8e; /*#808080*/
--off-white: #faf8f7;
--just-white: #ffffff;

Expand Down

0 comments on commit bd6bc70

Please sign in to comment.