From 428df9de87ec41397300d3c0c09a9b394dd8e522 Mon Sep 17 00:00:00 2001 From: Rui Lebre Date: Thu, 27 Oct 2022 19:16:39 +0100 Subject: [PATCH] Updated CMS queries; Improved main layout --- components/cookies-consent/index.tsx | 46 ++++++++-------- pages/index.tsx | 78 +++++++++++++--------------- services/cookie.ts | 3 ++ services/documentation.ts | 2 +- services/index-page.ts | 8 ++- styles/Home.module.scss | 1 + 6 files changed, 69 insertions(+), 69 deletions(-) create mode 100644 services/cookie.ts diff --git a/components/cookies-consent/index.tsx b/components/cookies-consent/index.tsx index 3f5c80c..17970b6 100644 --- a/components/cookies-consent/index.tsx +++ b/components/cookies-consent/index.tsx @@ -19,31 +19,27 @@ const CookiesConsentBanner = () => { [setChose] ); - return ( - <> - {chose === 'NA' && ( -
- - This website uses cookies to ensure to gather anonymous data for statistical purposes. If you decline we - will stop to track your session. - -
- - -
-
- )} - - ); + return chose === 'NA' ? ( +
+ + This website uses cookies to ensure to gather anonymous data for statistical purposes. If you decline we will + stop to track your session. + +
+ + +
+
+ ) : null; }; export const CookieConsentProvider = ({ children }: { children: React.ReactNode }) => { diff --git a/pages/index.tsx b/pages/index.tsx index 57bfc02..3753c63 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -37,52 +37,48 @@ const Home: NextPage = ({ about, applications, features, resources, c ))} -
-
- -
{about.about}
-
+
+ +
{about.about}
+
- - {applications.map(({ attributes }) => ( - - ))} - + + {applications.map(({ attributes }) => ( + + ))} + - - {features.map(({ attributes }) => ( - - ))} - + + {features.map(({ attributes }) => ( + + ))} + - - <> -
-

Dicoogle is a free and open source software.

-

The code is available and you can freely contribute to its development.

+ +
+

Dicoogle is a free and open source software.

+

The code is available and you can freely contribute to its development.

-

- Dicoogle source code is under{' '} - - - GNU General Public License v3.0. - - -

-
+

+ Dicoogle source code is under{' '} + + + GNU General Public License v3.0. + + +

+
- {resources.map(({ attributes }) => ( -
-
+ {resources.map(({ attributes }) => ( +