![Screenshot 2024-01-08 at 18 57 41](https://cdn.statically.io/img/private-user-images.githubusercontent.com/37276661/295010052-b0e94164-375c-4856-a981-814398b6d0e7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI3MjgzNjEsIm5iZiI6MTcyMjcyODA2MSwicGF0aCI6Ii8zNzI3NjY2MS8yOTUwMTAwNTItYjBlOTQxNjQtMzc1Yy00ODU2LWE5ODEtODE0Mzk4YjZkMGU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODAzVDIzMzQyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRiM2NjOTIwNzEwMGMyOTllODQxYjc0NDc5Y2NlMGM4NjU3MGY3MjBiNGQ5NzY3ODM3NjU1NDEyMWFjNmM3NzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LgP3jPLdOjNY8xd_2Bn1cxwCr1KWgers4_q9iOHleBk)
A web component to show calendar dates on your website.
To use the component on your website, first copy the calendar-date.js
file onto your website.
Add references to this file in the <head>
tag of the page on which you want to use the component:
<script src="calendar-date.js" defer></script>
Create a new <template>
tag on your web page and add the following code:
<template id="calendar-styles">
<style>
.date-container {
border: 1px solid red;
display: inline-block;
max-width: 100%;
min-width: 75px;
text-align: center;
border-radius: 5px;
}
.date-month {
padding: 5px;
color: white;
background-color: red;
}
.date-day {
font-size: 2rem;
font-weight: bold;
padding: 5px;
}
</style>
</template>
Adjust the styles as necessary.
Then, add the <calendar-date>
component to your website:
<calendar-date month="March" day="31"></calendar-date>
The component will appear on your website.
This project is licensed under a Creative Commons Zero license.