FFFF GitHub - 11ty/advent-calendar: Advent calendar web components, for the holiday season! · GitHub
[go: up one dir, main page]

Skip to content

About

Advent calendar web components, for the holiday season!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

@11ty/advent-calendar

Advent calendar web components: <advent-door> and <advent-container>.

See it live at https://build.awesome.me/

Install

npm install @11ty/advent-calendar

Usage

<link rel="stylesheet" href="advent-container.css">
<script type="module" src="advent-door.js"></script>
<script type="module" src="advent-container.js"></script>

<advent-container src="https://build.awesome.me/api/advent/content.json">
  <advent-door day="1" unlock="2026-12-01T00:00-06:00"></advent-door>
  <advent-door day="2" unlock="2026-12-02T00:00-06:00"></advent-door>
  <!-- … through day 24 -->
</advent-container>

Demo and full docs: https://advent-calendar.11ty.dev/

Sample service

The src attribute on <advent-container> can point to a static JSON file:

{
  "doors": [
    { "day": 1, "brand": "build-awesome", "html": "<h2>Day one</h2>", "confetti": "🎉" },
    { "day": 2, "html": "<h2>Day two</h2>" }
  ]
}

License

MIT

About

Advent calendar web components, for the holiday season!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages

0