Giter Club home page Giter Club logo

Comments (6)

toniengelhardt avatar toniengelhardt commented on June 19, 2024 1

Yes.

I know from previous projects that it's close to impossible to do all the breakpoints only with css, or at least it's quite limiting in terms of design and performance, e.g. for mobile we'll need a bottom navigation as opposed to the side menu on desktop.

We could also render both elements and then hide one with CSS media queries based on the breakpoints but that would mean rendering one component without using it, which is bad for performance.

I think the approach should be the following:

  • If possible build layouts and components responsive with UnoCSS breakpoints, so that they work for all viewport sizes. This is the ideal solution.
  • Only if that is not possible use a mobile and a desktop component and ui.mobile to show only one.

At some point we might also need a tablet size, not sure yet...

from merklin.

RyanPaulGannon avatar RyanPaulGannon commented on June 19, 2024 1

Yeah that's a good point, I'm going to take at look at the three apps you've referenced on the README.md and try and play around with some ideas.

from merklin.

toniengelhardt avatar toniengelhardt commented on June 19, 2024 1

Basic mobile should work now.

Also, you can now install the app as PWA and connect from a normal browser via WalletConnect + e.g. MetaMask.

from merklin.

RyanPaulGannon avatar RyanPaulGannon commented on June 19, 2024

I noticed the stores/ui.ts and I'm intrigued. I've only ever adjusted views subject to breakpoints set with Tailwind. Do you set breakpoints using Pinia too, or in Uno (another thing I've not come across until this project haha) or some other way altogether?

from merklin.

RyanPaulGannon avatar RyanPaulGannon commented on June 19, 2024

Okay that's interesting. Going to look in to UnoCSS.

Forgive me for asking something potentially obvious, specific layouts to be created as Nuxt references in the docs (https://nuxtjs.org/docs/directory-structure/layouts/)?

from merklin.

toniengelhardt avatar toniengelhardt commented on June 19, 2024

Do you mean using a layout for mobile? I guess that would also be an option but we would probably still need the ui.mobile flag, bc sometimes you might have different display modes within a component or something like that, e.g. the transaction list will have to very compact and probably simplified when displayed on a small screen.

But tbh I'm not sure what's the best solution to deal with this.

from merklin.

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.