diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -81,5 +81,5 @@ - [x] Keyboard navigation - [x] Onesheet layout - [x] Forward / redirect pages - [x] Tracker visualization -- [ ] Static content updates (images) +- [x] Static content updates (images) - [ ] LiveView patch tag navigation support diff --git a/assets/css/app.css b/assets/css/app.css --- a/assets/css/app.css +++ b/assets/css/app.css @@ -37,6 +37,7 @@ @source inline("hero-code-bracket"); @source inline("hero-envelope"); @source inline("hero-globe-alt"); @source inline("hero-calendar-days"); +@source inline("hero-photo"); @source inline("prose"); @source inline("not-prose"); @source inline("whitespace-nowrap"); @@ -60,6 +61,7 @@ @source inline("badge-outline"); @source inline("onesheet"); @source inline("onesheet-col"); @source inline("onesheet-avatar"); +@source inline("gallery-grid"); @source inline("print:hidden"); @source inline("print:border-0"); @source inline("print:w-[50rem]"); @@ -523,6 +525,29 @@ height: 8rem; object-fit: cover; border-radius: 0.75rem; margin: 0.5rem; + } + + .gallery { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 0.5rem; + + a { + overflow: hidden; + border-radius: 0.5rem; + flex: 0 0 auto; + } + + img { + height: 14em; + width: auto; + transition: transform 0.2s ease; + } + } + + .gallery a:hover img { + transform: scale(1.05); } } diff --git a/lib/alchemy_pub/application.ex b/lib/alchemy_pub/application.ex --- a/lib/alchemy_pub/application.ex +++ b/lib/alchemy_pub/application.ex @@ -7,6 +7,8 @@ use Application @impl true def start(_type, _args) do + if Mix.env() == :dev, do: Application.ensure_all_started(:volt) + children = [ AlchemyPubWeb.Telemetry, {DNSCluster, query: Application.get_env(:alchemy_pub, :dns_cluster_query) || :ignore}, diff --git a/lib/alchemy_pub_web/page_live.html.heex b/lib/alchemy_pub_web/page_live.html.heex --- a/lib/alchemy_pub_web/page_live.html.heex +++ b/lib/alchemy_pub_web/page_live.html.heex @@ -120,7 +120,7 @@ -