diff --git a/package-lock.json b/package-lock.json index 0be09bf..a57cb16 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "clsx": "^2.1.1", "date-fns": "^4.1.0", "lucide-react": "^0.460.0", + "motion": "^11.14.4", "next": "^15.0.3", "prettier": "^3.4.0", "react": "^18.3.1", @@ -2795,6 +2796,33 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/framer-motion": { + "version": "11.14.4", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.14.4.tgz", + "integrity": "sha512-NQuzr9JbeJDMQmy0FFLhLzk9h1kAjVC1tGE/HY4ubF02B95EBm2lpA21LE3Od/OpXqXgp0zl5Hdqu25hliBRsA==", + "license": "MIT", + "dependencies": { + "motion-dom": "^11.14.3", + "motion-utils": "^11.14.3", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "@emotion/is-prop-valid": "*", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -3852,6 +3880,44 @@ "node": ">=16 || 14 >=14.17" } }, + "node_modules/motion": { + "version": "11.14.4", + "resolved": "https://registry.npmjs.org/motion/-/motion-11.14.4.tgz", + "integrity": "sha512-ZIaw6ko88B8rSmBEFzqbTCQMbo9xMu8f4PSXSGdb9DTDy8R0sXcbwMEKmTEYkrj9TmZ4n+Ebd0KYjtqHgzRkRQ==", + "license": "MIT", + "dependencies": { + "framer-motion": "^11.14.4", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "@emotion/is-prop-valid": "*", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/motion-dom": { + "version": "11.14.3", + "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-11.14.3.tgz", + "integrity": "sha512-lW+D2wBy5vxLJi6aCP0xyxTxlTfiu+b+zcpVbGVFUxotwThqhdpPRSmX8xztAgtZMPMeU0WGVn/k1w4I+TbPqA==", + "license": "MIT" + }, + "node_modules/motion-utils": { + "version": "11.14.3", + "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-11.14.3.tgz", + "integrity": "sha512-Xg+8xnqIJTpr0L/cidfTTBFkvRw26ZtGGuIhA94J9PQ2p4mEa06Xx7QVYZH0BP+EpMSaDlu+q0I0mmvwADPsaQ==", + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", diff --git a/package.json b/package.json index 8491084..632ecd1 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,9 @@ "@tanstack/react-query": "^5.60.5", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", - "lucide-react": "^0.460.0", "date-fns": "^4.1.0", + "lucide-react": "^0.460.0", + "motion": "^11.14.4", "next": "^15.0.3", "prettier": "^3.4.0", "react": "^18.3.1", diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 291e667..0c493a9 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,7 +3,7 @@ import { Montserrat } from "next/font/google"; import "./globals.css"; import QueryProvider from "@/lib/queryClient"; import { Navbar } from "@/components/Navbar"; -import SocialSidebar from "@/components/SocialsSidebar"; +import SocialSidebar from "@/sidebar/SocialsSidebar"; export const metadata: Metadata = { title: "Juwenalia by Solvro", diff --git a/src/components/Artist.tsx b/src/components/Artist.tsx index 3d445ab..eda60fa 100644 --- a/src/components/Artist.tsx +++ b/src/components/Artist.tsx @@ -26,9 +26,9 @@ const Artist = async ({ className="flex flex-col items-center rounded-lg p-2 text-center text-xl" > Picture of the artist @@ -82,24 +81,25 @@ const Artist = async ({ )} -
- {events && events.length > 0 ? ( - events.slice(0, 1).map((event) => ( -
-
- {event.events_id.location.name.toUpperCase()} -
+
+ {events && events.length > 0 ? ( + events.slice(0, 1).map((event) => ( +
+
{event.events_id.location.name.toUpperCase()}
-
- {getDayInfo(event.events_id.day)} /{" "} - {event.events_id.start_time.slice(0, 5)} -
+
+ {getDayInfo(event.events_id.day)} /{" "} + {event.events_id.start_time.slice(0, 5)}
- )) - ) : ( - Brak informacji o koncertach. - )} -
+
+ )) + ) : ( + Brak informacji o koncertach. + )} +
); }; diff --git a/src/components/SocialsSidebar.tsx b/src/components/SocialsSidebar.tsx deleted file mode 100644 index f151a09..0000000 --- a/src/components/SocialsSidebar.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import Image from "next/image"; -import Link from "next/link"; -import React from "react"; - -const SocialSidebar = () => { - const fb_url = ""; - const ig_url = ""; - const tt_url = ""; - - return ( -
- {/* Facebook Icon */} - - Link do Facebooka organizatorów. - - - {/* Instagram Icon */} - - - Link do Instagrama organizatorów. - - - {/* TikTok Icon */} - - Link do TikToka organizatorów. - -
- ); -}; - -export default SocialSidebar; diff --git a/src/sidebar/AnimatedSidebar.tsx b/src/sidebar/AnimatedSidebar.tsx new file mode 100644 index 0000000..6ce435e --- /dev/null +++ b/src/sidebar/AnimatedSidebar.tsx @@ -0,0 +1,22 @@ +"use client"; + +import { motion } from "framer-motion"; +import React, { ReactNode } from "react"; + +interface AnimatedSidebarProps { + children: ReactNode; +} + +const AnimatedSidebar: React.FC = ({ children }) => { + return ( + + {children} + + ); +}; + +export default AnimatedSidebar; diff --git a/src/sidebar/SocialsSidebar.tsx b/src/sidebar/SocialsSidebar.tsx new file mode 100644 index 0000000..5525e2f --- /dev/null +++ b/src/sidebar/SocialsSidebar.tsx @@ -0,0 +1,140 @@ +// import Image from "next/image"; +// import Link from "next/link"; +// import React from "react"; + +// const SocialSidebar = () => { +// const fb_url = ""; +// const ig_url = ""; +// const tt_url = ""; + +// return ( +//
+// {/* Facebook Icon */} +// +// Link do Facebooka organizatorów. +// + +// {/* Instagram Icon */} + +// +// Link do Instagrama organizatorów. +// + +// {/* TikTok Icon */} +// +// Link do TikToka organizatorów. +// +//
+// ); +// }; + +// export default SocialSidebar; + +import Link from "next/link"; +import Image from "next/image"; +import AnimatedSidebar from "./AnimatedSidebar"; + +const SocialSidebar = () => { + // dejta linki do sociali + const fb_url = "https://www.youtube.com/watch?v=NBNaArsb99Y"; + const ig_url = "https://www.youtube.com/watch?v=GJDNkVDGM_s"; + const tt_url = "https://www.youtube.com/watch?v=9bZkp7q19f0"; + + return ( + +
+ {/* Facebook */} + + Facebook + + + {/* Instagram */} + + Instagram + + + {/* TikTok */} + + TikTok + +
+
+ ); +}; + +export default SocialSidebar;