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 { max-width: 900px; margin: 0 auto 10px; }
    #calendar { max-width: 900px; margin: 0 auto; }
    /* 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 { color: #007bff; text-decoration: none; }
    .modal-body a:hover { text-decoration: underline; }
    /* List view styles */
    #listView { display: none; max-width: 900px; margin: 20px auto; }
    #listView table { width: 100%; border-collapse: collapse; }
    #listView th, #listView td { border: 1px solid #ccc; padding: 8px; text-align: left; }
    #listView th { background-color: #f4f4f4; }
    /* Print styles */
    @media print { body > *:not(#listView) { display: none; } #listView { display: block; } }
  </style>
</head>
<body>
  <h1>Calendar...