Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gradient border to tags #68

Open
Utkarshn10 opened this issue Mar 24, 2023 · 11 comments
Open

Add gradient border to tags #68

Utkarshn10 opened this issue Mar 24, 2023 · 11 comments
Assignees
Labels

Comments

@Utkarshn10
Copy link
Owner

Add a colorful gradient border to new tags on "Meditate" tab.

image

Refer to this image image
@notpx
Copy link
Contributor

notpx commented Mar 25, 2023

!assign

@Utkarshn10
Copy link
Owner Author

Hey @notpx Issue assigned.

@notpx
Copy link
Contributor

notpx commented Mar 25, 2023

focusly-gradient

Added the gradient on the border, but need to add it only when the user clicks meditate tab.
1.Thinking of changing the name of class of card for meditate
2. Using states when the user clicks the meditate button, and the color gradient gets added after the click.

Guide me through this, need few hints and will get the work finished

@Utkarshn10
Copy link
Owner Author

This looks great.

Some additions:

  1. How about decreasing width of border and keeping it around 5-7px.

  2. We only need these gradient border for cards in new tab so we can add a parameter in 'info' array and mention there that whether this particular card belongs to new or not.

And then we can add gradient to it.

@notpx
Copy link
Contributor

notpx commented Mar 26, 2023

Few questions,

  1. After adding another parameter into the info array, how do I add css specifically for that particular element in the array with that parameter?
  2. Drop some topics which might help me in order to get this done, I'll learn them and finish the pending code.

@Utkarshn10
Copy link
Owner Author

You can refer this to add condition in tailwind css.

And if you want to dive deep then you can further look into this topic.

@agustintrossero
Copy link

agustintrossero commented Jun 19, 2023

hello!. is this issue still open? I want to contribute to several of the open issues in this project but when I run npm install it won't let me deploy the project
as

@Utkarshn10
Copy link
Owner Author

Utkarshn10 commented Jun 21, 2023

hello!. is this issue still open? I want to contribute to several of the open issues in this project but when I run npm install it won't let me deploy the project
as

Hey @agustintrossero. Try running npm install --legacy-peer-deps.

Thanks for contributing to Focusly.

@notpx
Copy link
Contributor

notpx commented Jun 27, 2023

  1. I need to know where to put this function, because chakra UI manages the class names and we can't know what class is it without checking inspect element. Even after finding out the class of the box... I need to figure out where that class generates from, is it from the Card.js or Meditate has its own box.

I figured out how to use the class name library as you mentioned...but help me out with the placement of the function at the right place so it gets called.

If that gets clear code will work. Need help with this lads.image

@Utkarshn10
Copy link
Owner Author

Hey @notpx, you can call the function on button click using the onClick function

@RishiPradeep RishiPradeep mentioned this issue Oct 3, 2023
8 tasks
@KSSaiTeja
Copy link
Contributor

if the issue still open i will start work. if shared some pictorial explaination..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants