diff --git a/package-lock.json b/package-lock.json index 9add4fd..2fe6cce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2393,6 +2393,7 @@ "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==", "optional": true, + "peer": true, "dependencies": { "@emotion/memoize": "0.7.4" } @@ -2401,7 +2402,8 @@ "version": "0.7.4", "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", - "optional": true + "optional": true, + "peer": true }, "node_modules/@esbuild/aix-ppc64": { "version": "0.19.12", @@ -3050,6 +3052,14 @@ "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==" }, + "node_modules/@icons-pack/react-simple-icons": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/@icons-pack/react-simple-icons/-/react-simple-icons-9.6.0.tgz", + "integrity": "sha512-8lDLssg+2aJutepQV/P4zlGm0fgujSeIItCYaLKo+25NtwepozWxZJOnc5WGHSi3HjiLcGmxI6dA2eiD5w3i+w==", + "peerDependencies": { + "react": "^16.13 || ^17 || ^18" + } + }, "node_modules/@internationalized/date": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/@internationalized/date/-/date-3.5.2.tgz", @@ -9747,20 +9757,21 @@ } }, "node_modules/framer-motion": { - "version": "11.0.5", - "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.0.5.tgz", - "integrity": "sha512-Lb0EYbQcSK/pgyQUJm+KzsQrKrJRX9sFRyzl9hSr9gFG4Mk8yP7BjhuxvRXzblOM/+JxycrJdCDVmOQBsjpYlw==", + "version": "11.3.2", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.3.2.tgz", + "integrity": "sha512-RgjSzrNFZmedWcvmW4MMc84A7UcoY37jocadE3Mbg3o+UMofodfyeNnYD/HR15UhP22/bb5KOebNhYOj4mYkpQ==", "dependencies": { "tslib": "^2.4.0" }, - "optionalDependencies": { - "@emotion/is-prop-valid": "^0.8.2" - }, "peerDependencies": { + "@emotion/is-prop-valid": "*", "react": "^18.0.0", "react-dom": "^18.0.0" }, "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, "react": { "optional": true }, @@ -16247,11 +16258,12 @@ "@fortawesome/free-brands-svg-icons": "^6.5.2", "@fortawesome/free-solid-svg-icons": "^6.5.1", "@fortawesome/react-fontawesome": "^0.2.0", + "@icons-pack/react-simple-icons": "^9.6.0", "@nextui-org/react": "^2.2.9", "@sc07-canvas/lib": "^1.0.0", "@typescript-eslint/parser": "^7.1.0", "eventemitter3": "^5.0.1", - "framer-motion": "^11.0.5", + "framer-motion": "^11.3.2", "lodash.throttle": "^4.1.1", "prop-types": "^15.8.1", "react": "^18.2.0", diff --git a/packages/client/package.json b/packages/client/package.json index 4c45fac..e838032 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -24,11 +24,12 @@ "@fortawesome/free-brands-svg-icons": "^6.5.2", "@fortawesome/free-solid-svg-icons": "^6.5.1", "@fortawesome/react-fontawesome": "^0.2.0", + "@icons-pack/react-simple-icons": "^9.6.0", "@nextui-org/react": "^2.2.9", "@sc07-canvas/lib": "^1.0.0", "@typescript-eslint/parser": "^7.1.0", "eventemitter3": "^5.0.1", - "framer-motion": "^11.0.5", + "framer-motion": "^11.3.2", "lodash.throttle": "^4.1.1", "prop-types": "^15.8.1", "react": "^18.2.0", diff --git a/packages/client/src/components/Info/InfoButtons.tsx b/packages/client/src/components/Info/InfoButtons.tsx new file mode 100644 index 0000000..fef9b4e --- /dev/null +++ b/packages/client/src/components/Info/InfoButtons.tsx @@ -0,0 +1,49 @@ +import { Button, Link } from "@nextui-org/react"; +import { SiDiscord, SiLemmy, SiMastodon, SiMatrix } from "@icons-pack/react-simple-icons" + +export const InfoButtons = () => { + return ( +
+ + + + +
+ ); +}; diff --git a/packages/client/src/components/Info/InfoHeader.tsx b/packages/client/src/components/Info/InfoHeader.tsx new file mode 100644 index 0000000..90101b5 --- /dev/null +++ b/packages/client/src/components/Info/InfoHeader.tsx @@ -0,0 +1,29 @@ +import { Button } from "@nextui-org/react"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faXmark } from "@fortawesome/free-solid-svg-icons"; +import { faInfoCircle } from "@fortawesome/free-solid-svg-icons"; + +export type InfoHeaderProps = { + setInfoSidebar: (value: boolean) => void +} + +export const InfoHeader = ({ setInfoSidebar }: InfoHeaderProps) => { + return ( +
+
+
+ +
+

Info

+

Information about the event

+
+
+ +
+ + +
+ ); +}; diff --git a/packages/client/src/components/Info/InfoPrivacy.tsx b/packages/client/src/components/Info/InfoPrivacy.tsx new file mode 100644 index 0000000..e5e59da --- /dev/null +++ b/packages/client/src/components/Info/InfoPrivacy.tsx @@ -0,0 +1,22 @@ +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faShieldHalved } from "@fortawesome/free-solid-svg-icons"; + +export const InfoPrivacy = () => { + return ( +
+
+ +

Privacy

+
+
+ +
+
+ ); +}; diff --git a/packages/client/src/components/Info/InfoRules.tsx b/packages/client/src/components/Info/InfoRules.tsx new file mode 100644 index 0000000..af1fc0e --- /dev/null +++ b/packages/client/src/components/Info/InfoRules.tsx @@ -0,0 +1,37 @@ +import { faGavel } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; + +export const InfoRules = () => { + return ( +
+
+ +

Rules

+
+
+
    +
  1. +

    No alternate accounts

    +

    We want to keep it fair and not require people to create more + accounts to defend their art

    +
  2. +
  3. +

    No bots/automated placements

    +

    We're land of the humans, not bots

    +
  4. +
  5. +

    No hate speech or adjacent

    +
  6. +
  7. +

    No gore or nudity (NSFW/NSFL)

    +
  8. +
+

+ This canvas is built upon good faith rules, therefore moderators have + complete discretion on the rules. If you have any questions, ask in + the Matrix space or the Discord +

+
+
+ ) +}; \ No newline at end of file diff --git a/packages/client/src/components/Info/InfoSidebar.tsx b/packages/client/src/components/Info/InfoSidebar.tsx index 1a8473d..2ee4de0 100644 --- a/packages/client/src/components/Info/InfoSidebar.tsx +++ b/packages/client/src/components/Info/InfoSidebar.tsx @@ -1,10 +1,9 @@ -import { Button, Link } from "@nextui-org/react"; +import { Divider } from "@nextui-org/react"; import { useAppContext } from "../../contexts/AppContext"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faXmark } from "@fortawesome/free-solid-svg-icons"; -import { faDiscord } from "@fortawesome/free-brands-svg-icons"; -import { Rules } from "./Rules"; -import { Privacy } from "./Privacy"; +import { InfoHeader } from "./InfoHeader"; +import { InfoText } from "./InfoText"; +import { InfoButtons } from "./InfoButtons"; +import { motion } from "framer-motion" /** * Information sidebar @@ -17,58 +16,39 @@ export const InfoSidebar = () => { const { infoSidebar, setInfoSidebar } = useAppContext(); return ( -
-
-

Information

-
- -
-
-
- - -
- - - Build {__COMMIT_HASH__} -
-
+
+ + + +
+ - - + + + + +
+ +
+

Build {__COMMIT_HASH__}

+
+
+
); }; diff --git a/packages/client/src/components/Info/InfoText.tsx b/packages/client/src/components/Info/InfoText.tsx new file mode 100644 index 0000000..d92ecaf --- /dev/null +++ b/packages/client/src/components/Info/InfoText.tsx @@ -0,0 +1,14 @@ +import { InfoPrivacy } from "./InfoPrivacy"; +import { InfoRules } from "./InfoRules"; +import { InfoWelcome } from "./InfoWelcome"; + +export const InfoText = () => { + return ( +
+ + + +
+ ) +}; + diff --git a/packages/client/src/components/Info/InfoWelcome.tsx b/packages/client/src/components/Info/InfoWelcome.tsx new file mode 100644 index 0000000..029e4be --- /dev/null +++ b/packages/client/src/components/Info/InfoWelcome.tsx @@ -0,0 +1,16 @@ +import { faFire } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; + +export const InfoWelcome = () => { + return ( +
+
+ +

Welcome

+
+
+

Welcome to canvas! This is an event that lasts for 72 hours where users can place pixels every so often on a shared canvas. Everyone has access to the same canvas and pixels can be placed in any location to create things on the canvas.

+
+
+ ) +}; \ No newline at end of file diff --git a/packages/client/src/components/Info/Privacy.tsx b/packages/client/src/components/Info/Privacy.tsx deleted file mode 100644 index cd027a8..0000000 --- a/packages/client/src/components/Info/Privacy.tsx +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Privacy policy listed in InfoSidebar - * - * TODO: Customize this w/o editing the source #46 - * - * @returns - */ -export const Privacy = () => { - return ( - <> -
-

Privacy

-
-
- -
- - ); -}; diff --git a/packages/client/src/components/Info/Rules.tsx b/packages/client/src/components/Info/Rules.tsx deleted file mode 100644 index 5a3a608..0000000 --- a/packages/client/src/components/Info/Rules.tsx +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Rules listed inside InfoSidebar - * - * TODO: Customize this w/o editing the source #46 - * - * @returns - */ -export const Rules = () => { - return ( - <> -
-

Rules

-
-
-

Welcome to Canvas!

-

- We just have a couple rules, to use the canvas you must agree to them -

-
    -
  1. - No alternative accounts -
    - We want to keep it fair and not require people to create more - accounts to defend their art -
  2. -
  3. - No bots/automated placements -
    - We're land of the humans, not bots -
  4. -
  5. - No hate speech or adjacent -
  6. -
  7. - No gore or nudity (NSFW/NSFL) -
  8. -
- - This canvas is built upon good faith rules, therefore moderators have - complete discretion on the rules. If you have any questions, ask in - the Matrix space or the Discord - -
- - ); -};