jsy1218-zz / cypa-yeps-website

This code repository contains the source code to bootstrap the upcoming Young Entrepreneur & Professional Summit (YEPS) for Chinese Young Professional Association (CPYA: http://globalcypa.org/)
http://yeps.globalcypa.org/
MIT License
1 stars 1 forks source link

Desktop view #20

Closed Nini0415 closed 5 years ago

Nini0415 commented 5 years ago

Added the desktop view components for users using a desktop browser.

Nini0415 commented 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