JCLee Profile picture
8 Feb, 8 tweets, 4 min read
⚠ the following tweet is not for easily offended people 😁.

MUHAHAHA!! Bow down peasants! My website got a perfect lighthouse score on my 1st try πŸ₯³πŸ₯³.
Didn't know they'd threw confetti πŸ˜‚.

Tips & tools used🧡:

(1/8)
#CodeNewbies #100DaysOfCode
A fullscreen vid looks cool but could β†˜οΈperformance.

Screenshot the start of the vid & use it as an img placeholder.
Set the vid opacity to 0 and put it above the img.
When it has loaded, bring its opacity back.

I've used ezgif.com for vid cut, resize etc.

(2/8)
❌@ font-face {
font-family: Roboto;
font-weight: 400;
src: url("myFont.ttf") format("truetype");
}

βœ…@ font-face {
font-family: Roboto;
font-weight: 400;
src: local("Arial"), url("myFont.ttf") format("truetype");
font-display: swap;
}

(3/8)
While the font is loading, the text is invisible. And then the text flashes in (FOIT).
To prevent that, use 'local("Arial")' - or a common font like Helvetica - to load a font that the user must have on their PC.
'font-display: swap' swaps your font in after it has loaded.

(4/8)
My top google fonts πŸ‘‰ Roboto, Open Sans, Merriweather, Raleway, Playfair Display, Montserrat.

Imgs & vids are often too bright to have text above. Use filter to darken them:
"filter: brightness(75%) contrast(115%)"

PNG and JPEG compression πŸ‘‰tinypng.com
(5/8)
Add aria-hidden="true" to icons, and a description text for screen readers.
Bootstrap & Tailwind have a "sr-only" class.
Or add your own sr-only πŸ‘‰:
a11y-guidelines.orange.com/en/web/compone…

Check color accessibility πŸ‘‰:
accessible-colors.com
(6/8)
Meta generator websites I use in all my projects:
Twitter & other social cards πŸ‘‰ heymeta.com
Favicons πŸ‘‰ realfavicongenerator.net

(7/8)
This project was build using ReactJS (nextjs) & TailwindCSS and deployed to Vercel πŸ‘‰:
congenial-system.vercel.app
Code πŸ‘‰:
github.com/ljc-dev/congen…

End of Thread. Happy coding 😁!! Sorry if I've offended anyone, I promise I'll reflect on myself when I find some free time πŸ‘Œ.

(8/8)

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with JCLee

JCLee Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!