-
Notifications
You must be signed in to change notification settings - Fork 16
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
Responsive goplus.org #29
Conversation
nighca
commented
Nov 9, 2021
•
edited
Loading
edited
- Responsive for both Pc & Mobile device
- Upgrade next.js to 12.x
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/goplus/www/AXz87aqqTfhdo9eDzG83YvLyEmys |
|
||
export default function Footer() { | ||
return ( | ||
<div className={styles.footer}> | ||
<div className={styles.qiniuDoll}> | ||
<img width={100} height={82} src="/qiniu_doll.png" alt="Qiniu Doll Logo" /> | ||
<Image width={100} height={82} src="/qiniu_doll.png" alt="Qiniu Doll Logo" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIP:用懒加载,拉到底下,延迟一下感觉怪怪的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
哦我看别的地方大部分都用了 Image
,我以为你这里是忘了改;我来感受下延迟
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
说起来懒加载倒是预期的优化,我感觉这个延迟还好,就先保持 Image
不变了
这个好像可以解决从 |
如果可用的话,应该也可以解决潘潘的问题? |
嗯,在这边应该是可以的;不过我有点想通过加一个 markdown 的 loader 来解决类似的问题,那样预期会比用这个 plugin 的复杂度低一点,坑应该也会少一点
嗯这个攀攀也调研了,但是它有一些限制,比如 README 里提到的
所以在里边去依赖其他的普通代码很容易出问题,也不好读通过 另外考虑它帮我们做了的事情自己做也很简单,就通过提前执行自己写的脚本来实现了;你可以回头看下攀攀的 PR |
用 preval 或者 markdown loader,这个我回头拿单独的 PR 来做吧,这个 PR 先不处理 |
// offset for element matches anchor | ||
// https://stackoverflow.com/questions/4086107/fixed-page-header-overlaps-in-page-anchors#answer-56467997 | ||
html { | ||
scroll-padding-top: $mobile-header-height; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
高级