Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

refactoring fixed for pracing

kruzhambusaa879e6a182e
diff --git a/src/pages/MainPage/Pricing.jsx b/src/pages/MainPage/Pricing.jsx
index 05fa35f86..9ba6d79ac 100644
--- a/src/pages/MainPage/Pricing.jsx
+++ b/src/pages/MainPage/Pricing.jsx
@@ -189,11 +189,11 @@ const Pricing = ({ t, language }) => {
</p>
</>
)}
- <div className='relative self-center mt-6 bg-gray-100 dark:bg-gray-700 rounded-lg p-0.5 flex sm:mt-8 small:flex-row flex-col'>
+ <div className='relative self-center mt-6 bg-gray-100 dark:bg-gray-700 rounded-lg p-0.5 flex sm:mt-8 xs:flex-row flex-col'>
<button
type='button'
onClick={() => setBillingFrequency(BillingFrequency.monthly)}
- className={cx('relative small:w-1/2 rounded-md shadow-sm py-2 text-sm font-medium whitespace-nowrap sm:w-auto sm:px-8', {
+ className={cx('relative xs:w-1/2 rounded-md shadow-sm py-2 text-sm font-medium whitespace-nowrap sm:w-auto sm:px-8', {
'bg-white border-gray-200 text-gray-900 dark:bg-gray-800 dark:border-gray-800 dark:text-gray-50': billingFrequency === BillingFrequency.monthly,
'text-gray-700 dark:text-gray-100': billingFrequency === BillingFrequency.yearly,
})}
@@ -203,7 +203,7 @@ const Pricing = ({ t, language }) => {
<button
type='button'
onClick={() => setBillingFrequency(BillingFrequency.yearly)}
- className={cx('ml-0.5 relative small:w-1/2 border border-transparent rounded-md py-2 text-sm font-medium whitespace-nowrap sm:w-auto sm:px-8', {
+ className={cx('ml-0.5 relative xs:w-1/2 border border-transparent rounded-md py-2 text-sm font-medium whitespace-nowrap sm:w-auto sm:px-8', {
'text-gray-700 dark:text-gray-100': billingFrequency === BillingFrequency.monthly,
'bg-white border-gray-200 text-gray-900 dark:bg-gray-800 dark:border-gray-800 dark:text-gray-50': billingFrequency === BillingFrequency.yearly,
})}
diff --git a/tailwind.config.js b/tailwind.config.js
index 897bc1474..b21060a00 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -5,7 +5,7 @@ module.exports = {
darkMode: 'class', // or 'media' or 'class'
theme: {
screens: {
- 'small': '370px',
+ 'xs': '400px',
},
extend: {
colors: {