This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 0 !important; | |
padding: 0 !important; | |
} | |
form.form { | |
color: hsl(0, 0%, 100%); | |
font-family: sans-serif; | |
font-size: 14px; | |
margin: 0 !important; | |
padding: 0 !important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//middleware/fix-scroll-position.global.ts | |
export default defineNuxtRouteMiddleware((to, from) => { | |
useNuxtApp().hook("page:finish", () => { | |
if (history.state.scroll) { | |
setTimeout(() => window.scrollTo(history.state.scroll), 0); | |
} else { | |
setTimeout(() => window.scrollTo(0, 0), 0); | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#GZIP | |
# Enable gzip compression. | |
gzip on; | |
# Compression level (1-9). | |
# 5 is a perfect compromise between size and CPU usage, offering about | |
# 75% reduction for most ASCII files (almost identical to level 9). | |
gzip_comp_level 5; | |
# Don't compress anything that's already small and unlikely to shrink much |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2 id="guide" class="guide"> | |
<span>s</span><span>o</span><span>m</span><span>e</span><span> </span><span>t</span><span>e</span><span>x</span><span>t</span> | |
</h2> | |
<h2 id="animate" class="animate"> | |
<span>s</span><span>o</span><span>m</span><span>e</span><span> </span><span>t</span><span>e</span><span>x</span><span>t</span> | |
</h2> |