CSS Trick! ⚡️
You can create gradient borders by using transparent borders 👀 No extra elements 🤙
article {
background: // layer them up with different origin!
linear-gradient(var(--bg), var(--bg)) padding-box,
var(--gradient) border-box;
border: 4px solid transparent;
}
The trick is to layer background images using different background-origin ⭐️ Then use a transparent border to define how thick the border is!
padding-box positions a background relative to an element's padding. border-box positions a background relative to the border-box 🔥
The ✨magic✨ part? You get that nested radius for free 😅
Check out the exploded view in the video and have a play with different values in the demo 🎞️
@CodePen link below! 👇
HOW TO STRUCTURE YOUR BACKEND CODE IN NODE.JS(express.js).
[with explanation]
📁
├── 📄 app.js
├── 📁 bin
├── 📁 config
├── 📁 controllers
│ ├── 📄 customer.js
│ ├── 📄 product.js
│ └── ...
├── 📁 middleware
│ ├── 📄 auth.js
│ ├── 📄 logger.js
│ └── ...
├── 📁 models
│ ├── 📄 customer.js
│ ├── 📄 Product.js
│ └── ...
├── 📁 routes
│ ├── 📄 api.js
│ ├── 📄 auth.js
│ └── ...
├── 📁 public
│ ├── 📁 css
│ ├── 📁 js
│ ├── 📁 images
│ └── ...
├── 📁 views
│ ├── 📄 index.ejs
│ ├── 📄 product.ejs
│ └── ...
├── 📁 tests
│ ├── 📁 unit
│ ├── 📁 integration
│ ├── 📁 e2e
│ └── ...
├── 📁 utils
│ ├── 📄 validation.js
│ ├── 📄 helpers.js
│ └── ...
└── 📁 node_modules
Here's a brief explanation:
app.js
It's like the control centre of your web application. It's where you set up and manage everything.
bin
Think of this as a place for starting your web server. It's where you have scripts that make your website work.
config
These are like settings for your website, such as where your database is or how your website should behave.
controllers
This is where you put the brains of your website explains the name controllers. Each file here handles a different part of your site, like customer stuff or product stuff.
middleware
Imagine these as helpers that help your website do things like checking if you're logged in or keeping a record of what people do on your site.
models
This is where you describe what your data looks like. If your website is a store, this is where you say what a product is or what a customer is.
routes
These are like the paths to different parts of the website. If the website is a city, these are the streets and highways.
public
Think of this as your storage room for things everyone can see, like images, styles, and scripts.
views
If your website is like a book, these are the pages. This is where you put together what people see on the screen.
tests
These are like exams for your website to make sure it works correctly. You create different kinds of tests to check different parts of your site.
utils
These are like handy tools you use to make your website better, like checking if someone's email is valid or formatting dates nicely.
node_modules
This is like your toolbox filled with tools (libraries and code) that you use to build your website. It's automatically filled with things your project needs.
This organized structure helps you build and manage your website in a neat and organised way, making it easier to understand and work on, especially when your project gets bigger and more complex and you have to make changes very often.
I am not saying that this is the only or the best way, this is what I usually follow and thought about sharing it.
AI just killed Excel.
No more complex formulas and watching 10-hour tutorials.
Introducing Rows, the only AI Excel tool you will ever need (It's 100% free) 👇
Если бы я знал про это упражнение, я бы точно на пару лет меньше страдал от боли в спине.
Это не какая-то изи версия подтягивания, а другая категория упражнений на спину - горизонтальная тяга. По сути упражнение аналогично тягам штанги - к поясу, на скамье или на T-bar row. И в моем случае спина перестала болеть, когда я начал делать такие штуки (первые пару лет в качалке знал только горизонтальную тягу блока😅)
Здесь в работу включаются волокна, соответствующие перпендикулярному вектору нагрузки, которые в подтягиваниях (вертикальной тяге) задействуются мало.
Поэтому со своим весом подтягивания и inverted row - это два взаимнодополняющих друг друга движения, а не две вариации оного и того же.
Я в этом упражнении стараюсь его делать именно мышцами верха спины, а не руками - их включаю минимально. И когда подхожу к отказу руками тоже не помогаю - ими еще бы мог повторов выжать. Но поскольку цель - мышцы спины, повторы ради повторов не делаю.
Так что если хотите полноценно качать спину - работайте в разных плоскостях и фокусируйтесь именно на выполнении движений спиной, а не на на просто перемещении тела из точки А и в точку Б