From c86282597032f4cfeec4c371ef43f65bd459218f Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 10 May 2022 15:52:12 -0400 Subject: [PATCH] Add dark mode support to landing page --- app/soapbox/components/landing-gradient.tsx | 2 +- app/soapbox/components/ui/checkbox/checkbox.tsx | 2 +- app/soapbox/features/landing_page/index.tsx | 3 ++- app/soapbox/features/public_layout/index.js | 14 ++++++-------- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/soapbox/components/landing-gradient.tsx b/app/soapbox/components/landing-gradient.tsx index 53e500d28..28be27373 100644 --- a/app/soapbox/components/landing-gradient.tsx +++ b/app/soapbox/components/landing-gradient.tsx @@ -2,7 +2,7 @@ import React from 'react'; /** Fullscreen gradient used as a backdrop to public pages. */ const LandingGradient: React.FC = () => ( -
+
); export default LandingGradient; diff --git a/app/soapbox/components/ui/checkbox/checkbox.tsx b/app/soapbox/components/ui/checkbox/checkbox.tsx index dc7a4e370..3199d4a33 100644 --- a/app/soapbox/components/ui/checkbox/checkbox.tsx +++ b/app/soapbox/components/ui/checkbox/checkbox.tsx @@ -9,7 +9,7 @@ const Checkbox = React.forwardRef((props, ref) => { {...props} ref={ref} type='checkbox' - className='focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded' + className='dark:bg-slate-800 dark:border-gray-600 focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded' /> ); }); diff --git a/app/soapbox/features/landing_page/index.tsx b/app/soapbox/features/landing_page/index.tsx index 4d408666d..586f198e2 100644 --- a/app/soapbox/features/landing_page/index.tsx +++ b/app/soapbox/features/landing_page/index.tsx @@ -68,13 +68,14 @@ const LandingPage = () => { return (
-
+

{instance.title}

+ {instance.description} diff --git a/app/soapbox/features/public_layout/index.js b/app/soapbox/features/public_layout/index.js index 99d7f48e3..a7cb641eb 100644 --- a/app/soapbox/features/public_layout/index.js +++ b/app/soapbox/features/public_layout/index.js @@ -41,14 +41,12 @@ class PublicLayout extends ImmutablePureComponent {
-
-
- - - - - -
+
+ + + + +