Support Banner
A Phoenix component for integrating a donation/support banner into your Phoenix applications.
Installation
-
Add
support_bannerto your list of dependencies inmix.exs:
def deps do
[
{:support_banner, ">= 0.0.0"}
]
end-
Run
mix deps.getto install the package.
Usage
-
In your
app.js, import and set up the SupportBannerHook:
import SupportBanner from "./support_banner"
const liveSocket = new LiveSocket("/live", Socket, {
longPollFallbackMs: 2500,
params: {
_csrf_token: csrfToken,
},
hooks: {
...SupportBanner
},
});-
In your
app.css, import and set up the SupportBanner css:@import "../vendor/support_banner.css";
License
This project is licensed under the MIT License.