diff --git a/package-lock.json b/package-lock.json index 9fb5857..c2034b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ujjwals-portfolio", - "version": "0.1.3", + "version": "0.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ujjwals-portfolio", - "version": "0.1.3", + "version": "0.1.4", "dependencies": { "@emotion/react": "^11.13.0", "@emotion/styled": "^11.13.0", @@ -46,6 +46,7 @@ "react-use": "^17.5.1", "react-vertical-timeline-component": "^3.6.0", "styled-components": "^6.1.12", + "sweetalert2": "^11.14.5", "tailwind-merge": "^2.4.0", "tailwindcss-animate": "^1.0.7", "three": "^0.166.1", @@ -21565,6 +21566,16 @@ "node": ">=4" } }, + "node_modules/sweetalert2": { + "version": "11.14.5", + "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.14.5.tgz", + "integrity": "sha512-8MWk5uc/r6bWhiJWkUXyEuApfXAhSCZT8FFX7pZXL7YwaPxq+9Ynhi2dUzWkOFn9jvLjKj22CXuccZ+IHcnjvQ==", + "license": "MIT", + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/limonte" + } + }, "node_modules/symbol-tree": { "version": "3.2.4", "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", diff --git a/package.json b/package.json index 2e2e332..2830f96 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ujjwals-portfolio", - "version": "0.1.3", + "version": "0.1.4", "private": true, "dependencies": { "@emotion/react": "^11.13.0", @@ -41,6 +41,7 @@ "react-use": "^17.5.1", "react-vertical-timeline-component": "^3.6.0", "styled-components": "^6.1.12", + "sweetalert2": "^11.14.5", "tailwind-merge": "^2.4.0", "tailwindcss-animate": "^1.0.7", "three": "^0.166.1", @@ -77,3 +78,4 @@ "tailwindcss": "^3.4.6" } } + diff --git a/src/Pages/CompoPage/ExtraComponents/Marquee.js b/src/Pages/CompoPage/ExtraComponents/Marquee.js index d748363..ccb3a6b 100644 --- a/src/Pages/CompoPage/ExtraComponents/Marquee.js +++ b/src/Pages/CompoPage/ExtraComponents/Marquee.js @@ -264,7 +264,8 @@ export function MarqueeDemo() { export default MarqueeDemo; -// TOdo: Done some rubbish Change +// Todo: Problematic Code +// ! Try Change - 1: Component is moving good but the problem is space between start and end. // import React, { useEffect, useState } from 'react'; // import { useInView } from 'react-intersection-observer'; @@ -274,89 +275,96 @@ export default MarqueeDemo; // import bgref from '../../../components/Assest_Used/textures/Bg_Shades/CubeBgAbout.png'; // const reviews = [ -// { -// name: "Ayush", -// username: "@ayush", -// body: "I've never seen anything like this before. It's amazing. I love it.", -// img: Shade1, -// }, -// { -// name: "Keshav", -// username: "@keshav", -// body: "I don't know what to say. I'm speechless. This is amazing.", -// img: Shade2, -// }, -// { -// name: "Sameer", -// username: "@sam", -// body: "I'm at a loss for words. This is amazing. I love it.", -// img: Shade3, -// }, -// { -// name: "Rohit", -// username: "@rohit", -// body: "I'm at a loss for words. This is amazing. I love it.", -// img: Shade3, -// }, -// { -// name: "Ansh", -// username: "@ansh", -// body: "I'm at a loss for words. This is amazing. I love it.", -// img: Shade2, -// }, -// { -// name: "Jhanvi", -// username: "@jhanvi", -// body: "I'm at a loss for words. This is amazing. I love it.", -// img: Shade1, -// }, +// { name: "Ayush", username: "@ayush", body: "I've never seen anything like this before. It's amazing. I love it.", img: Shade1 }, +// { name: "Keshav", username: "@keshav", body: "I don't know what to say. I'm speechless. This is amazing.", img: Shade2 }, +// { name: "Sameer", username: "@sam", body: "I'm at a loss for words. This is amazing. I love it.", img: Shade3 }, +// { name: "Rohit", username: "@rohit", body: "I'm at a loss for words. This is amazing. I love it.", img: Shade3 }, +// { name: "Ansh", username: "@ansh", body: "I'm at a loss for words. This is amazing. I love it.", img: Shade2 }, +// { name: "Jhanvi", username: "@jhanvi", body: "I'm at a loss for words. This is amazing. I love it.", img: Shade1 }, // ]; -// const Marquee = ({ children, reverse = false }) => { +// const spaceboardsFont = ` +// @font-face { +// font-family: 'Spaceboards'; +// src: url('/fonts/Spaceboards.otf') format('opentype'); +// } +// `; + +// const TestoStyle = ` +// .Test { +// font-family: 'Spaceboards', sans-serif; +// font-size: 5rem; +// font-weight: bold; +// background: linear-gradient(90deg, #0cffc5, #a939ff, #0cffc5, #a939ff); +// -webkit-background-clip: text; +// -webkit-text-fill-color: transparent; +// margin-left: 4rem; +// animation: gradient 1.5s infinite; +// letter-spacing: 0.1rem; +// background-size: 200% 200%; +// } + +// @keyframes gradient { +// 0% { background-position: 0% 50%; } +// 50% { background-position: 100% 50%; } +// 100% { background-position: 0% 50%; } +// } + +// /* Marquee animation styles */ +// .animate-marquee { +// display: flex; +// animation: marquee var(--duration, 10s) linear infinite; +// } + +// .animate-marquee2 { +// display: flex; +// animation: marquee2 var(--duration, 10s) linear infinite; +// } + +// @keyframes marquee { +// from { transform: translateX(100%); } +// to { transform: translateX(-100%); } +// } + +// @keyframes marquee2 { +// from { transform: translateX(-100%); } +// to { transform: translateX(100%); } +// } + +// .group:hover .animate-marquee, +// .group:hover .animate-marquee2 { +// animation-play-state: paused; +// } +// `; + +// const Marquee = ({ children, reverse = false, pauseOnHover = false, className = '' }) => { // const { ref: ref0, inView: inView0 } = useInView({ // triggerOnce: true, // threshold: 0.1, // }); +// const marqueeClass = reverse ? 'animate-marquee2' : 'animate-marquee'; // const marqueeStyle = { -// display: 'flex', -// animation: `marquee 20s linear infinite`, -// whiteSpace: 'nowrap', -// ...(reverse && { animationDirection: 'reverse' }), // opacity: inView0 ? 1 : 0, // transform: inView0 ? 'translateY(0)' : 'translateY(-50px)', -// transition: `opacity 1.25s ease-out 0.5s, transform 1.25s ease-out 0.5s`, -// }; - -// const containerStyle = { -// overflow: 'hidden', -// display: 'flex', -// opacity: inView0 ? 1 : 0, -// transform: inView0 ? 'translateY(0)' : 'translateY(-50px)', -// transition: `opacity 1.25s ease-out 0.5s, transform 1.25s ease-out 0.5s`, -// position: 'relative', +// transition: `opacity 1.25s ease-out 4s, transform 1.25s ease-out 4s`, // }; // return ( -//