feat: add crisp (#53)

### Explanation

_No response_

### Issue

_No response_

### Attestations

- [ ] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/)
- [ ] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/).
- [ ] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/).

### Dependencies

- [ ] I have pinned the dependencies to a specific patch version.

### Style

- [ ] I have run the linter and resolved any errors.
- [ ] My pull request uses an appropriate title, matching the conventional commit standards.
- [ ] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request.

### Tests

- [ ] My contribution adds new code, and I have added tests to cover it.
- [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes.
- [ ] All new and existing tests pass locally with my changes.
- [ ] Code coverage remains at or above the configured threshold.

### Documentation

_No response_

### Versioning

_No response_

Reviewed-on: https://codeberg.org/nhcarrigan/portfolio/pulls/53
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
This commit is contained in:
Naomi Carrigan 2024-11-28 22:46:04 +00:00 committed by Naomi the Technomancer
parent 065c1dabd6
commit 9e9df55ad2
3 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,7 @@
"@pixiv/three-vrm": "3.1.6",
"@react-three/drei": "9.117.2",
"@react-three/fiber": "9.0.0-beta.1",
"crisp-sdk-web": "1.0.25",
"next": "15.0.2",
"next-plausible": "3.12.2",
"react": "18.3.1",

8
pnpm-lock.yaml generated
View File

@ -34,6 +34,9 @@ importers:
'@react-three/fiber':
specifier: 9.0.0-beta.1
version: 9.0.0-beta.1(@types/react@18.3.12)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(three@0.170.0)
crisp-sdk-web:
specifier: 1.0.25
version: 1.0.25
next:
specifier: 15.0.2
version: 15.0.2(@babel/core@7.26.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
@ -1805,6 +1808,9 @@ packages:
core-js-compat@3.38.1:
resolution: {integrity: sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw==}
crisp-sdk-web@1.0.25:
resolution: {integrity: sha512-CWTHFFeHRV0oqiXoPh/aIAKhFs6xcIM4NenGPnClAMCZUDQgQsF1OWmZWmnVNjJriXUmWRgDfeUxcxygS0dCRA==}
cross-env@7.0.3:
resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==}
engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'}
@ -5725,6 +5731,8 @@ snapshots:
dependencies:
browserslist: 4.24.2
crisp-sdk-web@1.0.25: {}
cross-env@7.0.3:
dependencies:
cross-spawn: 7.0.3

View File

@ -6,6 +6,7 @@
"use client";
import { faComments } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Crisp } from "crisp-sdk-web";
import { usePathname } from "next/navigation";
import Script from "next/script";
import React, { type JSX } from "react";
@ -16,6 +17,7 @@ import React, { type JSX } from "react";
* @returns A JSX element.
*/
export const Footer = (): JSX.Element | null => {
Crisp.configure("5398ce41-4ceb-4e31-9049-4c784a70179a");
const pathname = usePathname();
const isRootPath = pathname === "/";