visual polish for backgrounds and featured images
|
@ -1960,6 +1960,10 @@ input[type="range"]:active::-webkit-slider-thumb {
|
|||
min-height:0px
|
||||
}
|
||||
|
||||
.min-h-\[130px\] {
|
||||
min-height:130px
|
||||
}
|
||||
|
||||
.min-h-\[148px\] {
|
||||
min-height:148px
|
||||
}
|
||||
|
@ -2552,6 +2556,10 @@ input[type="range"]:active::-webkit-slider-thumb {
|
|||
--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)
|
||||
}
|
||||
|
||||
.from-60\% {
|
||||
--tw-gradient-from-position:60%
|
||||
}
|
||||
|
||||
.to-neutral {
|
||||
--tw-gradient-to:rgba(var(--color-neutral), 1) var(--tw-gradient-to-position)
|
||||
}
|
||||
|
@ -3066,6 +3074,10 @@ input[type="range"]:active::-webkit-slider-thumb {
|
|||
opacity:0.6
|
||||
}
|
||||
|
||||
.opacity-65 {
|
||||
opacity:0.65
|
||||
}
|
||||
|
||||
.mix-blend-normal {
|
||||
mix-blend-mode:normal
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 315 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 74 KiB |
|
@ -26,7 +26,7 @@ disableTextInHeader = false
|
|||
# smartTOCHideUnfocusedChildren = true
|
||||
|
||||
[header]
|
||||
layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-fill-blur
|
||||
layout = "basic" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur
|
||||
|
||||
[footer]
|
||||
showMenu = true
|
||||
|
|
|
@ -10,14 +10,14 @@ title = "Blowfish"
|
|||
dateFormat = "2 January 2006"
|
||||
logo = "img/blowfish_logo_transparent.png"
|
||||
# secondaryLogo = "PATH"
|
||||
description = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
|
||||
description = "A powerful, lightweight theme for Hugo."
|
||||
# copyright = "Copy, _right?_ :thinking_face:"
|
||||
|
||||
[author]
|
||||
name = "Blowfish"
|
||||
image = "img/blowfish_logo.png"
|
||||
headline = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
|
||||
bio = "A powerful, lightweight theme for Hugo built with Tailwind CSS."
|
||||
headline = "A powerful, lightweight theme for Hugo."
|
||||
bio = "A powerful, lightweight theme for Hugo."
|
||||
links = [
|
||||
{ x-twitter = "https://twitter.com/burufugu" },
|
||||
#{ mastodon = "https://masto.ai/@blowfish" },
|
||||
|
|
|
@ -18,15 +18,15 @@ mainSections = ["docs"]
|
|||
disableImageOptimization = false
|
||||
disableTextInHeader = false
|
||||
|
||||
defaultBackgroundImage = "/img/gradient.svg"
|
||||
defaultFeaturedImage = "/img/ocean.jpg"
|
||||
defaultBackgroundImage = "/img/background.svg"
|
||||
defaultFeaturedImage = "/img/featured.svg"
|
||||
|
||||
highlightCurrentMenuArea = true
|
||||
smartTOC = true
|
||||
smartTOCHideUnfocusedChildren = false
|
||||
|
||||
[header]
|
||||
layout = "fixed" # valid options: basic, fixed, fixed-fill, fixed-fill-blur
|
||||
layout = "fixed-gradient" # valid options: basic, fixed, fixed-fill, fixed-gradient, fixed-fill-blur
|
||||
|
||||
[footer]
|
||||
showMenu = true
|
||||
|
|
|
@ -3,18 +3,12 @@ title: "Welcome to Blowfish! :tada:"
|
|||
description: "This page was built using the Blowfish theme for Hugo."
|
||||
---
|
||||
|
||||
Welcome to Blowfish, one of the most flexible and robust Hugo themes. It is designed to be simple, fast and content-focused. Learn more about how to install [here]({{< ref "docs/installation" >}}) or get started with our CLI using:
|
||||
|
||||
```node
|
||||
npx blowfish-tools
|
||||
```
|
||||
|
||||
{{< youtubeLite id="SgXhGb-7QbU" label="Blowfish-tools demo" >}}
|
||||
|
||||
<!--You can also find the complete theme documentation in [docs]({{< ref "docs" >}}). Blowfish is highly customizable and can be configured to fit your needs: from a static website to a blog. Checkout some [examples](/examples) and what some of our [users](/users) have been building.
|
||||
|
||||
Explore the [shortcode list]({{< ref "docs/shortcodes" >}}) and [sample pages]({{< ref "samples" >}}) to get a feel for what Blowfish can do. If you like what you see, check out the project on <a target="_blank" href="https://github.com/nunocoracao/blowfish">Github</a> or read the [Installation guide]({{< ref "docs/installation" >}}) to get started.-->
|
||||
|
||||
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
|
||||
<span class="flex items-center ltr:pr-3 rtl:pl-3 text-primary-400">
|
||||
{{< icon "triangle-exclamation" >}}
|
||||
|
|
Before Width: | Height: | Size: 667 KiB |
Before Width: | Height: | Size: 602 KiB |
Before Width: | Height: | Size: 694 KiB |
Before Width: | Height: | Size: 472 KiB |
Before Width: | Height: | Size: 552 KiB |
Before Width: | Height: | Size: 552 KiB |
Before Width: | Height: | Size: 729 KiB |
Before Width: | Height: | Size: 455 KiB |
Before Width: | Height: | Size: 588 KiB |
1
exampleSite/content/docs/installation/featured.svg
Normal file
After Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 715 KiB |
Before Width: | Height: | Size: 778 KiB |
Before Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 517 KiB |
Before Width: | Height: | Size: 473 KiB |
1
exampleSite/content/docs/welcome/feature.svg
Normal file
After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 736 KiB |
Before Width: | Height: | Size: 42 KiB |
Before Width: | Height: | Size: 70 KiB |
Before Width: | Height: | Size: 46 KiB |
BIN
exampleSite/content/samples/external/featured.jpg
vendored
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 86 KiB |
15
layouts/partials/header/fixed-gradient.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<div class="min-h-[148px]"></div>
|
||||
<div class="fixed inset-x-0 min-h-[130px] opacity-65 pl-[24px] pr-[24px] bg-gradient-to-b from-neutral from-60% dark:from-neutral-800 to-transparent mix-blend-normal" style="z-index:80"></div>
|
||||
<div class="fixed inset-x-0 pl-[24px] pr-[24px]" style="z-index:100">
|
||||
<div id="menu-blur" class="absolute opacity-0 inset-x-0 top-0 h-full single_hero_background nozoom backdrop-blur-2xl shadow-2xl"></div>
|
||||
<div class="relative max-w-[64rem] ml-auto mr-auto">
|
||||
{{ partial "partials/header/basic.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
window.addEventListener('scroll', function (e) {
|
||||
var scroll = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
|
||||
var background_blur = document.getElementById('menu-blur');
|
||||
background_blur.style.opacity = (scroll / 300);
|
||||
});
|
||||
</script>
|