diff --git a/public/assets/partners/logitech-mx-logo-white.png b/public/assets/partners/logitech-mx-logo-white.png new file mode 100644 index 0000000..8a42276 Binary files /dev/null and b/public/assets/partners/logitech-mx-logo-white.png differ diff --git a/public/assets/partners/logitech_print_white_LG.png b/public/assets/partners/logitech_print_white_LG.png new file mode 100644 index 0000000..15d8329 Binary files /dev/null and b/public/assets/partners/logitech_print_white_LG.png differ diff --git a/src/lib/firebaseConfig.js b/src/lib/firebaseConfig.js index b9c97de..06dd73d 100644 --- a/src/lib/firebaseConfig.js +++ b/src/lib/firebaseConfig.js @@ -1,5 +1,5 @@ // Import the functions you need from the SDKs you need -import { initializeApp } from "firebase/app"; +import { initializeApp, getApps } from "firebase/app"; // import { getAnalytics } from "firebase/analytics"; import { getFirestore } from "firebase/firestore"; // TODO: Add SDKs for Firebase products that you want to use @@ -19,8 +19,12 @@ const firebaseConfig = { measurementId: process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID, }; -// Initialize Firebase -const app = initializeApp(firebaseConfig); +let app; +if (!getApps().length) { + app = initializeApp(firebaseConfig); +} else { + app = getApps()[0]; // Use the already initialized app +} + const db = getFirestore(app); export { db }; -// const analytics = getAnalytics(app); diff --git a/src/pages/index.js b/src/pages/index.js index 946f532..679673d 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -13,6 +13,7 @@ import Gallery from "@/sections/Gallery/Gallery"; import StarATon from "@/sections/StarATon/StarATon"; import Photogallery from "@/sections/Photogallery/Photogallery"; import Countdown from "@/sections/Hero/Countdown"; +import Logitech from "@/sections/logitechmx/Logitech"; const inter = Inter({ subsets: ["latin"] }); @@ -45,6 +46,7 @@ export default function Home() { {/* */} + diff --git a/src/pages/logitechmx/index.jsx b/src/pages/logitechmx/index.jsx new file mode 100644 index 0000000..97b626a --- /dev/null +++ b/src/pages/logitechmx/index.jsx @@ -0,0 +1,8 @@ +import { useEffect } from "react"; + +export default function X() { + useEffect(() => { + window.location.assign("https://shorturl.at/rxzkq"); + }); + return <>; +} diff --git a/src/sections/logitechmx/Logitech.jsx b/src/sections/logitechmx/Logitech.jsx new file mode 100644 index 0000000..7f1fefc --- /dev/null +++ b/src/sections/logitechmx/Logitech.jsx @@ -0,0 +1,149 @@ +import Image from "next/image"; +const Logitech = () => { + return ( +
+
+ + +
+ +
+ +
+ +
+ +
+ {/* + + + + + + */} +
+
+
+
+ +
+
+
+
+
+

Logitech MX Master

+ Series Challenge +
+ {/*

+ +

*/} + MX Master + Keyboards
+ and other goodies +
+
+ +
+ +
+ + {/* */} + {/* */} + +
+ ); +}; + +export default Logitech;