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 }) => (
+
+ ))}
+
+
>
);
};
diff --git a/services/cookie.ts b/services/cookie.ts
new file mode 100644
index 0000000..14b6d7b
--- /dev/null
+++ b/services/cookie.ts
@@ -0,0 +1,3 @@
+export const getCookieNotice = () => {
+ return fetch(`${process.env.NEXT_PUBLIC_CMS_URL}/api/cookie-notice`).then((res) => res.json());
+};
diff --git a/services/documentation.ts b/services/documentation.ts
index f69bfa3..1e1307c 100644
--- a/services/documentation.ts
+++ b/services/documentation.ts
@@ -1,5 +1,5 @@
export const getDocumentation = () => {
- return fetch(`${process.env.NEXT_PUBLIC_CMS_URL}/api/documentations?populate=*`)
+ return fetch(`${process.env.NEXT_PUBLIC_CMS_URL}/api/cards?filters[type][$eq]=documentation&populate=*`)
.then((res) => res.json())
.then((res) => res.data);
};
diff --git a/services/index-page.ts b/services/index-page.ts
index 7f89d5a..7dd21ed 100644
--- a/services/index-page.ts
+++ b/services/index-page.ts
@@ -9,11 +9,15 @@ export const getAbout = () => {
};
export const getApplications = () => {
- return fetch(`${process.env.NEXT_PUBLIC_CMS_URL}/api/home-applications?populate=image`).then((res) => res.json());
+ return fetch(`${process.env.NEXT_PUBLIC_CMS_URL}/api/cards?filters[type][$eq]=application&populate=*`).then((res) =>
+ res.json()
+ );
};
export const getFeatures = () => {
- return fetch(`${process.env.NEXT_PUBLIC_CMS_URL}/api/home-features?populate=image`).then((res) => res.json());
+ return fetch(`${process.env.NEXT_PUBLIC_CMS_URL}/api/cards?filters[type][$eq]=feature&populate=*`).then((res) =>
+ res.json()
+ );
};
export const getResources = () => {
diff --git a/styles/Home.module.scss b/styles/Home.module.scss
index 5953cae..691433f 100644
--- a/styles/Home.module.scss
+++ b/styles/Home.module.scss
@@ -11,6 +11,7 @@
justify-content: center;
align-items: center;
@apply md:mt-24;
+ @apply container;
}
.footer {