Personal Management
Scheduling appointments, reminders and events.
<div class="showcontent">
<header>
<div class="month-year">
<div>AUGUST</div>
<div>2024</div>
</div>
<div class="leftarrow">❮</div>
<div class="rightarrow">❯</div>
</header>
<div class="weekdays">
<div>Mo</div>
<div>Tu</div>
<div>We</div>
<div>Th</div>
<div>Fr</div>
<div>Sa</div>
<div>Su</div>
</div>
<div class="days">
</div>
</div>
for(let i=1;i<=31;i++){
let div=document.createElement("DIV");
div.innerText=i;
document.getElementsByClassName("days")[0].appendChild(div);
}
let active = document.querySelectorAll(".days div");
active[27].classList.add("today");
const content = active[27].innerText;
// Set a custom data attribute (e.g., data-content) to use in CSS
document.querySelector(".today").setAttribute("data-content", content);
.showcontent header{
background-color: dodgerblue;
width: 100%;
height: 150px;
position: relative;
color: white;
font-size: 20px;
}
.month-year{
width: inherit;
height: inherit;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.leftarrow,.rightarrow{
position: absolute;
padding: 4px;
top: 50%;
transform: translateY(-50%);
}
.rightarrow{
right: 0;
}
.weekdays{
display: flex;
background-color: #a39595;
color: black;
padding: 5px;
}
.weekdays div{
width: calc(100% / 7);
display: flex;
align-items: center;
justify-content: center;
}
.days{
padding-top: 10px;
display: flex;
flex-wrap: wrap;
background-color: white;
}
.days div{
width: calc(100% / 7);
height: 35px;
display: flex;
align-items: center;
justify-content: center;
}
.days .today::before{
content:attr(data-content);
position: absolute;
height: 30px;
width: 30px;
background-color:#04aa6a;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
color: white;
}
Scheduling appointments, reminders and events.
Organizing academic schedules, exams, and schools events.
Tracking budgets, tax deadlines, and investment timing
Defining holidays, elections, prayer times and public services.
Planning launches, software releases, and development timelines.