Skip to content

Commit

Permalink
Better header element
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Salceanu committed Jan 6, 2022
1 parent 95e1c43 commit 35c3e69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "StippleUI"
uuid = "a3c5d34a-b254-4859-a8fa-b86abb7e84a3"
authors = ["Adrian Salceanu <[email protected]>"]
version = "0.14.2"
version = "0.14.3"

[deps]
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Expand Down
6 changes: 4 additions & 2 deletions src/Headings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ import Genie, Stipple

export heading

function heading(title::String = "";
function heading( title::String = "";
class::String = "",
img::Union{String,Nothing} = nothing,
img::Union{AbstractString,Nothing} = nothing,
h = Genie.Renderer.Html.h1(title, class="st-header__title text-h3"),
content::Union{AbstractString,Nothing,Vector{AbstractString}} = nothing,
kwargs...)

Genie.Renderer.Html.header(; class="$(class) st-header q-pa-sm", kwargs...) do; [
img
h
content
]end
end

Expand Down

2 comments on commit 35c3e69

@essenciary
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/51835

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.14.3 -m "<description of version>" 35c3e690223675ba6827c0700e1c8fac16d8ebfe
git push origin v0.14.3

Please sign in to comment.