Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <!-- Place the following CSS in your <head> or stylesheet --> <style> /* This is an optional body style to provide a background for the page */ body { background-color: #f3f4f6; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; } /* === Grid Container for the Cards === */ .cards-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; padding: 1.5rem; } /* === Calendar Date Card Styles === */ .cal-card { --cal-card-radius: 12px; --cal-card-shadow: 0 4px 10px rgba(0,0,0,0.06); background-color: #ffffff; border-radius: var(--cal-card-radius); box-shadow: var(--cal-card-shadow); display: flex; align-items: center; padding: 1rem; gap: 1.25rem; transition: box-shadow 0.2s ease, transform 0.2s ease; } .cal-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); } .cal-card-link { color: inherit; text-decoration: none; display: flex; align-items: center; flex-grow: 1; gap: 1.25rem; } /* The date block */ .cal-card-date-block { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; /* Aligns content to the top */ flex-shrink: 0; width: 80px; height: 80px; border-radius: 10px; background-color: #f9fafb; border: 1px solid #e5e7eb; overflow: hidden; /* Important for containing the month banner */ } .cal-card-month { display: block; width: 100%; text-align: center; background-color: #ef4444; /* Red for emphasis */ color: #ffffff; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; padding: 0.35rem 0; } .cal-card-day { font-size: 2.25rem; font-weight: 700; color: #111827; line-height: 1.2; margin-top: 0.35rem; } /* Event info block */ .cal-card-info { flex-grow: 1; } .cal-card-title { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.35rem; line-height: 1.3; } .cal-card-details { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: #4b5563; } .cal-card-details svg { width: 16px; height: 16px; color: #9ca3af; flex-shrink: 0; } </style> <!-- Place the following HTML in your <body> --> <div class="cards-grid-container"> <!-- Card 1 --> <article class="cal-card"> <a href="#" class="cal-card-link"> <time class="cal-card-date-block" datetime="2025-08-20"> <span class="cal-card-month">Aug</span> <span class="cal-card-day">20</span> </time> <div class="cal-card-info"> <h3 class="cal-card-title">Design Systems Workshop</h3> <p class="cal-card-details"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"> <path fill-rule="evenodd" d="M8,0C4.687,0,2,2.687,2,6c0,1.305,0.428,2.502,1.139,3.482c0.013,0.024,0.015,0.05,0.029,0.072l4,6 C7.354,15.833,7.666,16,8,16s0.646-0.167,0.832-0.446l4-6c0.015-0.022,0.017-0.048,0.029-0.072C13.572,8.502,14,7.305,14,6 C14,2.687,11.313,0,8,0z M8,8c-1.105,0-2-0.895-2-2s0.895-2,2-2s2,0.895,2,2S9.105,8,8,8z"></path> </svg> The Innovation Loft </p> </div> </a> </article> <!-- Card 2 --> <article class="cal-card"> <a href="#" class="cal-card-link"> <time class="cal-card-date-block" datetime="2025-09-05"> <span class="cal-card-month">Sep</span> <span class="cal-card-day">05</span> </time> <div class="cal-card-info"> <h3 class="cal-card-title">Founder's Fireside Chat</h3> <p class="cal-card-details"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"> <path fill-rule="evenodd" d="M8,0C4.687,0,2,2.687,2,6c0,1.305,0.428,2.502,1.139,3.482c0.013,0.024,0.015,0.05,0.029,0.072l4,6 C7.354,15.833,7.666,16,8,16s0.646-0.167,0.832-0.446l4-6c0.015-0.022,0.017-0.048,0.029-0.072C13.572,8.502,14,7.305,14,6 C14,2.687,11.313,0,8,0z M8,8c-1.105,0-2-0.895-2-2s0.895-2,2-2s2,0.895,2,2S9.105,8,8,8z"></path> </svg> Online & In Person </p> </div> </a> </article> <!-- Card 3 --> <article class="cal-card"> <a href="#" class="cal-card-link"> <time class="cal-card-date-block" datetime="2025-09-10"> <span class="cal-card-month">Sep</span> <span class="cal-card-day">10</span> </time> <div class="cal-card-info"> <h3 class="cal-card-title">Product Launch: The Quantum Series</h3> <p class="cal-card-details"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"> <path fill-rule="evenodd" d="M8,0C4.687,0,2,2.687,2,6c0,1.305,0.428,2.502,1.139,3.482c0.013,0.024,0.015,0.05,0.029,0.072l4,6 C7.354,15.833,7.666,16,8,16s0.646-0.167,0.832-0.446l4-6c0.015-0.022,0.017-0.048,0.029-0.072C13.572,8.502,14,7.305,14,6 C14,2.687,11.313,0,8,0z M8,8c-1.105,0-2-0.895-2-2s0.895-2,2-2s2,0.895,2,2S9.105,8,8,8z"></path> </svg> Exclusive Livestream </p> </div> </a> </article> </div>