JSFiddle - React, Tailwind, and code Playground

by dledle2

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Google Calendar Events with FullCalendar</title>
  <!-- FullCalendar CSS -->
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/index.global.min.css" rel="stylesheet" />
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/daygrid/index.global.min.css" rel="stylesheet" />
  <link href="https://cdn.jsdelivr.net/npm/[email protected]/timegrid/index.global.min.css" rel="stylesheet" />
  <style>
    body { font-family: Arial, sans-serif; margin: 20px; }
    #info, #controls, #recentEvents { max-width: 900px; margin: 0 auto 10px; }
    #calendar { max-width: 900px; margin: 0 auto; }
    /* Recent events table styles */
    #recentEvents { margin-bottom: 20px; }
    #recentEvents h2 { margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
    #recentEventsTable { width: 100%; border-collapse: collapse; margin-top: 10px; }
    #recentEventsTable th, #recentEventsTable td { border: 1px solid #ddd; padding: 8px; text-align: left; }
    #recentEventsTable th { background-color: #f4f4f4; }
    #recentEventsTable tbody tr { cursor: pointer; }
    #recentEventsTable tbody tr:hover { background-color: #f0f0f0; }
    /* Modal styles */
    .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
    .modal-content { background-color: #fff; margin: 10% auto; padding: 20px; border-radius: 8px; max-width: 500px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
    .modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
    .modal-body { margin-top: 10px; }
    .close-btn { cursor: pointer; font-size: 1.2em; border: none; background: none; }
    .modal-body p { margin: 5px 0; }
    .modal-body a {...