-
-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added popup when clicked on card (#248)
* Clean up (#246) * [clean-up] chores: code clean up and bug fixes * [clean-up] chores: code clean up and bug fixes * [clean-up] chores: code clean up and bug fixes * [clean-up] chores: code clean up and bug fixes * [clean-up] chores: code clean up and bug fixes * chore: code clean up and bug fixes (#223) * [clean-up] chores: code clean up and bug fixes * [clean-up] chores: code clean up and bug fixes * [clean-up] chores: code clean up and bug fixes * [clean-up] chores: code clean up and bug fixes * [clean-up] chores: code clean up and bug fixes * chore: add new links (#211) * add new links * fix wrong spelling * format design-inspiration.json file * Remove ids from database --------- Co-authored-by: Rupali Haldiya <78981177+rupali-codes@users.noreply.github.com> * feat: added run command in README.md(#229) * Fixing the README.md file * Fixing the README.md file * chore: adding a sub-category under youtube (#228) * Adding a sub-category under youtube * fixed all the issues regarding the new sub-category * resolved some issues * chore: added new illustration link (#225) * chore: added two icons websites (#231) * Update: Added two icons websites * Resolved * chore: adding table of content (#241) * Added Contributors * Update README.md * Update README.md * Update README.md * Added Discord Icon * Update README.md * Update README.md * Update README.md * chore: added dope ui link (#239) * fix: change theme toggler color (#238) * single card page setup * single card page setup * single card page setup * single card page setup * single card popup setup --------- Co-authored-by: Oyebolade Oladokun <57053389+Oyebolade@users.noreply.github.com> Co-authored-by: Rupali Haldiya <78981177+rupali-codes@users.noreply.github.com> Co-authored-by: Harsh Parashar <96375055+hparashar27@users.noreply.github.com> Co-authored-by: RAGHAV <94848646+raghav1030@users.noreply.github.com> Co-authored-by: Sofiritari Amgbara <38821635+swissjake@users.noreply.github.com> Co-authored-by: Priyankar Pal <88102392+priyankarpal@users.noreply.github.com> Co-authored-by: Atharva Salitri <121221252+the-amazing-atharva@users.noreply.github.com> Co-authored-by: ALIND SHARMA <alindsharmasimply@gmail.com> * chore: designing popup & adding language for youtube * chore:adding language in youtube category * fix: fixing popup color for light theme * chore: fixing colors --------- Co-authored-by: Eugene44-hub <75457464+Eugene44-hub@users.noreply.github.com> Co-authored-by: Oyebolade Oladokun <57053389+Oyebolade@users.noreply.github.com> Co-authored-by: Harsh Parashar <96375055+hparashar27@users.noreply.github.com> Co-authored-by: RAGHAV <94848646+raghav1030@users.noreply.github.com> Co-authored-by: Sofiritari Amgbara <38821635+swissjake@users.noreply.github.com> Co-authored-by: Priyankar Pal <88102392+priyankarpal@users.noreply.github.com> Co-authored-by: Atharva Salitri <121221252+the-amazing-atharva@users.noreply.github.com> Co-authored-by: ALIND SHARMA <alindsharmasimply@gmail.com>
- Loading branch information
1 parent
48ab0b9
commit 0a0db19
Showing
28 changed files
with
718 additions
and
665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import React from "react"; | ||
import { DBType } from "types"; | ||
import { BsGlobe } from "react-icons/bs"; | ||
|
||
const Popup: React.FC<{ | ||
currentCard: null | DBType; | ||
getCardId: (item: DBType | null) => void; | ||
}> = ({ currentCard, getCardId }) => { | ||
return ( | ||
<div | ||
onClick={() => getCardId(null)} | ||
className={` ${ | ||
currentCard ? "w-full h-screen" : "w-0 h-0" | ||
} overflow-hidden flex fixed top-0 left-0 bg-[rgba(0,0,0,.5)] backdrop-blur-md z-20`} | ||
> | ||
<div | ||
onClick={(e) => e.stopPropagation()} | ||
className={`max-w-[500px] transition-all ${ | ||
currentCard ? "scale-100" : "scale-0" | ||
} h-fit w-full overflow-hidden px-5 md:py-10 dark:bg-gray-900 bg-gray-100 rounded-2xl m-auto gap-5 flex flex-col justify-between border border-dashed border-violet-600`} | ||
> | ||
<div className="flex flex-col gap-5"> | ||
<div className="flex justify-between items-center"> | ||
<h2 className="max-w-[80%] text-2xl text-violet-500 capitalize"> | ||
{currentCard?.name} | ||
</h2> | ||
<h5 className="max-w-[20%] text-xsm text-violet-500 capitalize flex items-center gap-1"> | ||
{ | ||
currentCard?.language ? ( | ||
<> | ||
<BsGlobe /> | ||
{currentCard?.language} | ||
</> | ||
) : '' | ||
} | ||
</h5> | ||
</div> | ||
<p className="">{currentCard?.description}</p> | ||
</div> | ||
<div className="card-actions justify-end"> | ||
<a | ||
onClick={(e) => e.stopPropagation()} | ||
href={currentCard?.url} | ||
target="_blank" | ||
rel="noreferrer" | ||
className="mt-2 px-6 py-2 text-white text-center bg-violet-600 rounded-2xl w-full hover:bg-transparent hover:text-violet-500 border border-dashed border-transparent duration-100 hover:border-violet-400 bottom-0 flex items-center justify-center bottom-0 relative" | ||
> | ||
Visit site | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Popup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,36 @@ | ||
[ | ||
{ | ||
"name": "Lottie files", | ||
"description": "LottieFiles takes away the complexity from Motion Design. It lets you Create, Edit, Test, Collaborate and Ship a Lottie in the easiest way possible.", | ||
"url": "https://lottiefiles.com/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
}, | ||
{ | ||
"name": "Cubic Bezier", | ||
"description": "A tool for visualisation and creation of cubic-bezier curves for animation in CSS", | ||
"url": "https://cubic-bezier.com/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
}, | ||
{ | ||
"name": "Framer Motion", | ||
"description": "Framer Motion is a production-ready motion library for React from Framer, It's simple yet powerful, allowing you to express complex user interactions with robust, semantic markup.", | ||
"url": "https://www.framer.com/motion/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
}, | ||
{ | ||
"name": "Proton", | ||
"description": "A JavaScript particle based animation engine. Which provides you tones of animated elements.", | ||
"url": "https://drawcall.github.io/Proton/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
}, | ||
{ | ||
"name": "AutoAnimate", | ||
"description": "Add motion to your apps with a single line of code.", | ||
"url": "https://auto-animate.formkit.com/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
} | ||
[{ | ||
"name": "Lottie files", | ||
"description": "LottieFiles takes away the complexity from Motion Design. It lets you Create, Edit, Test, Collaborate and Ship a Lottie in the easiest way possible.", | ||
"url": "https://lottiefiles.com/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
}, | ||
{ | ||
"name": "Cubic Bezier", | ||
"description": "A tool for visualisation and creation of cubic-bezier curves for animation in CSS", | ||
"url": "https://cubic-bezier.com/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
}, | ||
{ | ||
"name": "Framer Motion", | ||
"description": "Framer Motion is a production-ready motion library for React from Framer, It's simple yet powerful, allowing you to express complex user interactions with robust, semantic markup.", | ||
"url": "https://www.framer.com/motion/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
}, | ||
{ | ||
"name": "Proton", | ||
"description": "A JavaScript particle based animation engine. Which provides you tones of animated elements.", | ||
"url": "https://drawcall.github.io/Proton/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
}, | ||
{ | ||
"name": "AutoAnimate", | ||
"description": "Add motion to your apps with a single line of code.", | ||
"url": "https://auto-animate.formkit.com/", | ||
"category": "frontend", | ||
"subcategory": "animations" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,57 @@ | ||
[ | ||
{ | ||
"name": "Open Color", | ||
"description": "An open-source color scheme, optimized for UI. My go-to resource to choose colors from scratch. ", | ||
"url": "https://yeun.github.io/open-color/", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "UI Gradients", | ||
"description": "Collection of beautiful color gradients for you to choose from and export to your project. ", | ||
"url": "https://uigradients.com/#MoonlitAsteroid", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "Tailwind Colors", | ||
"description": "This an excellent and popular set of color pallettes by TailwindCSS. Get beautiful colors of all shades ", | ||
"url": "https://tailwindcss.com/docs/customizing-colors", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "Color Contract Checker", | ||
"description": "This an excellent site to check whether contrast of two colors is good or not ", | ||
"url": "https://coolors.co/contrast-checker", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "0to255", | ||
"description": "0to255 is a color tool that makes it easy to find lighter and darker colors, or tints and shades, based on any color. ", | ||
"url": "https://0to255.com/", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "Coolors", | ||
"description": "Coolors is the essential tool for creating color palettes. It generates perfect matching colors in seconds.", | ||
"url": "https://coolors.co/", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "HTML Color Picker", | ||
"description": "This is a color picker by w3schools which provides different shades of colors based on your requirements. It also gives Hex and RGB value of color.", | ||
"url": "https://w3schools.com/colors/colors_picker.asp", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "UI Color Picker", | ||
"description": "A color picker that contains different shades of solid colors & gradients. Which can be used in any kind of projects.", | ||
"url": "https://uicolorpicker.com/", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
} | ||
[{ | ||
"name": "Open Color", | ||
"description": "An open-source color scheme, optimized for UI. My go-to resource to choose colors from scratch. ", | ||
"url": "https://yeun.github.io/open-color/", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "UI Gradients", | ||
"description": "Collection of beautiful color gradients for you to choose from and export to your project. ", | ||
"url": "https://uigradients.com/#MoonlitAsteroid", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "Tailwind Colors", | ||
"description": "This an excellent and popular set of color pallettes by TailwindCSS. Get beautiful colors of all shades ", | ||
"url": "https://tailwindcss.com/docs/customizing-colors", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "Color Contract Checker", | ||
"description": "This an excellent site to check whether contrast of two colors is good or not ", | ||
"url": "https://coolors.co/contrast-checker", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "0to255", | ||
"description": "0to255 is a color tool that makes it easy to find lighter and darker colors, or tints and shades, based on any color. ", | ||
"url": "https://0to255.com/", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "Coolors", | ||
"description": "Coolors is the essential tool for creating color palettes. It generates perfect matching colors in seconds.", | ||
"url": "https://coolors.co/", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "HTML Color Picker", | ||
"description": "This is a color picker by w3schools which provides different shades of colors based on your requirements. It also gives Hex and RGB value of color.", | ||
"url": "https://w3schools.com/colors/colors_picker.asp", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
}, | ||
{ | ||
"name": "UI Color Picker", | ||
"description": "A color picker that contains different shades of solid colors & gradients. Which can be used in any kind of projects.", | ||
"url": "https://uicolorpicker.com/", | ||
"category": "frontend", | ||
"subcategory": "colors" | ||
} | ||
] |
Oops, something went wrong.
0a0db19
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
linkshub – ./
linkshub-rupali-codes.vercel.app
linkshub.vercel.app
linkshub-git-main-rupali-codes.vercel.app