Code Monkey home page Code Monkey logo

Comments (9)

molebox avatar molebox commented on June 9, 2024

Id love to jump on this one

from rbb-website.

molebox avatar molebox commented on June 9, 2024

"The entire card should be clickable and trigger either the URL or a modal popup." -

So will the image be a link to the contact? I dont quite understand the requirement.

from rbb-website.

magnificode avatar magnificode commented on June 9, 2024

Screen Shot 2020-06-05 at 12 04 19 PM

Apologies, let me elaborate off of the above screenshot:

Each card has an image.

If we look at the "Business Owners" card. On click of this card, a business registration form modal will appear. Don't worry about the contents of the modal for now, we just need the ability to trigger a modal if necessary from an individual card.

If we look at the "General Inquiry" card. Clicking of this card should be a mailto: link with a fake email address for now (we'll change this to the proper RBB support email). Opens in a new tab

The "Volunteers" card will be a Discord link (https://discord.gg/272XMuv). Opens in a new tab.

We need to be able to support the above cases with this component. Let me know if that helps!

from rbb-website.

molebox avatar molebox commented on June 9, 2024

Thats great info thank you! So its actually three cards with separate use cases!

from rbb-website.

molebox avatar molebox commented on June 9, 2024

Ahh i missed the screenshot, too eager! Thank you for clarifying :)

from rbb-website.

magnificode avatar magnificode commented on June 9, 2024

Thats great info thank you! So its actually three cards with separate use cases!

Three separate cards, but should only be one React component, with props to address each use case :)

Ahh i missed the screenshot, too eager! Thank you for clarifying :)

No worries at all!

from rbb-website.

molebox avatar molebox commented on June 9, 2024

Yep, all over it! First time using Chakra so learning that as i go. Will hopefully have this done by latest Sunday night.

from rbb-website.

andria-dev avatar andria-dev commented on June 9, 2024

I might suggest using the react-spring-modal package for the modals as well. It's a library I made that abstracts out a lot of the accessibility issues when dealing with models while still allowing you to keep the modals looking professional with the possibility of animations/transitions via react-spring. If not that's fine too as long as the modals we use are accessible.

https://npm.im/react-spring-modal

from rbb-website.

molebox avatar molebox commented on June 9, 2024

I might suggest using the react-spring-modal package for the modals as well. It's a library I made that abstracts out a lot of the accessibility issues when dealing with models while still allowing you to keep the modals looking professional with the possibility of animations/transitions via react-spring. If not that's fine too as long as the modals we use are accessible.

https://npm.im/react-spring-modal

Thanks Chris, We're using Chakra so I had thought to use their modal, but I will take a look at this package. I'm not a massive fan of spring but if needs must... 😊

from rbb-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.