diff options
author | Linnnus <[email protected]> | 2024-03-20 18:35:50 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-03-20 18:35:50 +0100 |
commit | 9637c9a833c5bc99f8944d41f95461af23048ddf (patch) | |
tree | 50e5f9e8f7c97a7ff6131c910f954c44476cbe1e /static | |
parent | e40ce7849e97a1e0295fb07072d95041b60ec72a (diff) |
Add hero image to index
Diffstat (limited to 'static')
-rw-r--r-- | static/hero.jpeg | bin | 0 -> 477217 bytes | |||
-rw-r--r-- | static/index.css | 38 |
2 files changed, 38 insertions, 0 deletions
diff --git a/static/hero.jpeg b/static/hero.jpeg Binary files differnew file mode 100644 index 0000000..fb2967c --- /dev/null +++ b/static/hero.jpeg diff --git a/static/index.css b/static/index.css new file mode 100644 index 0000000..06e60b1 --- /dev/null +++ b/static/index.css @@ -0,0 +1,38 @@ +/* + * This file contains styles specific to the "index" view. The corresponding + * HTML/template file is `views/index.html`. + */ + +.hero { + /* We want the hero at the top to take up a big portion of the screen, + * while still showing that there's more content to be found below. */ + min-height: 50vh; + + /* Put children smack-dab in the center */ + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + + /* Place a cool background image with a radial gradient over it, to give vibezzz and readability. */ + background-image: + radial-gradient(circle at center, rgba(0, 0, 0, 20%) 0, rgba(0, 0, 0, 80%) 100%), + url(/static/hero.jpeg); + background-size: cover; + + /* TODO: Put some cool image here */ + background-color: purple; + color: white; +} + +.hero__title { + font-size: 5rem; + margin: 1rem; + + /* TODO: Use (subset) font for this very important text. */ +} + +.hero__subtitle { + font-size: large; + font-style: italic; +} |