|
1 | | -import React, { Component } from 'react'; |
2 | 1 | import { useTranslation } from 'react-i18next'; |
3 | 2 |
|
4 | 3 | const Features = () => { |
5 | 4 | const { t, i18n } = useTranslation(); |
6 | 5 | return ( |
7 | | - <div className="row marketing cols-3"> |
8 | | - <div> |
9 | | - <h4>{t('features.find-remove.header')}</h4> |
10 | | - <p |
11 | | - dangerouslySetInnerHTML={{ |
12 | | - __html: t('features.find-remove.body', { |
13 | | - strongOpen: '<strong>', |
14 | | - strongClose: '</strong>', |
15 | | - }), |
16 | | - }} |
17 | | - /> |
| 6 | + <div className="mx-auto py-16 max-w-4xl px-4 sm:px-6 lg:px-8"> |
| 7 | + <div className="flex flex-col gap-8 md:grid md:grid-cols-3 md:gap-x-12 md:space-x-0"> |
| 8 | + <div> |
| 9 | + <h4 className="text-xl font-semibold text-slate-800 dark:text-slate-200">{t('features.find-remove.header')}</h4> |
| 10 | + <p |
| 11 | + className="pt-2 text-sm leading-6 font-semibold text-slate-600 dark:text-slate-300" |
| 12 | + dangerouslySetInnerHTML={{ |
| 13 | + __html: t('features.find-remove.body', { |
| 14 | + strongOpen: '<strong>', |
| 15 | + strongClose: '</strong>', |
| 16 | + }), |
| 17 | + }} |
| 18 | + /> |
| 19 | + </div> |
| 20 | + <div> |
| 21 | + <h4 className="text-xl font-semibold text-slate-800 dark:text-slate-200">{t('features.safer.header')}</h4> |
| 22 | + <p className="pt-2 text-sm leading-6 font-semibold text-slate-600 dark:text-slate-300" |
| 23 | + dangerouslySetInnerHTML={{ |
| 24 | + __html: t('features.safer.body', { |
| 25 | + strongOpen: '<strong>', |
| 26 | + strongClose: '</strong>', |
| 27 | + }), |
| 28 | + }} |
| 29 | + /> |
| 30 | + </div> |
| 31 | + <div> |
| 32 | + <h4 className="text-xl font-semibold text-slate-800 dark:text-slate-200">{t('features.open-source.header')}</h4> |
| 33 | + <p className="pt-2 text-sm leading-6 font-semibold text-slate-600 dark:text-slate-300" |
| 34 | + dangerouslySetInnerHTML={{ |
| 35 | + __html: t('features.open-source.body', { |
| 36 | + linkGithubOpen: |
| 37 | + '<strong><a href="https://github.com/JMPerez/spotify-dedup/">', |
| 38 | + linkGithubClose: '</a></strong>', |
| 39 | + linkWebApiOpen: |
| 40 | + '<a href="https://developer.spotify.com/web-api/">', |
| 41 | + linkWebApiClose: '</a>', |
| 42 | + }), |
| 43 | + }} |
| 44 | + /> |
| 45 | + </div> |
18 | 46 | </div> |
19 | | - <div> |
20 | | - <h4>{t('features.safer.header')}</h4> |
21 | | - <p |
22 | | - dangerouslySetInnerHTML={{ |
23 | | - __html: t('features.safer.body', { |
24 | | - strongOpen: '<strong>', |
25 | | - strongClose: '</strong>', |
26 | | - }), |
27 | | - }} |
28 | | - /> |
29 | | - </div> |
30 | | - <div> |
31 | | - <h4>{t('features.open-source.header')}</h4> |
32 | | - <p |
33 | | - dangerouslySetInnerHTML={{ |
34 | | - __html: t('features.open-source.body', { |
35 | | - linkGithubOpen: |
36 | | - '<strong><a href="https://github.com/JMPerez/spotify-dedup/">', |
37 | | - linkGithubClose: '</a></strong>', |
38 | | - linkWebApiOpen: |
39 | | - '<a href="https://developer.spotify.com/web-api/">', |
40 | | - linkWebApiClose: '</a>', |
41 | | - }), |
42 | | - }} |
43 | | - /> |
44 | | - </div> |
45 | | - <style jsx> |
46 | | - {` |
47 | | - .row { |
48 | | - margin-right: -15px; |
49 | | - margin-left: -15px; |
50 | | - } |
51 | | - .marketing { |
52 | | - padding-left: 15px; |
53 | | - padding-right: 15px; |
54 | | - } |
55 | | - .row:after, |
56 | | - .row:before { |
57 | | - display: table; |
58 | | - content: ' '; |
59 | | - } |
60 | | - .row:after { |
61 | | - clear: both; |
62 | | - } |
63 | | - h4 { |
64 | | - font-size: 18px; |
65 | | - line-height: 1.1; |
66 | | - margin-top: 10px; |
67 | | - margin-bottom: 10px; |
68 | | - } |
69 | | - .cols-3 > div { |
70 | | - flex: 1; |
71 | | - padding-right: 15px; |
72 | | - padding-left: 15px; |
73 | | - padding-bottom: 4px; |
74 | | - } |
75 | | - @media (min-width: 768px) { |
76 | | - .cols-3 { |
77 | | - display: flex; |
78 | | - flex-wrap: wrap; |
79 | | - } |
80 | | - } |
81 | | - `} |
82 | | - </style> |
83 | 47 | </div> |
84 | 48 | ); |
85 | 49 | }; |
|
0 commit comments