diff --git a/package-lock.json b/package-lock.json index 7b8f15a..f0310fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "docling-website", "version": "0.1.0", "dependencies": { + "add-to-calendar-button": "^2.9.1", "bootstrap": "^5.3.2", "next": "14.2.25", "react": "^18", @@ -1289,6 +1290,18 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/add-to-calendar-button": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/add-to-calendar-button/-/add-to-calendar-button-2.9.1.tgz", + "integrity": "sha512-tOvSB738Me1zgXFuJ6LVEaWf2SftEMETRch79hKLrrA+NdLR8LNk7vQSnewzDV/uzUx/wgqqvPJah3mmAGgxdQ==", + "dependencies": { + "timezones-ical-library": "^1.10.0" + }, + "engines": { + "node": ">=18.17.0", + "npm": ">=9.6.7" + } + }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -5671,6 +5684,15 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, + "node_modules/timezones-ical-library": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/timezones-ical-library/-/timezones-ical-library-1.10.0.tgz", + "integrity": "sha512-aSwylC0FyyxMqMjkuaYz56HBhhooYabGT74CbTuY1uOeIcBXSQTXf+u/mTR0MWJFPQDe21REjex+4wt0OdFDpA==", + "engines": { + "node": ">=18.17.0", + "npm": ">=9.6.7" + } + }, "node_modules/tinyglobby": { "version": "0.2.14", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz", diff --git a/package.json b/package.json index add42da..8381ae8 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "prepare": "husky install" }, "dependencies": { + "add-to-calendar-button": "^2.9.1", "bootstrap": "^5.3.2", "next": "14.2.25", "react": "^18", diff --git a/public/images/assistant.webp b/public/images/assistant.webp index cffc201..1adb419 100644 Binary files a/public/images/assistant.webp and b/public/images/assistant.webp differ diff --git a/public/images/avatar.webp b/public/images/avatar.webp index 488edd0..8005356 100644 Binary files a/public/images/avatar.webp and b/public/images/avatar.webp differ diff --git a/src/components/darkFooter/DarkFooter.tsx b/src/components/darkFooter/DarkFooter.tsx index 7e45bfc..e46824b 100644 --- a/src/components/darkFooter/DarkFooter.tsx +++ b/src/components/darkFooter/DarkFooter.tsx @@ -16,11 +16,11 @@ const DarkFooter = () => {
-
- +
+ + Docling - Docling
diff --git a/src/components/darkHeader/DarkHeader.tsx b/src/components/darkHeader/DarkHeader.tsx index 8d755c8..a9345b0 100644 --- a/src/components/darkHeader/DarkHeader.tsx +++ b/src/components/darkHeader/DarkHeader.tsx @@ -34,13 +34,13 @@ const DarkHeader = () => {
-
- +
+ + + Docling + - - Docling -
{isActive && (
@@ -92,13 +92,14 @@ const DarkHeader = () => { )}
-
- +
+ + + + Docling + - - Docling -
)) - : DARK_SOCIALS?.map((s, index) => ( -
- -
- {isFooter ? : s.icon} - - {s?.url?.toLowerCase()?.includes("github") - ? isFooter - ? `GitHub | ${counts.github} Stars` - : counts.github - : s.count} - -
- -
- ))} + : DARK_SOCIALS?.filter((s) => (isFooter ? s.count : true)).map( + (s, index) => ( +
+ +
+ {isFooter && index == 0 ? ( + + ) : ( + s.icon + )} + + {s?.url?.toLowerCase()?.includes("github") + ? isFooter + ? `GitHub | ${counts.github} Stars` + : counts.github + : s.count} + +
+ +
+ ), + )}
); }; diff --git a/src/utils/constants.tsx b/src/utils/constants.tsx index b49f50c..dacd2ee 100644 --- a/src/utils/constants.tsx +++ b/src/utils/constants.tsx @@ -1,3 +1,4 @@ +import Discord from "@/components/icons/Discord"; import Document from "@/components/icons/Document"; import GenAi from "@/components/icons/GenAi"; import Github from "@/components/icons/Github"; @@ -105,6 +106,11 @@ const DARK_SOCIALS = [ count: "24k", url: "https://github.com/docling-project/docling", }, + { + icon: , + count: "", + url: "https://discord.gg/wJuvux5Q", + }, ]; export const STARTED_CARD = [