This content originally appeared on DEV Community and was authored by NordicBeaver
I made another video on how to make a very generic website for a local business. In this one we create a new NextJs project for client's side, make a homepage, add a new model for services and a way to manage them in the admin panel. Enjoy :).
A tip from the video: snippets.
For some reason I was very reluctant to make my own snippets. A mean I used build-in ones, or the ones that come with extensions, but I never made my own. Until recently I was using css modules and I got really tired typing import for my styles.
So I decided to give it a shot. Turns out even if it does not save you tons of time, I mean typing is like 1% of programming, it surely makes you feel better. So I guess my advice is if you get annoyed about typing something over and over, consider turning that thing into a snippet.
And here is that css modules snippet I was talking about for VS Code.
{
"Import css module":
{
"prefix": "mcss",
"body": [
"import styles from ./$TM_FILENAME_BASE.module.css'"
]
}
}
This content originally appeared on DEV Community and was authored by NordicBeaver
NordicBeaver | Sciencx (2021-10-03T19:18:59+00:00) Making the most boring website ever with TypeScript, NestJs, React and others. Part 2.. Retrieved from https://www.scien.cx/2021/10/03/making-the-most-boring-website-ever-with-typescript-nestjs-react-and-others-part-2/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.