REAL Connections
Building connections within the General Chemistry Community.
.calendar-container {
display: inline-block;
text-align: center;
overflow: hidden;
width: 70px;
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
margin: 10px;
background-color: white;
border-radius: 12px;
font-family: "Plus Jakarta Sans";
}
.calendar-day {
background: #2A6EBB;
color: white;
font-size: 18px;
font-weight: bold;
padding: 6px 0;
border-radius: 8px;
}
.calendar-month {
background: #F4F4F4;
color: #223;
text-transform: uppercase;
font-size: 18px;
padding: 5px 0;
letter-spacing: 1px;
border-radius: 8px;
}document.addEventListener("DOMContentLoaded", () => {
const dateElements = document.querySelectorAll(".date_blog_news_section");
const monthAbbreviations = {
"January": "Jan",
"February": "Feb",
"March": "Mar",
"April": "Apr",
"May": "May",
"June": "Jun",
"July": "Jul",
"August": "Aug",
"September": "Sep",
"October": "Oct",
"November": "Nov",
"December": "Dec"
};
dateElements.forEach((dateEl) => {
const [textBeforeComma] = dateEl.textContent.split(",");
let [monthName, dayNumber] = textBeforeComma.trim().split(" ");
const abbreviatedMonth = monthAbbreviations[monthName] || monthName;
dateEl.innerHTML = `
<div class="calendar-container">
<div class="calendar-day">${dayNumber}</div>
<div class="calendar-month">${abbreviatedMonth.toUpperCase()}</div>
</div>
`;
});
});
Blog
Categories
Newsletter

REAL Reactions
A chemical reaction is a process in which substances (reactants) transform into different substances (products) through the breaking and forming of chemical bonds.
Subscribe to Our Newsletter!
Subscribe to our newsletter and learn about the latest innovations in chemistry education and join the conversation.



