Closed Nini0415 closed 5 years ago
We need to think about how to refactor the existing components and css files, instead of copy and paste. Lots of copy-paste will make the code increasingly difficult to maintain.
Also the top-level device check, is it really working as expected?
You can refer to this webpage for the device check, it is the most concise way I could find on the internet that will do the device detect trick. I personally think it's a smart and graceful trick;) https://coderwall.com/p/i817wa/one-line-function-to-detect-mobile-devices-with-javascript
Added the desktop view components for users using a desktop browser.