8000
Skip to content < 7FFF /span>

Repository files navigation

campfire-widget

Embeddable upcoming Campfire events widget. Fetches club events from campfire-tools and renders them as plain HTML for iframe embeds.

Quick start

cp example.config.toml config.toml
go run . -config config.toml

Open:

http://localhost:8080?club=CLUB_UUID&style=default

Or with Docker Compose:

cp example.config.toml config.toml
docker compose up -d --build

Query parameters

Param Required Default Description
club yes Club UUID
style no default Layout stylesheet (see Styles)
theme no auto Color scheme: auto (system), light, or dark
timezone no UTC Timezone forwarded to the API
limit no 10 Max events to show (1–50)

Styles

Style Description
default Warm neutral cards with terracotta accents
compact Minimal list layout for tight embeds
pegcity Near-black / orange bordered for PegCity
raidsnmore Soft blue gradient with rounded Lato cards for RaidsNmore
pogo-offenbach Mint / forest green for PoGo Offenbach

Embed

Give the iframe (or its wrapper) the width/height you want on the host page. The widget fills that box and scrolls the event list inside when needed.

<div style="width:100%;max-width:360px;height:420px">
  <iframe
    src="https://your-host?club=CLUB_UUID&style=default&theme=auto"
    title="Upcoming events"
    loading="lazy"
    style="width:100%;height:100%;border:0;display:block">
  </iframe>
</div>

Config

See example.config.toml. Pass the path with -config (default config.toml).

Set dev = true for live template/CSS reload while developing.

License

Apache License 2.0 (same as campfire-tools).

Releases

Packages

Contributors

Languages

0