Add these headers to my site please!
Setting up is easy, just add a couple of lines of html:
Here we just have the basics. A class .ryoko
and a child with a class .ryoko-body
.
This sets up the main elements of a ryoko header. This sets up a header with a basic size and adds the content in the center.
In this example i added a .ryoko-10
class just so it wont take a large part of the screen. You can check sizes on the sizing page.
Next we just have to add a background-image on the .ryoko
. Thats it, cool.
I did add some helper classes so we can read some text. .ryoko-faded
to add a faded background. And .text-white
, a bootstrap class, for the white text.
.px-3
.py-3
.my-3
for some margins and paddings, also bootstrap.
Add a shadow on the content using .ryoko-shadow
on the element that uses .ryoko-faded
. Lets keep things easy.
Got a light image, add a shade. Add a .ryoko-shade
on the .ryoko-body
element to add a shader.
You can also use .ryoko-shade-10
.ryoko-shade-20
until .ryoko-shade-100
for 10% black overlay to 100% black overlay (aka black).